@meteora-ag/zap-sdk.
Before you begin, here are the main resources:
TypeScript SDK
Zap TypeScript SDK repository.
Zap NPM Package
Published package for transaction builders, state reads, PDA helpers, and examples.
Install
To use the SDK in your project, install it with your preferred package manager:- npm
- pnpm
- yarn
Dependencies
Create A Client
jupiterApiUrl and jupiterApiKey are optional in the SDK constructor. Pass them whenever your Jupiter endpoint requires authenticated quote or swap-instruction requests. You can get the API key from Jupiter Developer Portal.
Program ID
The SDK also exports
ZAP_PROGRAM_ID, DAMM_V2_PROGRAM_ID, DLMM_PROGRAM_ID, JUP_V6_PROGRAM_ID, and MEMO_PROGRAM_ID.
Transaction Model
Zap builders return unsignedTransaction objects. The caller is responsible for fee payer, blockhash, signing, simulation, and submission.
For zap-in flows, preserve this order. The ledger stores intermediate token amounts that the following Zap instruction consumes.

