Skip to content
OnchainQueries

OQ — D13 · DEX & Trading

3 typed tables generated from the Lifinity AMM v2 IDL — 0 event tables and 3 instruction tables. Every column name comes from the program's own interface definition.

Tables
3
Event tables
0
Instruction tables
3
Account types
1

Program ID

2wT8Yq49kHgDzXuPxZSaeLaH1qbmGXtEyPy64bL7aD3c
OQ — D13·1Event tables

Lifinity AMM v2 declares no events in its IDL, so it has no evt_ tables. That is a property of the program, not a gap in coverage — use the 3 instruction tables below to read what it did and which accounts were involved.

OQ — D13·2Instruction tables

One table per instruction. OnchainQueries also exposes verified account_<name> aliases for instruction account columns when the bundled IDL and the live schema agree.

  • lifinity_amm_v2_solana.lifinity_amm_v2_call_deposit_all_token_typeslifinity_amm_v2.call_deposit_all_token_types
  • lifinity_amm_v2_solana.lifinity_amm_v2_call_swaplifinity_amm_v2.call_swap
  • lifinity_amm_v2_solana.lifinity_amm_v2_call_withdraw_all_token_typeslifinity_amm_v2.call_withdraw_all_token_types
OQ — D13·3Example

Typed parameters keep values out of the SQL text. Save the file, then pass each value with its type.

lifinity_amm_v2.sql
SELECT  date_trunc('hour', ts) AS hour,  count(*) AS eventsFROM lifinity_amm_v2_solana.lifinity_amm_v2_call_deposit_all_token_typesWHERE ts >= {{start_time}}GROUP BY hourORDER BY hour;
shell
query sql \  --file lifinity_amm_v2.sql \  --param 'start_time:timestamp=2026-08-01 00:00:00' \  --output ./results

OnchainQueries selects an engine, queues the query, and downloads checksum-verified Parquet parts plus a manifest. See the CLI guide.

Pro includes every engine class and 50,000 query credits a month.