Skip to main content

EVM Smart Contract Events & logs API

Smart contract events and logs are an important feature of Ethereum smart contracts that allow developers to track and record specific actions or data on the blockchain. You can retrieve data on blockchain calls and logs from the blockchain network. You can find more examples here

query MyQuery {
EVM(dataset: combined, network: bsc) {
Events(
limit: { count: 10 }
orderBy: { descending: Block_Time }
where: { Block: { Date: { is: "2023-03-06" } } }
) {
Call {
CallPath
From
GasUsed
To
Signature {
Name
Signature
}
}
Log {
EnterIndex
ExitIndex
Index
LogAfterCallIndex
SmartContract
Signature {
Name
Signature
}
}
}
}
}

The query includes the Call and Log objects, which are parts of the events. The Call object contains information about the function calls made in the event, including the path, sender address, gas used, receiver address, and the name and signature of the function. The Log object contains information about the event logs, including the enter and exit indexes, log index, log after call index, the smart contract address, and the name and signature of the event.

Events contain the arguments as array, refer to arguments