Examples¶
Complete, runnable programs for real-world use cases. Each language page contains the same eleven scenarios implemented idiomatically, covering 100% of the SDK primitives.
By Language¶
Scenarios¶
Each page covers:
- Balance Monitor Bot -- Recover a wallet, poll balance, send tokens when a threshold is met.
- Multi-Account Treasury -- Derive HD accounts, query balances, consolidate funds.
- Signature Verification Service -- Validate keys, addresses, and signatures from external input.
- Wallet Backup and Recovery -- Create an encrypted wallet file, save to disk, recover later.
- Gas-Sponsored Transaction -- Submit a meta-transaction with gas paid by a sponsor contract.
- Cross-Chain Message -- Send a message to another chain via the messaging connector.
- Contract Deployment -- Read a WASM file, sign a deploy payload, and deploy a contract to the chain.
- Shielded Pool Deposit & Withdraw -- Compute ZK commitments, deposit into the shielded pool, derive nullifiers, and withdraw privately.
- ZK Proof Generation & Verification -- Poseidon hashing, preimage proofs, range proofs, and round-trip verification without chain interaction.
- Name Service & Identity Profile -- Register a .dili name, configure profile records, resolve/reverse-resolve, transfer and renew names.
- Credential Issuance & Verification -- Register a KYC schema, issue credentials, verify selective disclosure proofs, revoke credentials.