Solana Data APIs
Meteora DAMM V2 Program Data API
Explore decoded instructions, events, and account roles for Meteora DAMM V2 Program.
cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGGdescribeProgram
Call describeProgram to get a parsed list of instructions, accounts, and
roles for Meteora DAMM V2 Program
and 3,600+ Solana programs.
{
"jsonrpc": "2.0",
"id": 1,
"method": "describeProgram",
"params": [
{
"program": "cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG"
}
]
}{
"jsonrpc": "2.0",
"id": 1,
"method": "describeProgram",
"params": [
{
"program": "cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG"
}
]
}Copyable examples
Stream Meteora DAMM V2 Program data
Subscribe using the Meteora DAMM V2 Program program ID and filter results by instructions, accounts, account roles, failed transactions, or CPIs.
const ws = new WebSocket(
"wss://beta.helius-rpc.com/?api-key=YOUR_API_KEY",
);
ws.addEventListener("open", () => {
ws.send(JSON.stringify({
jsonrpc: "2.0",
id: 1,
method: "parsedTransactionSubscribe",
params: [{
programs: ["cpamdpZCGKUy5JxQXB4dcpGPiikHawvSWAd6mEn1sGG"],
instructionNames: ["add_liquidity"],
includeFailed: false,
includeCpi: true,
}],
}));
});Runtime vocabulary
Instructions (38)
Instruction names are the exact runtime names returned by Helius describeProgram. Argument and account schema details appear only when they map unambiguously to the raw IDL.
Showing all 38 instructions
add_liquidity Expand Collapse
Arguments
| Name | Type |
|---|---|
| params | AddLiquidityParameters |
Accounts
-
poolWritable -
positionWritable -
token_a_accountWritable -
token_b_accountWritable -
token_a_vaultWritable -
token_b_vaultWritable -
token_a_mintRead-only -
token_b_mintRead-only -
position_nft_accountRead-only -
ownerRead-onlySigner -
token_a_programRead-only -
token_b_programRead-only -
event_authorityRead-only -
programRead-only
claim_position_fee Expand Collapse
Arguments
No unambiguous argument schema is available.
Accounts
-
pool_authorityRead-only -
poolRead-only -
positionWritable -
token_a_accountWritable -
token_b_accountWritable -
token_a_vaultWritable -
token_b_vaultWritable -
token_a_mintRead-only -
token_b_mintRead-only -
position_nft_accountRead-only -
ownerRead-onlySigner -
token_a_programRead-only -
token_b_programRead-only -
event_authorityRead-only -
programRead-only
claim_protocol_fee Expand Collapse
Arguments
| Name | Type |
|---|---|
| max_amount_a | u64 |
| max_amount_b | u64 |
Accounts
-
pool_authorityRead-only -
poolWritable -
token_a_vaultWritable -
token_b_vaultWritable -
token_a_mintRead-only -
token_b_mintRead-only -
token_a_accountWritable -
token_b_accountWritable -
operatorRead-only -
signerRead-onlySigner -
token_a_programRead-only -
token_b_programRead-only -
event_authorityRead-only -
programRead-only
claim_reward Expand Collapse
Arguments
| Name | Type |
|---|---|
| reward_index | u8 |
| skip_reward | u8 |
Accounts
-
pool_authorityRead-only -
poolWritable -
positionWritable -
reward_vaultWritable -
reward_mintRead-only -
user_token_accountWritable -
position_nft_accountRead-only -
ownerRead-onlySigner -
token_programRead-only -
event_authorityRead-only -
programRead-only
close_config Expand Collapse
Arguments
No unambiguous argument schema is available.
Accounts
-
configWritable -
operatorRead-only -
signerRead-onlySigner -
rent_receiverWritable -
event_authorityRead-only -
programRead-only
close_operator_account Expand Collapse
Arguments
No unambiguous argument schema is available.
Accounts
-
operatorWritable -
signerRead-onlySigner -
rent_receiverWritable -
event_authorityRead-only -
programRead-only
close_position Expand Collapse
Arguments
No unambiguous argument schema is available.
Accounts
-
position_nft_mintWritable -
position_nft_accountWritable -
poolWritable -
positionWritable -
pool_authorityRead-only -
rent_receiverWritable -
ownerRead-onlySigner -
token_programRead-only -
event_authorityRead-only -
programRead-only
close_token_badge Expand Collapse
Arguments
No unambiguous argument schema is available.
Accounts
-
token_badgeWritable -
operatorRead-only -
signerRead-onlySigner -
rent_receiverWritable -
event_authorityRead-only -
programRead-only
create_config Expand Collapse
Arguments
| Name | Type |
|---|---|
| index | u64 |
| config_parameters | StaticConfigParameters |
Accounts
-
configWritable -
operatorRead-only -
signerRead-onlySigner -
payerWritableSigner -
system_programRead-only -
event_authorityRead-only -
programRead-only
create_dynamic_config Expand Collapse
Arguments
| Name | Type |
|---|---|
| index | u64 |
| config_parameters | DynamicConfigParameters |
Accounts
-
configWritable -
operatorRead-only -
signerRead-onlySigner -
payerWritableSigner -
system_programRead-only -
event_authorityRead-only -
programRead-only
create_operator_account Expand Collapse
Arguments
| Name | Type |
|---|---|
| permission | u128 |
Accounts
-
operatorWritable -
whitelisted_addressRead-only -
signerRead-onlySigner -
payerWritableSigner -
system_programRead-only -
event_authorityRead-only -
programRead-only
create_position Expand Collapse
Arguments
No unambiguous argument schema is available.
Accounts
-
ownerRead-only -
position_nft_mintWritableSigner -
position_nft_accountWritable -
poolWritable -
positionWritable -
pool_authorityRead-only -
payerWritableSigner -
token_programRead-only -
system_programRead-only -
event_authorityRead-only -
programRead-only
create_token_badge Expand Collapse
Arguments
No unambiguous argument schema is available.
Accounts
-
token_badgeWritable -
token_mintRead-only -
operatorRead-only -
signerRead-onlySigner -
payerWritableSigner -
system_programRead-only -
event_authorityRead-only -
programRead-only
dummy_ix Expand Collapse
Arguments
| Name | Type |
|---|---|
| _ixs | DummyParams |
Accounts
-
pod_aligned_fee_time_schedulerRead-only -
pod_aligned_fee_rate_limiterRead-only -
pod_aligned_fee_market_cap_schedulerRead-only
fix_config_fee_params Expand Collapse
Arguments
| Name | Type |
|---|---|
| params | BaseFeeParameters |
Accounts
-
configWritable -
operatorRead-only -
signerRead-onlySigner
fix_pool_fee_params Expand Collapse
Arguments
| Name | Type |
|---|---|
| params | BaseFeeParameters |
Accounts
-
poolWritable -
operatorRead-only -
signerRead-onlySigner
fix_pool_layout_version Expand Collapse
Arguments
No unambiguous argument schema is available.
Accounts
-
poolWritable -
operatorRead-only -
signerRead-onlySigner
fund_reward Expand Collapse
Arguments
| Name | Type |
|---|---|
| reward_index | u8 |
| amount | u64 |
| carry_forward | bool |
Accounts
-
poolWritable -
reward_vaultWritable -
reward_mintRead-only -
funder_token_accountWritable -
funderRead-onlySigner -
token_programRead-only -
event_authorityRead-only -
programRead-only
initialize_customizable_pool Expand Collapse
Arguments
| Name | Type |
|---|---|
| params | InitializeCustomizablePoolParameters |
Accounts
-
creatorRead-only -
position_nft_mintWritableSigner -
position_nft_accountWritable -
payerWritableSigner -
pool_authorityRead-only -
poolWritable -
positionWritable -
token_a_mintRead-only -
token_b_mintRead-only -
token_a_vaultWritable -
token_b_vaultWritable -
payer_token_aWritable -
payer_token_bWritable -
token_a_programRead-only -
token_b_programRead-only -
token_2022_programRead-only -
system_programRead-only -
event_authorityRead-only -
programRead-only
initialize_pool Expand Collapse
Arguments
| Name | Type |
|---|---|
| params | InitializePoolParameters |
Accounts
-
creatorRead-only -
position_nft_mintWritableSigner -
position_nft_accountWritable -
payerWritableSigner -
configRead-only -
pool_authorityRead-only -
poolWritable -
positionWritable -
token_a_mintRead-only -
token_b_mintRead-only -
token_a_vaultWritable -
token_b_vaultWritable -
payer_token_aWritable -
payer_token_bWritable -
token_a_programRead-only -
token_b_programRead-only -
token_2022_programRead-only -
system_programRead-only -
event_authorityRead-only -
programRead-only
initialize_pool_with_dynamic_config Expand Collapse
Arguments
| Name | Type |
|---|---|
| params | InitializeCustomizablePoolParameters |
Accounts
-
creatorRead-only -
position_nft_mintWritableSigner -
position_nft_accountWritable -
payerWritableSigner -
pool_creator_authorityRead-onlySigner -
configRead-only -
pool_authorityRead-only -
poolWritable -
positionWritable -
token_a_mintRead-only -
token_b_mintRead-only -
token_a_vaultWritable -
token_b_vaultWritable -
payer_token_aWritable -
payer_token_bWritable -
token_a_programRead-only -
token_b_programRead-only -
token_2022_programRead-only -
system_programRead-only -
event_authorityRead-only -
programRead-only
initialize_reward Expand Collapse
Arguments
| Name | Type |
|---|---|
| reward_index | u8 |
| reward_duration | u64 |
| funder | pubkey |
Accounts
-
pool_authorityRead-only -
poolWritable -
reward_vaultWritable -
reward_mintRead-only -
signerRead-onlySigner -
payerWritableSigner -
token_programRead-only -
system_programRead-only -
event_authorityRead-only -
programRead-only
lock_inner_position Expand Collapse
Arguments
| Name | Type |
|---|---|
| params | VestingParameters |
Accounts
-
poolRead-only -
positionWritable -
position_nft_accountRead-only -
ownerRead-onlySigner -
event_authorityRead-only -
programRead-only
lock_position Expand Collapse
Arguments
| Name | Type |
|---|---|
| params | VestingParameters |
Accounts
-
poolRead-only -
positionWritable -
vestingWritableSigner -
position_nft_accountRead-only -
ownerRead-onlySigner -
payerWritableSigner -
system_programRead-only -
event_authorityRead-only -
programRead-only
permanent_lock_position Expand Collapse
Arguments
| Name | Type |
|---|---|
| permanent_lock_liquidity | u128 |
Accounts
-
poolWritable -
positionWritable -
position_nft_accountRead-only -
ownerRead-onlySigner -
event_authorityRead-only -
programRead-only
refresh_vesting Expand Collapse
Arguments
No unambiguous argument schema is available.
Accounts
-
poolRead-only -
positionWritable -
position_nft_accountRead-only -
ownerRead-only
remove_all_liquidity Expand Collapse
Arguments
| Name | Type |
|---|---|
| token_a_amount_threshold | u64 |
| token_b_amount_threshold | u64 |
Accounts
-
pool_authorityRead-only -
poolWritable -
positionWritable -
token_a_accountWritable -
token_b_accountWritable -
token_a_vaultWritable -
token_b_vaultWritable -
token_a_mintRead-only -
token_b_mintRead-only -
position_nft_accountRead-only -
ownerRead-onlySigner -
token_a_programRead-only -
token_b_programRead-only -
event_authorityRead-only -
programRead-only
remove_liquidity Expand Collapse
Arguments
| Name | Type |
|---|---|
| params | RemoveLiquidityParameters |
Accounts
-
pool_authorityRead-only -
poolWritable -
positionWritable -
token_a_accountWritable -
token_b_accountWritable -
token_a_vaultWritable -
token_b_vaultWritable -
token_a_mintRead-only -
token_b_mintRead-only -
position_nft_accountRead-only -
ownerRead-onlySigner -
token_a_programRead-only -
token_b_programRead-only -
event_authorityRead-only -
programRead-only
set_pool_status Expand Collapse
Arguments
| Name | Type |
|---|---|
| status | u8 |
Accounts
-
poolWritable -
operatorRead-only -
signerRead-onlySigner -
event_authorityRead-only -
programRead-only
split_position Expand Collapse
Arguments
| Name | Type |
|---|---|
| params | SplitPositionParameters |
Accounts
-
poolWritable -
first_positionWritable -
first_position_nft_accountRead-only -
second_positionWritable -
second_position_nft_accountRead-only -
first_ownerRead-onlySigner -
second_ownerRead-onlySigner -
event_authorityRead-only -
programRead-only
split_position2 Expand Collapse
Arguments
| Name | Type |
|---|---|
| numerator | u32 |
Accounts
-
poolWritable -
first_positionWritable -
first_position_nft_accountRead-only -
second_positionWritable -
second_position_nft_accountRead-only -
first_ownerRead-onlySigner -
second_ownerRead-onlySigner -
event_authorityRead-only -
programRead-only
swap Expand Collapse
Arguments
| Name | Type |
|---|---|
| _params | SwapParameters |
Accounts
-
pool_authorityRead-only -
poolWritable -
input_token_accountWritable -
output_token_accountWritable -
token_a_vaultWritable -
token_b_vaultWritable -
token_a_mintRead-only -
token_b_mintRead-only -
payerRead-onlySigner -
token_a_programRead-only -
token_b_programRead-only -
referral_token_accountWritableOptional -
event_authorityRead-only -
programRead-only
swap2 Expand Collapse
Arguments
| Name | Type |
|---|---|
| _params | SwapParameters2 |
Accounts
-
pool_authorityRead-only -
poolWritable -
input_token_accountWritable -
output_token_accountWritable -
token_a_vaultWritable -
token_b_vaultWritable -
token_a_mintRead-only -
token_b_mintRead-only -
payerRead-onlySigner -
token_a_programRead-only -
token_b_programRead-only -
referral_token_accountWritableOptional -
event_authorityRead-only -
programRead-only
update_pool_fees Expand Collapse
Arguments
| Name | Type |
|---|---|
| params | UpdatePoolFeesParameters |
Accounts
-
poolWritable -
operatorRead-only -
signerRead-onlySigner -
event_authorityRead-only -
programRead-only
update_reward_duration Expand Collapse
Arguments
| Name | Type |
|---|---|
| reward_index | u8 |
| new_duration | u64 |
Accounts
-
poolWritable -
signerRead-onlySigner -
event_authorityRead-only -
programRead-only
update_reward_funder Expand Collapse
Arguments
| Name | Type |
|---|---|
| reward_index | u8 |
| new_funder | pubkey |
Accounts
-
poolWritable -
signerRead-onlySigner -
event_authorityRead-only -
programRead-only
withdraw_ineligible_reward Expand Collapse
Arguments
| Name | Type |
|---|---|
| reward_index | u8 |
Accounts
-
pool_authorityRead-only -
poolWritable -
reward_vaultWritable -
reward_mintRead-only -
funder_token_accountWritable -
funderRead-onlySigner -
token_programRead-only -
event_authorityRead-only -
programRead-only
zap_protocol_fee Expand Collapse
Arguments
| Name | Type |
|---|---|
| max_amount | u64 |
Accounts
-
pool_authorityRead-only -
poolWritable -
token_vaultWritable -
token_mintRead-only -
receiver_tokenWritable -
operatorRead-only -
signerRead-onlySigner -
token_programRead-only -
sysvar_instructionsRead-only
Program-defined data
IDL events (23)
These are events defined by the Meteora DAMM V2 Program IDL.
EvtClaimPositionFee 5 fields
poolpubkeypositionpubkeyownerpubkeyfee_a_claimedu64fee_b_claimedu64
EvtClaimProtocolFee 3 fields
poolpubkeytoken_a_amountu64token_b_amountu64
EvtClaimReward 6 fields
poolpubkeypositionpubkeyownerpubkeymint_rewardpubkeyreward_indexu8total_rewardu64
EvtCloseConfig 2 fields
configpubkeyadminpubkey
EvtClosePosition 4 fields
poolpubkeyownerpubkeypositionpubkeyposition_nft_mintpubkey
EvtCreateConfig 9 fields
pool_feesPoolFeeParametersvault_config_keypubkeypool_creator_authoritypubkeyactivation_typeu8sqrt_min_priceu128sqrt_max_priceu128collect_fee_modeu8indexu64configpubkey
EvtCreateDynamicConfig 3 fields
configpubkeypool_creator_authoritypubkeyindexu64
EvtCreatePosition 4 fields
poolpubkeyownerpubkeypositionpubkeyposition_nft_mintpubkey
EvtCreateTokenBadge 1 field
token_mintpubkey
EvtFundReward 9 fields
poolpubkeyfunderpubkeymint_rewardpubkeyreward_indexu8amountu64transfer_fee_excluded_amount_inu64reward_duration_endu64pre_reward_rateu128post_reward_rateu128
EvtInitializePool 21 fields
poolpubkeytoken_a_mintpubkeytoken_b_mintpubkeycreatorpubkeypayerpubkeyalpha_vaultpubkeypool_feesPoolFeeParameterssqrt_min_priceu128sqrt_max_priceu128activation_typeu8collect_fee_modeu8liquidityu128sqrt_priceu128activation_pointu64token_a_flagu8token_b_flagu8token_a_amountu64token_b_amountu64total_amount_au64total_amount_bu64pool_typeu8
EvtInitializeReward 6 fields
poolpubkeyreward_mintpubkeyfunderpubkeycreatorpubkeyreward_indexu8reward_durationu64
EvtLiquidityChange 13 fields
poolpubkeypositionpubkeyownerpubkeytoken_a_amountu64token_b_amountu64transfer_fee_included_token_a_amountu64transfer_fee_included_token_b_amountu64reserve_a_amountu64reserve_b_amountu64liquidity_deltau128token_a_amount_thresholdu64token_b_amount_thresholdu64change_typeu8
EvtLockPosition 9 fields
poolpubkeypositionpubkeyownerpubkeyvestingpubkeycliff_pointu64period_frequencyu64cliff_unlock_liquidityu128liquidity_per_periodu128number_of_periodu16
EvtPermanentLockPosition 4 fields
poolpubkeypositionpubkeylock_liquidity_amountu128total_permanent_locked_liquidityu128
EvtSetPoolStatus 2 fields
poolpubkeystatusu8
EvtSplitPosition2 10 fields
poolpubkeyfirst_ownerpubkeysecond_ownerpubkeyfirst_positionpubkeysecond_positionpubkeycurrent_sqrt_priceu128amount_splitsSplitAmountInfofirst_position_infoSplitPositionInfosecond_position_infoSplitPositionInfosplit_position_parametersSplitPositionParameters2
EvtSplitPosition3 10 fields
poolpubkeyfirst_ownerpubkeysecond_ownerpubkeyfirst_positionpubkeysecond_positionpubkeycurrent_sqrt_priceu128amount_splitsSplitAmountInfo2first_position_infoSplitPositionInfo2second_position_infoSplitPositionInfo2split_position_parametersSplitPositionParameters3
EvtSwap2 12 fields
poolpubkeytrade_directionu8collect_fee_modeu8has_referralboolparamsSwapParameters2swap_resultSwapResult2included_transfer_fee_amount_inu64included_transfer_fee_amount_outu64excluded_transfer_fee_amount_outu64current_timestampu64reserve_a_amountu64reserve_b_amountu64
EvtUpdatePoolFees 3 fields
poolpubkeyoperatorpubkeyparamsUpdatePoolFeesParameters
EvtUpdateRewardDuration 4 fields
poolpubkeyreward_indexu8old_reward_durationu64new_reward_durationu64
EvtUpdateRewardFunder 4 fields
poolpubkeyreward_indexu8old_funderpubkeynew_funderpubkey
EvtWithdrawIneligibleReward 3 fields
poolpubkeyreward_mintpubkeyamountu64
Filter vocabulary
Runtime account roles (52)
Use these exact describeProgram role names when building Parsed Streams account-role filters.
configcreatorevent_authorityfirst_ownerfirst_positionfirst_position_nft_accountfunderfunder_token_accountinput_token_accountoperatoroutput_token_accountownerpayerpayer_token_apayer_token_bpod_aligned_fee_market_cap_schedulerpod_aligned_fee_rate_limiterpod_aligned_fee_time_schedulerpoolpool_authoritypool_creator_authoritypositionposition_nft_accountposition_nft_mintprogramreceiver_tokenreferral_token_accountrent_receiverreward_mintreward_vaultsecond_ownersecond_positionsecond_position_nft_accountsignersystem_programsysvar_instructionstoken_2022_programtoken_a_accounttoken_a_minttoken_a_programtoken_a_vaulttoken_b_accounttoken_b_minttoken_b_programtoken_b_vaulttoken_badgetoken_minttoken_programtoken_vaultuser_token_accountvestingwhitelisted_address


Parsed Streams documentation
View allGet started
Parsed Streams is available on all paid plans


