recent ethereum events API example
Returns the latest 10 events on Ethereum, where transaction from is 0xcdd3…2af2 and signature name is Swap or TokenExchange: block time, block number, block hash, contract address, topics hash, success, log header address and 20 more fields.
What it returns
- block time
- block number
- block hash
- contract address
- topics hash
- success
- log header address
- log header index
- data
- transaction hash
- from
- to
- enter index
- exit index
- log index
- log after call index
- pc
- smart contract
- signature name
- signature signature
- arguments name
- integer
- value address
- string
- big integer
- hex
- bool
Filters
- transaction from is 0xcdd3…2af2
- signature name is Swap or TokenExchange
The query
{
EVM(network: eth, dataset: realtime) {
Events(
limit: {count: 10}
orderBy: {descending: Block_Time}
where: {Transaction: {From: {in: "0xcdd37ada79f589c15bd4f8fd2083dc88e34a2af2"}}, Log: {Signature: {Name: {in: ["Swap", "TokenExchange"]}}}}
) {
Block {
Time
Number
Hash
}
Receipt {
ContractAddress
}
Topics {
Hash
}
TransactionStatus {
Success
}
LogHeader {
Address
Index
Data
}
Transaction {
Hash
From
To
}
Log {
EnterIndex
ExitIndex
Index
LogAfterCallIndex
Pc
SmartContract
Signature {
Name
Signature
}
}
Arguments {
Name
Value {
... on EVM_ABI_Integer_Value_Arg {
integer
}
... on EVM_ABI_Address_Value_Arg {
address
}
... on EVM_ABI_String_Value_Arg {
string
}
... on EVM_ABI_BigInt_Value_Arg {
bigInteger
}
... on EVM_ABI_Bytes_Value_Arg {
hex
}
... on EVM_ABI_Boolean_Value_Arg {
bool
}
}
}
}
}
}
Similar queries
- New Curve liquidity pools on Ethereum · Ethereum · Events
- New Metric liquidity pools on Ethereum · Ethereum · Events
- event api · Ethereum · Events
- eth deposit contract events · Ethereum · Events
- eth_okx_aproove · Ethereum · Events