EVM Events
The core EVM blockchain data collection
Availability
This collection is available for Ethereum, Polygon, Arbitrum, Base and BSC.
Points-of-Presence | Tables |
---|---|
eu-west-1 |
|
Mapping rules
The table is wide and sparse. Each event's input is stored in a column named after its index
in the input list and its derived type
.
The column's name for a given input is derived as such: input_
index
_value_
type
We support events with up to 12 inputs.
The mapping rules used to derive an input type from an ABI type are specified in the table below.
ABI Type | Derived Type |
---|---|
address | address |
string | string |
bytes | string |
bytes<M> where 0 < M <= 32 | string |
bool | uint8 |
uint8 | uint8 |
uint | uint32 |
uint | uint64 |
uint | uint256 |
int8 | int8 |
int | int32 |
int | int64 |
int | int256 |
address[] | address_array |
string[] | string_array |
bool[] | uint8_array |
uint8[] | uint8_array |
uint | uint32_array |
uint | uint64_array |
uint | uint256_array |
int8[] | int8_array |
int | int32_array |
int | int64_array |
int | int256_array |
Here is how we store the various inputs of Transfer
event:
Transfer(to address, from address, amount uint256))
to value is stored in the column input_0_value_address
from value is stored in the column input_1_value_address
amount is stored in the column input_2_value_uint256
Table Schema
Column Name | Column Type | Description |
---|---|---|
chain_name | string | Name of the chain ( |
chain_network_name | string | name of the network ( |
block_hash | string | Block hash encoded as binary string |
block_number | uint64 | Block height |
block_index | uint32 | Index of the event in the block |
transaction_index | uint32 | Index of the transaction in the block |
transaction_status | uint32 | Status of the transaction |
timestamp | datetime | UNIX timestamp for when the block was collated |
signature | string | Signature of the event as defined per the ABI spec ( |
fullsig | string | Signature of the event as defined per the ABI spec with the addition of the indexed modifier ( |
address | string | Address of the contract that emitted the event |
removed | uint8 | Removed field of the log |
log_index | uint32 | Index of the log in the block |
input_ | string | ABI type of the input at |
input_ | Content if the input at |
Usage
The query below make use of the evm_events_ethereum_mainnet_v1
table to retrieve the number of transfers and the amount transferred for each day since the beginning of the year, for USDC (0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48).
Last updated