Create a new MerkleOperation instance
Synapse client for RPC calls
User wallet address
Optional
batchConfig: BatchOptionRequestOptional batch processing configuration
Optional
connection: ConnectionOptional
signer: Signer | KeypairOptional Signer/Keypair for signing transactions
Batch inscribe multiple validation results on-chain Uses client.batch() for optimal performance when inscribing multiple proofs
Array of merkle validation results
Optional
pdas: UserPDAsOptional custom PDAs
Array of inscription results
Get unsigned transaction for external signing Useful for wallet adapter integration
Target PDA
Data buffer to store in memo
Unsigned Transaction object
Create zero chunk (128 bytes: 2 merkle leaves + previous signature)
Merkle leaf data
Zero chunk buffer (128 bytes)
Get Merkle proof for a leaf
Data to generate proof for
Merkle proof
Get PDA manager
On-chain Merkle inscription - stores data + proof on Solana Uses PDA accounts to store chunked data and merkle roots
Merkle validation result to inscribe
Optional
pdas: UserPDAsOptional custom PDAs
Inscription result with signatures and PDAs
MerkleOperation - handles Merkle tree operations and on-chain storage
This class provides utilities for:
For on-chain operations, you can provide either: