The dex.uniswap_v3_events table contains swap, sync, mint, collect, burn, initialize, flash, flash_paid events from liquidity pool untilising Uniswap v3 protocol.

  • For the flash event, the event log is separated into flash and flash_paid

  • Columns appended with _str are in string format and will retain precision

  • Note that not all columns are applicabel to all events.

Table Columns

Unique Key: unique_id

Column NameData TypeDescription
eventVARCHAREvent log name (e.g. mint, burn, swap, swap, flash, flash_paid)
projectVARCHARName of the project (e.g., uniswap)
protocolVARCHARDEX protocol or project contract (e.g., uniswap_v3)
factory_addressVARCHARThe factory address that deployed the liquidity pool
liquidity_pool_addressVARCHARThe liquidity pool address which emitted the event
owner_addressVARCHAROwner address
sender_addressVARCHARAddress of the sender of the event log
recipient_addressVARCHARAddress of the recipient of the event log
token0_addressVARCHARToken0 contract address
token0_nameVARCHARToken0 name
token0_symbolVARCHARToken0 symbol
token0_decimalsINTEGERToken0 decimals
token0_amount_raw_strVARCHARToken0 amount unnormalized, in string format for precision
token0_amount_rawFLOATToken0 amount unnormalized
token0_amount_strVARCHARToken0 amount normalized, in string format for precision
token0_amountFLOATToken0 amount normalized
token0_amount_usdFLOATToken0 USD amount
token0_price_usdFLOATToken0 hourly USD price at event time
token1_addressVARCHARToken1 contract address
token1_nameVARCHARToken1 name
token1_symbolVARCHARToken1 symbol
token1_decimalsINTEGERToken1 decimals
token1_amount_raw_strVARCHARToken1 amount unnormalized, in string format for precision
token1_amount_rawFLOATToken1 amount unnormalized
token1_amount_strVARCHARToken1 amount normalized, in string format for precision
token1_amountFLOATToken1 amount normalized
token1_amount_usdFLOATToken1 USD amount
token1_price_usdFLOATToken1 hourly USD price at event time
usd_amountFLOATUSD value of the event
liquidityFLOATLiquidity field
feeINTEGERFee denomination of the pool address
tick_spacingINTEGERTick spacing of the pool address
sqrt_price_x96FLOATSquare root 96 price
tickINTEGERPrice tick
tick_lowerINTEGERThe lower tick of the position
tick_upperINTEGERThe upper tick of the position
price_lower_0_1FLOATLower bound price of token0 per token1
price_upper_0_1FLOATUpper bound price of token0 per token1
price_lower_1_0FLOATLower bound price of token1 per token0
price_upper_1_0FLOATUpper bound price of token1 per token0
transaction_from_addressVARCHARThe sending party address
transaction_to_addressVARCHARThe receiving party address
transaction_hashVARCHARTransaction hash
transaction_indexINTEGERTransaction index in the block
transaction_feesFLOATFees paid at the transaction level
transaction_fees_usdFLOATFees paid in USD
fee_detailsOBJECTAdditional fee details (gas, gas price, etc.)
selectorVARCHARCall data selector at transaction level
log_indexINTEGERLog index of this trade
block_timestampTIMESTAMP_NTZ(9)Block timestamp
block_numberINTEGERBlock number
block_hashVARCHARBlock hash
unique_idVARCHARUnique ID of each trade
created_atTIMESTAMP_NTZ(9)Entry creation timestamp
updated_atTIMESTAMP_NTZ(9)Entry update timestamp