Skip to main content

Table Description

The jupiter_solana.aggregator_swaps table captures high-level trade data executed via the Jupiter decentralized exchange (DEX) aggregator on Solana. Jupiter is the most important and only relevant aggregator on Solana, providing users with the best possible trade execution by aggregating liquidity from multiple DEXs.

Functional Overview

Users can expect the jupiter_solana.aggregator_swaps table to provide a comprehensive view of DEX trades facilitated by Jupiter on Solana. This table records each trade as a single entry, showing the user’s intended swap from input token to output token. For instance, a user might initiate a trade to swap USDC for SOL via Jupiter. The aggregator might route this trade through several liquidity pools, but jupiter_solana.aggregator_swaps will record it as a single USDC -> SOL trade, including details such as the amounts, USD values, and the specific AMM used for the swap.

Coverage

This table covers all trades executed through the Jupiter aggregator on Solana, which includes liquidity from various Solana-based DEXs and AMMs.

Table Schema

ColumnTypeDescription
ammVARCHARProgram ID of the AMM routed through
amm_nameVARCHARName of the AMM routed through
token_pairVARCHARToken pair routed through
input_symbolVARCHARSymbol of the token sold
input_mintVARCHARMint address of the token sold
input_amountBIGINTRaw amount of the token sold
input_decimalsBIGINTDecimals of the token sold
input_usdDOUBLEUSD value of the token sold
output_symbolVARCHARSymbol of the token bought
output_mintVARCHARMint address of the token bought
output_amountBIGINTRaw amount of the token bought
output_usdDOUBLEUSD value of the token bought
output_decimalsBIGINTDecimals of the token bought
log_indexBIGINTOrdering of the swap within the transaction
tx_idVARCHARTransaction ID
block_slotBIGINTBlock slot number
block_timeTIMESTAMPUTC block time
block_monthDATEBlock month (partition key)
tx_signerVARCHARSigner of the transaction
jup_versionINTEGERVersion of the Jupiter aggregator used

Table Sample