Skip to main content
This page summarizes the zap account model from the local Anchor source and bundled IDL. For exact layouts, use the published IDL and generated TypeScript types exported by @meteora-ag/zap-sdk.

Address Map

PDA Seeds

Program Constants

Whitelisted Zap-Out Payloads

zap_out validates the first 8 bytes of payload_data against this whitelist before invoking the downstream program. The amount offset points to the little-endian u64 input amount that Zap overwrites at runtime with the post-action balance delta.

UserLedger

UserLedger is a zero-copy account. The SDK initializes it before zap-in and closes it during cleanup.

ZapOutParameters

DLMM StrategyType

The TypeScript SDK maps @meteora-ag/dlmm StrategyType values into the Zap IDL enum before building DLMM zap-in instructions.

RemainingAccountsInfo

DLMM zap-in and zap-out flows are remaining-account-heavy. Use SDK helpers such as getDlmmRemainingAccounts and getBinArraysRequiredByPositionRange rather than hand-ordering account metas unless you are writing a low-level client.

Account Notes

Account Handling Notes