Skip to content
Launch App >

The zklsol program is an Anchor program deployed on Solana mainnet and devnet.

FieldValue
Program IDFGKoWNsvTTDCGW9JyR2DJWNzSXpejWk7yXcKsFFj9GQp
Namezklsol
Version0.1.0
FrameworkAnchor

The full IDL is available at:

import { Program, AnchorProvider } from '@coral-xyz/anchor';
import { Connection, PublicKey } from '@solana/web3.js';
// Import the IDL
import idl from './zklsol-idl.json';
const PROGRAM_ID = new PublicKey('FGKoWNsvTTDCGW9JyR2DJWNzSXpejWk7yXcKsFFj9GQp');
// Create provider
const connection = new Connection('https://api.mainnet-beta.solana.com');
const provider = new AnchorProvider(connection, wallet, {});
// Create program instance
const program = new Program(idl as any, provider);

The program provides instructions in these categories:

InstructionPurpose
depositDeposit tokens with commitment
withdrawWithdraw tokens with ZK proof
revertRecover failed deposits
InstructionPurpose
withdraw_swapWithdraw with Jupiter swap
withdraw_swap_prePrepare swap buffer
withdraw_swap_rawExecute raw swap
withdraw_swap_postFinalize swap
InstructionPurpose
create_merkleCreate Merkle tree for token
create_merkle_nodeInitialize tree nodes
create_merkle_token_accountCreate pool token account
update_merkle_feesUpdate fee configuration
create_settingsInitialize program settings
InstructionPurpose
create_address_lookup_tableCreate user LUT
extend_address_lookup_tableAdd addresses to LUT
deactivate_address_lookup_tableDeactivate LUT
close_address_lookup_tableClose and reclaim rent
InstructionPurpose
create_affiliateRegister affiliate
create_affiliate_token_accountCreate affiliate token account
withdraw_affiliateWithdraw affiliate earnings
InstructionPurpose
create_fee_collectorCreate fee collector
create_fee_collector_token_accountCreate fee token account
withdraw_fee_collectorWithdraw collected fees
AccountDescription
SettingsGlobal program settings
MerkleStateMerkle tree state
MerkleZerosZero values for tree
MerkleNodeIndividual tree node
NullifierHashSpent nullifier record
AffiliateAffiliate information
FeeCollectorFee collector state
UserAddressLookupTableUser’s LUT reference