Skip to main content
Schema: crosschain.defi Table: ez_swaps Type: View

What

This table aggregates all swap transactions that happen within a chain from various decentralized exchange protocols such as Uniswap, sushiswap, etc.

Columns

Column NameData TypeDescription
BLOCKCHAINTEXTBLOCKCHAIN column
BLOCK_TIMESTAMPTIMESTAMP_NTZThe block timestamp of this transaction in UTC
BLOCK_NUMBERNUMBERThe block number at which the transaction is finalized.
TX_HASHTEXTTransaction hash is a unique 66-character identifier that is generated when a transaction is executed.
ORIGIN_FROM_ADDRESSTEXTThe address of the user who initiates the swap. If a swap action generates multiple swaps, all of them will have the same address as originfromaddress.
ORIGIN_TO_ADDRESSTEXTThe person who initiates the swap has to interact with this address. This address belongs to the decentralized exchange and/or is a router.
POOL_ADDRESSTEXTThe contract address for the liquidity pool.
PLATFORMTEXTThis field denotes which application the liquidity pool belongs to.
EVENT_INDEXFLOATEvent number within a transaction.
AMOUNT_INFLOATThe amount of tokens put into the swap.
AMOUNT_OUTFLOATThe amount of tokens taken out of or received from the swap.
SENDERTEXTThe address of the wallet or contract that creates the swap. The Router is usually the Sender in the swap function.
LOG_IDTEXTThis is the primary key for this table. This is a concatenation of the transaction hash and the event index at which the event occurred. This field can be used within other event based tables such as & .
TOKEN_INTEXTThe address of the token sent for swap.
TOKEN_OUTTEXTThe address of the token being swapped to.
SYMBOL_INTEXTThe symbol of the token sent for swap.
SYMBOL_OUTTEXTThe symbol of the token being swapped to.
TX_TOTEXTThe tx_to is the address who receives the swapped token. This corresponds to the “to” field in the swap function.
AMOUNT_IN_USDFLOATThe amount of tokens put into the swap converted to USD using the price of the token.
AMOUNT_OUT_USDFLOATThe amount of tokens taken out of or received from the swap converted to USD using the price of the token.
POOL_NAMETEXTPOOL_NAME column