Thank you. I tried put in variables and get a different result now. I can see there is a mintComplete event. But I still have not find the tokenId in the event mintComplete(uint256 tokenId) that I am looking for. My code read like this.
let result = await Moralis.executeFunction(options);
let x=await result.wait(1);
console.log('wait for 1 block',result,x);
return res.json(result);
And the result looks like this:
{
to: '0xA118b5f01e578337FD7cA3135493c7e73540ba24',
from: '0xc4Bc0e9238aD0618AA13b1D7BF1Fd5E70AD127Dc',
contractAddress: null,
transactionIndex: 29,
gasUsed: BigNumber { _hex: '0x025f0e', _isBigNumber: true },
logsBloom: '0x00000000000000020000000000000000000002000000000000000000000000000000000000200200000000000000000000008000000001000000000000000000000000000200000000000008000000800000000000000000000100000000000020000000020000020020000000000800000000000000000080000010000000000000000000000000000000000000400000000000000000000000000000000000200000000000000022000000000000000001000000100000000000000000004000001002000000000001000000002000000000000000000000100000000020200000000000000000000000000000000008000000000000000000000000100000',
blockHash: '0xf9c5616484dd3888c82007f67ccde277266520fa602bc51c5db6dd060ff3649e',
transactionHash: '0x6c33adda502db48911b1cc2ba6ad64af9917a65a7a96bf6d1a2cd6d110005d3f',
logs: [
{
transactionIndex: 29,
blockNumber: 25962812,
transactionHash: '0x6c33adda502db48911b1cc2ba6ad64af9917a65a7a96bf6d1a2cd6d110005d3f',
address: '0xA118b5f01e578337FD7cA3135493c7e73540ba24',
topics: [Array],
data: '0x',
logIndex: 98,
blockHash: '0xf9c5616484dd3888c82007f67ccde277266520fa602bc51c5db6dd060ff3649e'
},
{
transactionIndex: 29,
blockNumber: 25962812,
transactionHash: '0x6c33adda502db48911b1cc2ba6ad64af9917a65a7a96bf6d1a2cd6d110005d3f',
address: '0xA118b5f01e578337FD7cA3135493c7e73540ba24',
topics: [Array],
data: '0x000000000000000000000000000000000000000000000000000000000000000c',
logIndex: 99,
blockHash: '0xf9c5616484dd3888c82007f67ccde277266520fa602bc51c5db6dd060ff3649e'
},
{
transactionIndex: 29,
blockNumber: 25962812,
transactionHash: '0x6c33adda502db48911b1cc2ba6ad64af9917a65a7a96bf6d1a2cd6d110005d3f',
address: '0x0000000000000000000000000000000000001010',
topics: [Array],
data: '0x0000000000000000000000000000000000000000000000000000d402eb23920000000000000000000000000000000000000000000000000004142fdee2b12c6e000000000000000000000000000000000000000000000b163e98f912eac466b400000000000000000000000000000000000000000000000004135bdbf78d9a6e000000000000000000000000000000000000000000000b163e99cd15d5e7f8b4',
logIndex: 100,
blockHash: '0xf9c5616484dd3888c82007f67ccde277266520fa602bc51c5db6dd060ff3649e'
}
],
blockNumber: 25962812,
confirmations: 1,
cumulativeGasUsed: BigNumber { _hex: '0x4098f6', _isBigNumber: true },
effectiveGasPrice: BigNumber { _hex: '0x59682f09', _isBigNumber: true },
status: 1,
type: 2,
byzantium: true,
events: [
{
transactionIndex: 29,
blockNumber: 25962812,
transactionHash: '0x6c33adda502db48911b1cc2ba6ad64af9917a65a7a96bf6d1a2cd6d110005d3f',
address: '0xA118b5f01e578337FD7cA3135493c7e73540ba24',
topics: [Array],
data: '0x',
logIndex: 98,
blockHash: '0xf9c5616484dd3888c82007f67ccde277266520fa602bc51c5db6dd060ff3649e',
args: [Array],
decode: [Function (anonymous)],
event: 'Transfer',
eventSignature: 'Transfer(address,address,uint256)',
removeListener: [Function (anonymous)],
getBlock: [Function (anonymous)],
getTransaction: [Function (anonymous)],
getTransactionReceipt: [Function (anonymous)]
},
{
transactionIndex: 29,
blockNumber: 25962812,
transactionHash: '0x6c33adda502db48911b1cc2ba6ad64af9917a65a7a96bf6d1a2cd6d110005d3f',
address: '0xA118b5f01e578337FD7cA3135493c7e73540ba24',
topics: [Array],
data: '0x000000000000000000000000000000000000000000000000000000000000000c',
logIndex: 99,
blockHash: '0xf9c5616484dd3888c82007f67ccde277266520fa602bc51c5db6dd060ff3649e',
args: [Array],
decode: [Function (anonymous)],
event: 'mintComplete',
eventSignature: 'mintComplete(uint256)',
removeListener: [Function (anonymous)],
getBlock: [Function (anonymous)],
getTransaction: [Function (anonymous)],
getTransactionReceipt: [Function (anonymous)]
},
{
transactionIndex: 29,
blockNumber: 25962812,
transactionHash: '0x6c33adda502db48911b1cc2ba6ad64af9917a65a7a96bf6d1a2cd6d110005d3f',
address: '0x0000000000000000000000000000000000001010',
topics: [Array],
data: '0x0000000000000000000000000000000000000000000000000000d402eb23920000000000000000000000000000000000000000000000000004142fdee2b12c6e000000000000000000000000000000000000000000000b163e98f912eac466b400000000000000000000000000000000000000000000000004135bdbf78d9a6e000000000000000000000000000000000000000000000b163e99cd15d5e7f8b4',
logIndex: 100,
blockHash: '0xf9c5616484dd3888c82007f67ccde277266520fa602bc51c5db6dd060ff3649e',
removeListener: [Function (anonymous)],
getBlock: [Function (anonymous)],
getTransaction: [Function (anonymous)],
getTransactionReceipt: [Function (anonymous)]
}
]
}