How can I sync event with tuple type

Hi everybody,

I was going to sync event with tuple type.
The table is created, but, records are not syncing.
Would you please help me?

Here is my detailed info for sync event.(BSC testnet)

Topic: ListedOnSale(uint256, tuple) - event name on smart contract
Abi: (from bscscan)
{
“anonymous”: false,
“inputs”: [
{
“indexed”: false,
“internalType”: “uint256”,
“name”: “saleId”,
“type”: “uint256”
},
{
“components”: [
{
“internalType”: “uint256”,
“name”: “saleId”,
“type”: “uint256”
},
{
“internalType”: “address”,
“name”: “creator”,
“type”: “address”
},
{
“internalType”: “address”,
“name”: “seller”,
“type”: “address”
},
{
“internalType”: “address”,
“name”: “sc”,
“type”: “address”
},
{
“internalType”: “uint256”,
“name”: “tokenId”,
“type”: “uint256”
},
{
“internalType”: “uint256”,
“name”: “copy”,
“type”: “uint256”
},
{
“internalType”: “uint256”,
“name”: “payment”,
“type”: “uint256”
},
{
“internalType”: “uint256”,
“name”: “basePrice”,
“type”: “uint256”
},
{
“internalType”: “uint256”,
“name”: “method”,
“type”: “uint256”
},
{
“internalType”: “uint256”,
“name”: “startTime”,
“type”: “uint256”
},
{
“internalType”: “uint256”,
“name”: “endTime”,
“type”: “uint256”
},
{
“internalType”: “uint256”,
“name”: “feeRatio”,
“type”: “uint256”
},
{
“internalType”: “uint256”,
“name”: “royaltyRatio”,
“type”: “uint256”
}
],
“indexed”: false,
“internalType”: “struct CorsacNFTFactory.CorsacNFTSale”,
“name”: “saleInfo”,
“type”: “tuple”
}
],
“name”: “ListedOnSale”,
“type”: “event”
}
Address: 0xCD0f852F739c5Ce5378502645122706412191146 (smart contract address)

And then
I made transaction for create sale on bsc testnet.
https://testnet.bscscan.com/tx/0x000880599c528b6daa2e1c6732acc82ce67696a3c4baab0ea493b81bbd3d94f3

It is possible tot do it, there is another thread that explains how to write the topic. The easiest way would be to use the hash version of the topic instead of the text one as you tried.

1 Like

Okay, it does work now for me with hash version of topic.
Really thanks.

1 Like

@cryptokid
Sorry, but, I have one question.
On free moralis account, I can’t resync metadata?
When calling reSyncMetadata, get error as the following:
MoralisWeb3Api.js:341 Uncaught (in promise) Error: This Moralis Server is rate-limited because of the plan restrictions. See the details about the current rate and throttle limits: {“x-rate-limit-limit”:“25”,“x-rate-limit-remaining-ttl”:“1”,“x-rate-limit-used”:“27”,“x-rate-limit-remaining-ip-ttl”:“1”,“x-rate-limit-ip-used”:“27”}
at Function. (MoralisWeb3Api.js:341:1)
at tryCatch (runtime.js:63:1)
at Generator.invoke [as _invoke] (runtime.js:294:1)
at Generator.throw (runtime.js:119:1)
at asyncGeneratorStep (asyncToGenerator.js:5:1)
at _throw (asyncToGenerator.js:31:1)

Can you help again?

you can resync metadata, but you can not do any other request in that second, it looks like there were 2 or 3 requests made here to get to that 27, reSyncMetadata uses 25