How can I sync event if param type is tuple

{
        "anonymous": false,
        "inputs": [
            {
                "indexed": false,
                "internalType": "address",
                "name": "owner",
                "type": "address"
            },
            {
                "components": [
                    {
                        "internalType": "uint256",
                        "name": "heroId",
                        "type": "uint256"
                    },
                    {
                        "internalType": "uint256",
                        "name": "types",
                        "type": "uint256"
                    },
                    {
                        "internalType": "string",
                        "name": "name",
                        "type": "string"
                    }
                ],
                "indexed": false,
                "internalType": "struct HeroNFT.Hero",
                "name": "hero",
                "type": "tuple"
            }
        ],
        "name": "HeroSpawn",
        "type": "event"
    },

I try to sync event with moralis, the table is created but has no record.
How can I sync event data with this abi. Thank you.

Hi @locpx

Please provide us screens of your settings of β€œSync and watch” , subdomain and contract address :raised_hands:

1 Like


Here is my sync screen.
here is contract addess: 0x2362300b6B5F6031e30960A442114F180572b1D5
I try to test on testnet

Here is domain:
https://du8d7tplxr22.bigmoralis.com/

please help. Thank you

Can you make a transaction on testnet that will emit that event?

I just emit this event here:

ok, the one with this topic0: 0x4c7a4c10c7b6bb9a6046e4aa7b17919ae687a7133c3da2ae07eb1893ea107ba9?

Yes. What can I do next?

Next you need to know its parameters, and web3.utils.sha3('HeroSpawn(address,...)') should return 0x4c7a4c10c7b6bb9a6046e4aa7b17919ae687a7133c3da2ae07eb1893ea107ba9 after you enter the right parameters.

Thank you so much, you save my day. The record is automatic saved.