copy, paste, run
Examples
Two files. The first moves no money and needs no wallet; the second settles on Base Sepolia with dry-run on by default.
dry-run.ts
Builds a ledger, charges two tabs, and prints the plan. No wallet, no RPC, no environment. This is the first thing to run — it proves the arithmetic before any key is involved.
Your browser and some crawlers will treat .ts as a video stream — that
is GitHub Pages' MIME mapping, not a bug in the file. Open it from the repository if
your browser downloads it.
settle.ts
Wires a viem wallet to the executor, reads AGENT_WALLET_KEY from the
environment, and settles against Base Sepolia. It ships with
dryRun: true; flip it only after watching a dry run produce the plan you
expect.
Read the source → · Testnet USDC · Testnet ETH
Never commit a key. The example reads from the environment for exactly that reason, and the repository's scanner blocks anything that looks like one.
All examples
The complete list, with signatures and error semantics, is in
sdk.json. Runnable versions live in
the repository.