import json
body = {
"anonymous": False,
"inputs": [
{
"indexed": False,
"internalType": "uint256",
"name": "itemId",
"type": "uint256"
},
{
"indexed": False,
"internalType": "address",
"name": "newOwner",
"type": "address"
},
{
"indexed": False,
"internalType": "address",
"name": "oldOwner",
"type": "address"
}
],
"name": "ChangeOwnership",
"type": "event"
}
api_key = "api_key"
params = {
"address": "0x8783832B3568FC52C5689c06f1350a294EDB4cDa",
"topic": "ChangeOwnership(uint256, address, address)",
"chain": "mumbai",
"from_block": 1,
"to_block": 100,
"from_date": "",
"to_date": "",
"offset": 0,
"limit": 0,
"disable_total": False,
}
# topic = "ChangeOwnership(uint256, address, address)"
result = evm_api.events.get_contract_events(
api_key=api_key,
params=params,
body=body,
)
print(result)
I’ll check later when I get back to computer
1 Like
it works with these settings:
params = {
"address": "0x8783832B3568FC52C5689c06f1350a294EDB4cDa",
"topic": "ChangeOwnership(uint256,address,address)",
"chain": "mumbai",
# "from_block": 1,
# "to_block": 100,
"from_date": "",
"to_date": "",
"offset": 0,
"limit": 1,
"disable_total": False,
}
solved thank you man
1 Like