Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.meteora.ag/llms.txt

Use this file to discover all available pages before exploring further.

The alpha-vault program emits Anchor events through event CPI. Indexers should decode the event payloads from the alpha_vault program logs and join them with Vault and Escrow account reads when current aggregate state is needed.

Vault Events

EventFieldsEmitted byUse
ProrataVaultCreatedbase_mint, quote_mint, start_vesting_point, end_vesting_point, max_buying_cap, pool, pool_type, escrow_fee, activation_typeinitialize_prorata_vault, initialize_vault_with_prorata_configIndex new Pro Rata vaults and their initial cap/timing settings.
FcfsVaultCreatedbase_mint, quote_mint, start_vesting_point, end_vesting_point, max_depositing_cap, pool, pool_type, depositing_point, individual_depositing_cap, escrow_fee, activation_typeinitialize_fcfs_vault, initialize_vault_with_fcfs_configIndex new FCFS vaults and their initial cap/timing settings.
ProrataVaultParametersUpdatedvault, max_buying_cap, start_vesting_point, end_vesting_pointupdate_prorata_vault_parametersTrack admin updates to Pro Rata cap and vesting points.
FcfsVaultParametersUpdatedvault, max_depositing_cap, start_vesting_point, end_vesting_point, depositing_point, individual_depositing_capupdate_fcfs_vault_parametersTrack admin updates to FCFS caps and timing.

Escrow Events

EventFieldsEmitted byUse
EscrowCreatedvault, escrow, owner, vault_total_escrow, escrow_feecreate_new_escrow, create_permissioned_escrow, create_permissioned_escrow_with_authorityTrack new user escrows and aggregate escrow count.
EscrowDepositvault, escrow, owner, amount, vault_total_depositdepositTrack accepted quote deposits. amount is the transfer-fee excluded amount credited by the program.
EscrowWithdrawvault, escrow, owner, amount, vault_total_depositwithdrawTrack Pro Rata deposit withdrawals or deposit-overflow withdrawals.
EscrowRemainingWithdrawvault, escrow, owner, amount, vault_remaining_depositwithdraw_remaining_quoteTrack post-buy unused quote refunds.
EscrowClaimTokenvault, escrow, owner, amount, vault_total_claimed_tokenclaim_tokenTrack vested base token claims. amount is the transfer-fee excluded amount sent to the user.
EscrowClosedvault, escrow, owner, vault_total_escrowclose_escrowTrack closed escrows and aggregate escrow count after close.

Fill Events

EventFieldsEmitted byUse
SwapFillvault, pair, fill_amount, purchased_amount, unfilled_amountfill_dlmm, fill_dynamic_amm, fill_damm_v2Track vault purchases from the connected pool. pair is the connected pool, fill_amount is quote consumed, and purchased_amount is base received.

Merkle And Metadata Events

EventFieldsEmitted byUse
MerkleRootConfigCreatedadmin, config, vault, version, rootcreate_merkle_root_configTrack root versions for Merkle-proof vaults.
MerkleProofMetadataCreatedvault, proof_urlcreate_merkle_proof_metadataTrack the proof URL clients should use for wallet cap proofs.

Crank Fee Events

EventFieldsEmitted byUse
CrankFeeWhitelistCreatedcrankercreate_crank_fee_whitelistTrack crankers exempt from the crank fee.
CrankFeeWhitelistClosedcrankerclose_crank_fee_whitelistTrack removed crank fee exemptions.

Indexing Notes

TopicNote
Event CPI accountsGenerated Anchor clients add event_authority and program accounts for event-emitting instructions.
Amount precisionAmounts are raw token units. Apply mint decimals off-chain for display.
Transfer feesDeposit, withdrawal, and claim events report the credited or received amount after Token 2022 transfer-fee handling.
Current stateEvents are append-only. Read Vault and Escrow accounts for current counters, refund flags, claim totals, and close eligibility.