Docs

# Swaps

Swap Events emitted by uniswap smart contracts. These are NOT equivalent to trades.

# Swap attributes

# amount_0

The amount_0 attribute signifies the quantity of the first token involved in the swap, recorded as a uint 256 amount. This value is essential for understanding the scale of the swap from the perspective of the first token.

# amount_1

The amount_1 attribute indicates the quantity of the second token involved in the swap, recorded as a uint 256 amount. This measurement complements amount_0 and is vital for comprehending the full extent of the swap transaction.

# transaction_hash

The transaction_hash attribute specifies the hash of the tx in which the swap took place.

# pair_address

The pair_address attribute denotes contract address of the Uniswap trading pair associated with the swap.

# occurred_at

The occurred_at attribute records the timestamp when the swap was executed.

# block_number

The block_number attribute indicates the block number in which the swap occurred.