sdk/examples for the current SDK runtime.
Run commands from the sdk/ repo root.
Default program constant exported by SDK:
zh1eLd6rSphLejbFfJEneUwzHRfMKxgzrgkfwA6qRkW
Base environment
1) Send (private one-shot payment)
Script:sdk/examples/fast-send.ts
- funds a temporary sender wallet
- deposits SOL into shielded state
- withdraws full amount privately to recipient
2) Swap (shielded SOL -> token)
Script:sdk/examples/swap.ts
SLIPPAGE_BPS(default1500)
3) Payroll (multi-recipient private payouts)
Script:sdk/examples/payroll.ts
CLOAK_PAYROLL_BUFFER_SOL(default0.20)
4) History (scanner/compliance pass)
Script:sdk/examples/history-scan.ts
Kit-based app example
If your app is built around@solana/kit, use:
sdk/examples/quickstart-kit.ts