Skip to main content

Table of contents

The eth_mainnet.dex_swaps table provides indexed views of all blocks.

Columns

NameTypeDescription
block_numberintegerThe block number at which the DEX swap occurred.
log_indexintegerThe log index at which the DEX swap occurred.
transaction_hashvarcharThe transaction hash at which the DEX swap occurred.
timestampintegerThe timestamp at which the DEX swap occurred.
exchange_namevarcharThe name of the exchange that facilitated the DEX swap.
contract_versionvarcharThe version of the exchange contract (e.g. v1 or v2).
aggregator_namevarcharThe name of the DEX aggregator that facilitated the DEX swap (null if not found).
contract_addressvarcharThe contract address of the pool that facilitated the DEX swap.
from_token_addressvarcharThe address of the token that was swapped in.
to_token_addressvarcharThe address of the token that was swapped out.
quantity_inbigintThe amount of the token that was swapped in.
quantity_outbigintThe amount of the token that was swapped out.
effective_pricevarcharThe price of the to-token denominated by the from-token (i.e. quantity_out / quantity_in).
sender_addressvarcharThe address that sent the tokens to the pool in the swap.
origin_addressvarcharThe address that submitted the transaction that contained the swap.
block_timedateN/A
ymvarcharN/A