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
Thezap program ID is the same on mainnet and devnet:
| Network | Program ID |
|---|---|
| Mainnet Beta | zapvX9M3uf5pvy4wRPAbQgdQsM1xmuiFnkfHKPvwMiz |
| Devnet | zapvX9M3uf5pvy4wRPAbQgdQsM1xmuiFnkfHKPvwMiz |
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
| Task | Command |
|---|---|
| Build program | cd zap-program && anchor build |
| Run program tests | cd zap-program && pnpm install && pnpm test |
| Build TypeScript SDK | cd zap-sdk && pnpm install && pnpm run build |
| Run SDK tests | cd zap-sdk && pnpm test |
| Type-check SDK | cd zap-sdk && pnpm run typecheck |
Stay Updated
Zap Changelog
Program and TypeScript SDK changes that affect integration planning.

