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.

Zap is Meteora’s helper program for composing token movement, swaps, and liquidity actions around DAMM v2, DLMM, and Jupiter routes. It is mainly used to zap into liquidity positions, zap out from token balances produced by another action, or rebalance an existing DLMM position. To learn more about Zap, including supported routes, and limits, you can read the following documentations.

What Is Zap?

Product overview for Zap, supported AMM paths, and common user flows.

Formula And Limits

Product formulas, limits, and route-level constraints.

Integration

Program Accounts

Account model, ledger PDA, supported downstream programs, constants, and IDL types.

Program Instructions

Instruction flows for ledger setup, zap out, DAMM v2 zap in, DLMM zap in, and DLMM rebalancing.

Program Errors

Anchor custom error codes, messages, common causes, and integration fixes.

TypeScript SDK

TypeScript SDK for building Zap transactions and route-specific swap helpers.

Rust Integration

Rust CPI guidance and local helper crates for advanced protocol integrations.

Program IDs

The zap program ID is the same on mainnet and devnet:
NetworkProgram ID
Mainnet BetazapvX9M3uf5pvy4wRPAbQgdQsM1xmuiFnkfHKPvwMiz
DevnetzapvX9M3uf5pvy4wRPAbQgdQsM1xmuiFnkfHKPvwMiz

Public Source

Zap Program

Anchor program source, local Rust helper crates, tests, and changelog.

Zap IDL

Anchor IDL for the deployed zap program.

Zap TypeScript SDK

TypeScript SDK source, examples, tests, IDL, and package changelog.

Commands

TaskCommand
Build programcd zap-program && anchor build
Run program testscd zap-program && pnpm install && pnpm test
Build TypeScript SDKcd zap-sdk && pnpm install && pnpm run build
Run SDK testscd zap-sdk && pnpm test
Type-check SDKcd zap-sdk && pnpm run typecheck

Stay Updated

Zap Changelog

Program and TypeScript SDK changes that affect integration planning.