Skip to main content

Table Details

PropertyValue
Table Nameunichain_sepolia.dex.trades
Table StatusBeta 🌱
Unique Keyblock_timestamp, unique_id
Clustering Key(s)block_timestamp::date
Search Optimizationtransaction_hash, project, transaction_from_address

Table Columns

Column NameData TypeDescription
projectVARCHAR(16777216)The project (decentralized exchange) of the liquidity pool that the swap occurred from.
protocolVARCHAR(16777216)DEX protocol (& version, if applicable) of the contract address facilitating the swap.
liquidity_pool_addressVARCHAR(42)Contract address of the liquidity pool holding the asset. For protocol without the concept of LP such as airswap, this will be null.
sender_addressVARCHAR(42)The address of the sender emitted on the swap event logs. This can be a router or pool address.
to_addressVARCHAR(42)Address of the recipient emitted on the swap event logs. For example, recipient_address from the uniswap v3 swap event log.
token_sold_addressVARCHAR(42)Token address of the token sold.
token_sold_nameVARCHAR(16777216)Name of the token sold.
token_sold_symbolVARCHAR(16777216)Symbol of the token sold.
token_sold_decimalsNUMBER(38,0)Token decimals of the token sold.
token_sold_amount_raw_strVARCHAR(16777216)Raw amount of tokens sold (unnormalized) in string.
token_sold_amount_rawFLOATRaw amount of tokens sold (unnormalized).
token_sold_amount_strVARCHAR(16777216)Amount of tokens sold in string.
token_sold_amountFLOATAmount of tokens sold.
usd_sold_amountFLOATAmount of token sold in USD value.
token_bought_addressVARCHAR(42)Token address of the token bought, i.e. the asset acquired from the trade.
token_bought_nameVARCHAR(16777216)Name of the token bought.
token_bought_symbolVARCHAR(16777216)Symbol of the token bought.
token_bought_decimalsNUMBER(38,0)Token decimals of the token bought.
token_bought_amount_raw_strVARCHAR(16777216)Raw amount of tokens bought (unnormalized) in string.
token_bought_amount_rawFLOATRaw amount of tokens bought (unnormalized).
token_bought_amount_strVARCHAR(16777216)Amount of tokens bought in string.
token_bought_amountFLOATAmount of tokens bought.
usd_bought_amountFLOATAmount of token bought in USD value.
usd_amountFLOATUSD value of the swap. This field preferentially selects the USD value of ETH and Stablecoin (USDT/USDC) tokens, as spam token prices may conflate the true swap value.
extra_fieldsVARIANTThis field contains all the extra columns emitted from the event/function call that were not part of the convetional DEX trades columns.
swap_countNUMBER(38,0)Swap count within the transaction.
transaction_feesVARCHAR(16777216)Fees paid at the transaction level. Varchar to retain precision.
transaction_fees_usdFLOATFees paid in USD.
fee_detailsVARIANTAdditional fee details of the transaction, including max priority fee, gas price and gas used for the transaction.
transaction_from_addressVARCHAR(42)Transaction sender address. I.e. the address of the transaction initiator. (from_address in the raw.transactions field for the transaction_hash of this swap).
transaction_to_addressVARCHAR(42)Transaction receiver. (to_address in the raw.transactions field for the transaction_hash of this swap).
transaction_hashVARCHAR(66)Transaction hash that this swap belongs to.
transaction_indexNUMBER(38,0)The position of this transaction in the block that it belongs to. The first transaction has index 0.
selectorVARCHAR(16777216)4byte selector of the transaction.
log_indexNUMBER(38,0)The position of the swap event log in the transaction.
block_timestampTIMESTAMP_NTZ(9)Block timestamp of the swap event.
block_numberNUMBER(38,0)Block number of the swap event.
block_hashVARCHAR(66)Block hash of the swap event.
unique_idVARCHAR(16777216)Unique ID of each trade.
_created_atTIMESTAMP_NTZ(9)Timestamp of when the entry was created in the database.
_updated_atTIMESTAMP_NTZ(9)Timestamp of when the entry was last updated in the database.
_changed_since_full_refreshBOOLEANIndicates if the record has changed since the last full data refresh.