Invalid ABI, Please verify

@Yomoo Thank you for your help and feedback. I’m making progress! I think I now understand it. The problem could be in my marketplace.sol because the one I deployed doesn’t seem to have the MarketItemCreated event in the ABI. I’m going to try the whole process from the start again. Maybe I mixed up some of the files.

1 Like

Awesome! Feel free to ask us any questions.

Happy BUIDLing! :man_mechanic:

I struggled a bit to find the solution to this problem. We are used to copying the ABI from BscScan, and that way it doesn’t work. I believe developers should address this.

you have an example that doesn’t work?

Yes, if you go to BsC Scan and just copy the ABI from there, it doesn’t work. Then I saw in the video that it only takes part of the ABI. For example, it must start with {}, not [], as they come by default from BsC Scan. It confuses people. It’s working now, but I had to look for this information on the forum. On the Moralis screen, it asks for the ABI, not the ABI JSON portion of the event.

ok, yes, it doesn’t ask for the entire abi of the smart contract, only for the abi of that event

I couldn’t fix the error. Can you help me? My topic

[
{
“inputs”: [
{
“internalType”: “string”,
“name”: “name”,
“type”: “string”
},
{
“internalType”: “string”,
“name”: “symbol”,
“type”: “string”
}
],
“stateMutability”: “nonpayable”,
“type”: “constructor”
},
{
“anonymous”: false,
“inputs”: [
{
“indexed”: true,
“internalType”: “address”,
“name”: “owner”,
“type”: “address”
},
{
“indexed”: true,
“internalType”: “address”,
“name”: “spender”,
“type”: “address”
},
{
“indexed”: false,
“internalType”: “uint256”,
“name”: “value”,
“type”: “uint256”
}
],
“name”: “Approval”,
“type”: “event”
},
{
“inputs”: [
{
“internalType”: “address”,
“name”: “spender”,
“type”: “address”
},
{
“internalType”: “uint256”,
“name”: “amount”,
“type”: “uint256”
}
],
“name”: “approve”,
“outputs”: [
{
“internalType”: “bool”,
“name”: “”,
“type”: “bool”
}
],
“stateMutability”: “nonpayable”,
“type”: “function”
},
{
“inputs”: [
{
“internalType”: “uint256”,
“name”: “amount”,
“type”: “uint256”
}
],
“name”: “burn”,
“outputs”: [],
“stateMutability”: “nonpayable”,
“type”: “function”
},
{
“inputs”: [
{
“internalType”: “address”,
“name”: “account”,
“type”: “address”
},
{
“internalType”: “uint256”,
“name”: “amount”,
“type”: “uint256”
}
],
“name”: “burnFrom”,
“outputs”: [],
“stateMutability”: “nonpayable”,
“type”: “function”
},
{
“inputs”: [
{
“internalType”: “address”,
“name”: “spender”,
“type”: “address”
},
{
“internalType”: “uint256”,
“name”: “subtractedValue”,
“type”: “uint256”
}
],
“name”: “decreaseAllowance”,
“outputs”: [
{
“internalType”: “bool”,
“name”: “”,
“type”: “bool”
}
],
“stateMutability”: “nonpayable”,
“type”: “function”
},
{
“inputs”: [
{
“internalType”: “bytes32”,
“name”: “role”,
“type”: “bytes32”
},
{
“internalType”: “address”,
“name”: “account”,
“type”: “address”
}
],
“name”: “grantRole”,
“outputs”: [],
“stateMutability”: “nonpayable”,
“type”: “function”
},
{
“inputs”: [
{
“internalType”: “address”,
“name”: “spender”,
“type”: “address”
},
{
“internalType”: “uint256”,
“name”: “addedValue”,
“type”: “uint256”
}
],
“name”: “increaseAllowance”,
“outputs”: [
{
“internalType”: “bool”,
“name”: “”,
“type”: “bool”
}
],
“stateMutability”: “nonpayable”,
“type”: “function”
},
{
“inputs”: [
{
“internalType”: “address”,
“name”: “to”,
“type”: “address”
},
{
“internalType”: “uint256”,
“name”: “amount”,
“type”: “uint256”
}
],
“name”: “mint”,
“outputs”: [],
“stateMutability”: “nonpayable”,
“type”: “function”
},
{
“inputs”: [],
“name”: “pause”,
“outputs”: [],
“stateMutability”: “nonpayable”,
“type”: “function”
},
{
“anonymous”: false,
“inputs”: [
{
“indexed”: false,
“internalType”: “address”,
“name”: “account”,
“type”: “address”
}
],
“name”: “Paused”,
“type”: “event”
},
{
“inputs”: [
{
“internalType”: “bytes32”,
“name”: “role”,
“type”: “bytes32”
},
{
“internalType”: “address”,
“name”: “account”,
“type”: “address”
}
],
“name”: “renounceRole”,
“outputs”: [],
“stateMutability”: “nonpayable”,
“type”: “function”
},
{
“inputs”: [
{
“internalType”: “bytes32”,
“name”: “role”,
“type”: “bytes32”
},
{
“internalType”: “address”,
“name”: “account”,
“type”: “address”
}
],
“name”: “revokeRole”,
“outputs”: [],
“stateMutability”: “nonpayable”,
“type”: “function”
},
{
“anonymous”: false,
“inputs”: [
{
“indexed”: true,
“internalType”: “bytes32”,
“name”: “role”,
“type”: “bytes32”
},
{
“indexed”: true,
“internalType”: “bytes32”,
“name”: “previousAdminRole”,
“type”: “bytes32”
},
{
“indexed”: true,
“internalType”: “bytes32”,
“name”: “newAdminRole”,
“type”: “bytes32”
}
],
“name”: “RoleAdminChanged”,
“type”: “event”
},
{
“anonymous”: false,
“inputs”: [
{
“indexed”: true,
“internalType”: “bytes32”,
“name”: “role”,
“type”: “bytes32”
},
{
“indexed”: true,
“internalType”: “address”,
“name”: “account”,
“type”: “address”
},
{
“indexed”: true,
“internalType”: “address”,
“name”: “sender”,
“type”: “address”
}
],
“name”: “RoleGranted”,
“type”: “event”
},
{
“anonymous”: false,
“inputs”: [
{
“indexed”: true,
“internalType”: “bytes32”,
“name”: “role”,
“type”: “bytes32”
},
{
“indexed”: true,
“internalType”: “address”,
“name”: “account”,
“type”: “address”
},
{
“indexed”: true,
“internalType”: “address”,
“name”: “sender”,
“type”: “address”
}
],
“name”: “RoleRevoked”,
“type”: “event”
},
{
“inputs”: [
{
“internalType”: “address”,
“name”: “to”,
“type”: “address”
},
{
“internalType”: “uint256”,
“name”: “amount”,
“type”: “uint256”
}
],
“name”: “transfer”,
“outputs”: [
{
“internalType”: “bool”,
“name”: “”,
“type”: “bool”
}
],
“stateMutability”: “nonpayable”,
“type”: “function”
},
{
“anonymous”: false,
“inputs”: [
{
“indexed”: true,
“internalType”: “address”,
“name”: “from”,
“type”: “address”
},
{
“indexed”: true,
“internalType”: “address”,
“name”: “to”,
“type”: “address”
},
{
“indexed”: false,
“internalType”: “uint256”,
“name”: “value”,
“type”: “uint256”
}
],
“name”: “Transfer”,
“type”: “event”
},
{
“inputs”: [
{
“internalType”: “address”,
“name”: “from”,
“type”: “address”
},
{
“internalType”: “address”,
“name”: “to”,
“type”: “address”
},
{
“internalType”: “uint256”,
“name”: “amount”,
“type”: “uint256”
}
],
“name”: “transferFrom”,
“outputs”: [
{
“internalType”: “bool”,
“name”: “”,
“type”: “bool”
}
],
“stateMutability”: “nonpayable”,
“type”: “function”
},
{
“inputs”: [],
“name”: “unpause”,
“outputs”: [],
“stateMutability”: “nonpayable”,
“type”: “function”
},
{
“anonymous”: false,
“inputs”: [
{
“indexed”: false,
“internalType”: “address”,
“name”: “account”,
“type”: “address”
}
],
“name”: “Unpaused”,
“type”: “event”
},
{
“inputs”: [
{
“internalType”: “address”,
“name”: “owner”,
“type”: “address”
},
{
“internalType”: “address”,
“name”: “spender”,
“type”: “address”
}
],
“name”: “allowance”,
“outputs”: [
{
“internalType”: “uint256”,
“name”: “”,
“type”: “uint256”
}
],
“stateMutability”: “view”,
“type”: “function”
},
{
“inputs”: [
{
“internalType”: “address”,
“name”: “account”,
“type”: “address”
}
],
“name”: “balanceOf”,
“outputs”: [
{
“internalType”: “uint256”,
“name”: “”,
“type”: “uint256”
}
],
“stateMutability”: “view”,
“type”: “function”
},
{
“inputs”: [],
“name”: “decimals”,
“outputs”: [
{
“internalType”: “uint8”,
“name”: “”,
“type”: “uint8”
}
],
“stateMutability”: “view”,
“type”: “function”
},
{
“inputs”: [],
“name”: “DEFAULT_ADMIN_ROLE”,
“outputs”: [
{
“internalType”: “bytes32”,
“name”: “”,
“type”: “bytes32”
}
],
“stateMutability”: “view”,
“type”: “function”
},
{
“inputs”: [
{
“internalType”: “bytes32”,
“name”: “role”,
“type”: “bytes32”
}
],
“name”: “getRoleAdmin”,
“outputs”: [
{
“internalType”: “bytes32”,
“name”: “”,
“type”: “bytes32”
}
],
“stateMutability”: “view”,
“type”: “function”
},
{
“inputs”: [
{
“internalType”: “bytes32”,
“name”: “role”,
“type”: “bytes32”
},
{
“internalType”: “uint256”,
“name”: “index”,
“type”: “uint256”
}
],
“name”: “getRoleMember”,
“outputs”: [
{
“internalType”: “address”,
“name”: “”,
“type”: “address”
}
],
“stateMutability”: “view”,
“type”: “function”
},
{
“inputs”: [
{
“internalType”: “bytes32”,
“name”: “role”,
“type”: “bytes32”
}
],
“name”: “getRoleMemberCount”,
“outputs”: [
{
“internalType”: “uint256”,
“name”: “”,
“type”: “uint256”
}
],
“stateMutability”: “view”,
“type”: “function”
},
{
“inputs”: [
{
“internalType”: “bytes32”,
“name”: “role”,
“type”: “bytes32”
},
{
“internalType”: “address”,
“name”: “account”,
“type”: “address”
}
],
“name”: “hasRole”,
“outputs”: [
{
“internalType”: “bool”,
“name”: “”,
“type”: “bool”
}
],
“stateMutability”: “view”,
“type”: “function”
},
{
“inputs”: [],
“name”: “MINTER_ROLE”,
“outputs”: [
{
“internalType”: “bytes32”,
“name”: “”,
“type”: “bytes32”
}
],
“stateMutability”: “view”,
“type”: “function”
},
{
“inputs”: [],
“name”: “name”,
“outputs”: [
{
“internalType”: “string”,
“name”: “”,
“type”: “string”
}
],
“stateMutability”: “view”,
“type”: “function”
},
{
“inputs”: [],
“name”: “paused”,
“outputs”: [
{
“internalType”: “bool”,
“name”: “”,
“type”: “bool”
}
],
“stateMutability”: “view”,
“type”: “function”
},
{
“inputs”: [],
“name”: “PAUSER_ROLE”,
“outputs”: [
{
“internalType”: “bytes32”,
“name”: “”,
“type”: “bytes32”
}
],
“stateMutability”: “view”,
“type”: “function”
},
{
“inputs”: [
{
“internalType”: “bytes4”,
“name”: “interfaceId”,
“type”: “bytes4”
}
],
“name”: “supportsInterface”,
“outputs”: [
{
“internalType”: “bool”,
“name”: “”,
“type”: “bool”
}
],
“stateMutability”: “view”,
“type”: “function”
},
{
“inputs”: [],
“name”: “symbol”,
“outputs”: [
{
“internalType”: “string”,
“name”: “”,
“type”: “string”
}
],
“stateMutability”: “view”,
“type”: “function”
},
{
“inputs”: [],
“name”: “totalSupply”,
“outputs”: [
{
“internalType”: “uint256”,
“name”: “”,
“type”: “uint256”
}
],
“stateMutability”: “view”,
“type”: “function”
}
]

this is my auto generated ABI in the Remix and i followed tutorial instructions and i dont know the problem here

Can you identify the part from this Abi for your particular event that you want to sync?

i dont exactly know what to get here.

in the tutorial it say’s click the ABI it will auto copy into the clipboard
then i paste it in the cloud function without changing any code.
but it is invalid.

Where do you need that ABI? What for?

Usually that abi has the information for a lot of functions. Sometimes you need only a part form that abi depending where you need to use it.

1 Like