Skip to content
OnchainQueries

OQ — D15 · DEX & Trading

61 typed tables generated from the Meteora AMM IDL — 23 event tables and 38 instruction tables. Every column name comes from the program's own interface definition.

Tables
61
Event tables
23
Instruction tables
38
Account types
9

Program ID

cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG
OQ — D15·1Event tables

One table per event declared in the IDL. The fully qualified name is on the left, the short alias on the right — both resolve to the same physical table.

23/23
  • meteora_amm_solana.meteora_amm_evt_evt_claim_position_feemeteora_amm.evt_claim_position_fee
  • meteora_amm_solana.meteora_amm_evt_evt_claim_protocol_feemeteora_amm.evt_claim_protocol_fee
  • meteora_amm_solana.meteora_amm_evt_evt_claim_rewardmeteora_amm.evt_claim_reward
  • meteora_amm_solana.meteora_amm_evt_evt_close_configmeteora_amm.evt_close_config
  • meteora_amm_solana.meteora_amm_evt_evt_close_positionmeteora_amm.evt_close_position
  • meteora_amm_solana.meteora_amm_evt_evt_create_configmeteora_amm.evt_create_config
  • meteora_amm_solana.meteora_amm_evt_evt_create_dynamic_configmeteora_amm.evt_create_dynamic_config
  • meteora_amm_solana.meteora_amm_evt_evt_create_positionmeteora_amm.evt_create_position
  • meteora_amm_solana.meteora_amm_evt_evt_create_token_badgemeteora_amm.evt_create_token_badge
  • meteora_amm_solana.meteora_amm_evt_evt_fund_rewardmeteora_amm.evt_fund_reward
  • meteora_amm_solana.meteora_amm_evt_evt_initialize_poolmeteora_amm.evt_initialize_pool
  • meteora_amm_solana.meteora_amm_evt_evt_initialize_rewardmeteora_amm.evt_initialize_reward
  • meteora_amm_solana.meteora_amm_evt_evt_liquidity_changemeteora_amm.evt_liquidity_change
  • meteora_amm_solana.meteora_amm_evt_evt_lock_positionmeteora_amm.evt_lock_position
  • meteora_amm_solana.meteora_amm_evt_evt_permanent_lock_positionmeteora_amm.evt_permanent_lock_position
  • meteora_amm_solana.meteora_amm_evt_evt_set_pool_statusmeteora_amm.evt_set_pool_status
  • meteora_amm_solana.meteora_amm_evt_evt_split_position2meteora_amm.evt_split_position2
  • meteora_amm_solana.meteora_amm_evt_evt_split_position3meteora_amm.evt_split_position3
  • meteora_amm_solana.meteora_amm_evt_evt_swap2meteora_amm.evt_swap2
  • meteora_amm_solana.meteora_amm_evt_evt_update_pool_feesmeteora_amm.evt_update_pool_fees
  • meteora_amm_solana.meteora_amm_evt_evt_update_reward_durationmeteora_amm.evt_update_reward_duration
  • meteora_amm_solana.meteora_amm_evt_evt_update_reward_fundermeteora_amm.evt_update_reward_funder
  • meteora_amm_solana.meteora_amm_evt_evt_withdraw_ineligible_rewardmeteora_amm.evt_withdraw_ineligible_reward
OQ — D15·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.

38/38
  • meteora_amm_solana.meteora_amm_call_add_liquiditymeteora_amm.call_add_liquidity
  • meteora_amm_solana.meteora_amm_call_claim_position_feemeteora_amm.call_claim_position_fee
  • meteora_amm_solana.meteora_amm_call_claim_protocol_feemeteora_amm.call_claim_protocol_fee
  • meteora_amm_solana.meteora_amm_call_claim_rewardmeteora_amm.call_claim_reward
  • meteora_amm_solana.meteora_amm_call_close_configmeteora_amm.call_close_config
  • meteora_amm_solana.meteora_amm_call_close_operator_accountmeteora_amm.call_close_operator_account
  • meteora_amm_solana.meteora_amm_call_close_positionmeteora_amm.call_close_position
  • meteora_amm_solana.meteora_amm_call_close_token_badgemeteora_amm.call_close_token_badge
  • meteora_amm_solana.meteora_amm_call_create_configmeteora_amm.call_create_config
  • meteora_amm_solana.meteora_amm_call_create_dynamic_configmeteora_amm.call_create_dynamic_config
  • meteora_amm_solana.meteora_amm_call_create_operator_accountmeteora_amm.call_create_operator_account
  • meteora_amm_solana.meteora_amm_call_create_positionmeteora_amm.call_create_position
  • meteora_amm_solana.meteora_amm_call_create_token_badgemeteora_amm.call_create_token_badge
  • meteora_amm_solana.meteora_amm_call_dummy_ixmeteora_amm.call_dummy_ix
  • meteora_amm_solana.meteora_amm_call_fix_config_fee_paramsmeteora_amm.call_fix_config_fee_params
  • meteora_amm_solana.meteora_amm_call_fix_pool_fee_paramsmeteora_amm.call_fix_pool_fee_params
  • meteora_amm_solana.meteora_amm_call_fix_pool_layout_versionmeteora_amm.call_fix_pool_layout_version
  • meteora_amm_solana.meteora_amm_call_fund_rewardmeteora_amm.call_fund_reward
  • meteora_amm_solana.meteora_amm_call_initialize_customizable_poolmeteora_amm.call_initialize_customizable_pool
  • meteora_amm_solana.meteora_amm_call_initialize_poolmeteora_amm.call_initialize_pool
  • meteora_amm_solana.meteora_amm_call_initialize_pool_with_dynamic_configmeteora_amm.call_initialize_pool_with_dynamic_config
  • meteora_amm_solana.meteora_amm_call_initialize_rewardmeteora_amm.call_initialize_reward
  • meteora_amm_solana.meteora_amm_call_lock_inner_positionmeteora_amm.call_lock_inner_position
  • meteora_amm_solana.meteora_amm_call_lock_positionmeteora_amm.call_lock_position
  • meteora_amm_solana.meteora_amm_call_permanent_lock_positionmeteora_amm.call_permanent_lock_position
  • meteora_amm_solana.meteora_amm_call_refresh_vestingmeteora_amm.call_refresh_vesting
  • meteora_amm_solana.meteora_amm_call_remove_all_liquiditymeteora_amm.call_remove_all_liquidity
  • meteora_amm_solana.meteora_amm_call_remove_liquiditymeteora_amm.call_remove_liquidity
  • meteora_amm_solana.meteora_amm_call_set_pool_statusmeteora_amm.call_set_pool_status
  • meteora_amm_solana.meteora_amm_call_split_positionmeteora_amm.call_split_position
  • meteora_amm_solana.meteora_amm_call_split_position2meteora_amm.call_split_position2
  • meteora_amm_solana.meteora_amm_call_swapmeteora_amm.call_swap
  • meteora_amm_solana.meteora_amm_call_swap2meteora_amm.call_swap2
  • meteora_amm_solana.meteora_amm_call_update_pool_feesmeteora_amm.call_update_pool_fees
  • meteora_amm_solana.meteora_amm_call_update_reward_durationmeteora_amm.call_update_reward_duration
  • meteora_amm_solana.meteora_amm_call_update_reward_fundermeteora_amm.call_update_reward_funder
  • meteora_amm_solana.meteora_amm_call_withdraw_ineligible_rewardmeteora_amm.call_withdraw_ineligible_reward
  • meteora_amm_solana.meteora_amm_call_zap_protocol_feemeteora_amm.call_zap_protocol_fee
OQ — D15·3Example

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

meteora_amm.sql
SELECT  date_trunc('hour', ts) AS hour,  count(*) AS eventsFROM meteora_amm_solana.meteora_amm_evt_evt_create_configWHERE ts >= {{start_time}}GROUP BY hourORDER BY hour;
shell
query sql \  --file meteora_amm.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.