Skip to main content
Schema: sei.defi Table: fact_dex_swaps Type: View Deprecating soon!Records swap transactions on Sei for Astroport, Fuzio, and Seaswap. Note: this only contains swaps from native sei protocols.

Columns

Column NameData TypeDescription
PLATFORMTEXT
BLOCK_IDNUMBERThe block height the block was recorded at.
BLOCK_TIMESTAMPTIMESTAMP_NTZThe date and time at which the block began.
TX_SUCCEEDEDBOOLEANTransaction status is TRUE if the transaction was successful, FALSE if the transaction failed.
TX_IDTEXTA unique key that identifies a transaction. Called “TxHash” on block explorers.
SWAPPERTEXTThe wallet address of the individual who initiated the swap.
MSG_GROUPNUMBERValue grouping different messages together to represent a single action. Format will include the numeric msg_group and msg_sub_group with a ”:” seperator. The subgroup will always be 0 except for “Exec” actions. NULL group means messages are related to the header (overall transaction)
MSG_SUB_GROUPNUMBERSilver only — Numeric value grouping different messages together to represent a single action within a group. This is relevent for exec actions that contain mutiple underlying actions. NULL sub group means messages are related to the header (overall transaction)
MSG_INDEXNUMBERShort for “message index,” the position in which messages occur in a transaction.
AMOUNT_INNUMBERThe amount that was sent into the swap transaction.
CURRENCY_INTEXTThe currency that was sent into the swap transaction.
AMOUNT_OUTNUMBERThe amount that was received from the swap transaction.
CURRENCY_OUTTEXT
POOL_ADDRESSTEXTAddress of the pool
POOL_NAMETEXTThe name of the pool
_INSERTED_TIMESTAMPTIMESTAMP_LTZ
FACT_DEX_SWAPS_IDTEXTThe unique identifier for each row in the table.
INSERTED_TIMESTAMPTIMESTAMP_NTZThe utc timestamp at which the row was inserted into the table.
MODIFIED_TIMESTAMPTIMESTAMP_NTZThe utc timestamp at which the row was last modified.