← Curriculum
Advanced
Transactions & Treasury
Sign onchain from agents, run a treasury, and pay with x402.
By the end of this track
You’ll be able to sign on-chain transactions from an agent under hard guardrails, with humans approving what matters.
16 lessons~49 min50 questions
Start → Intents API transaction signing- 1Intents API transaction signingLet an agent sign and submit an on-chain transaction while the private key stays in the vault.4 min
- 2Lab: pass every value cap and lose everythingLabSend a transaction worth nothing, then watch it move funds you never approved again.2 min
- 3Lab: sign something you cannot readLabBuild a typed payload, watch a guardrail catch a drain, then hand the same guardrail a raw digest and watch it wave the drain through.4 min
- 4Treasury wallets and smart accountsCreate human-owned multi-chain treasury wallets and drive a Safe multisig with proposals.4 min
- 5x402 micropayments for overagesHandle an HTTP 402 from the API and retry with an on-chain payment proof.3 min
- 6The other direction: an agent pays someone else's paywallx402 micropayments covered your org paying 1Claw. This is an agent paying a paywall it does not control, under a cap it does not choose for itself.3 min
- 7Lab: pay a paywall without funding a walletLabRun the actual 1claw pay flow against a mock paywall in dev mode: challenge capture, digest binding, the paid retry, all without a chain or a cent.2 min
- 8Lab: send a trillion dollars by mistakeLabConvert amounts between human and atomic units, get the decimals wrong in both directions, and read what you actually sent.2 min
- 9Embedded wallets and wallet-reactGive users an email-login wallet and render it with the wallet-react widget.3 min
- 10Guardrail governance and graduated HITLMeasure a guardrail in shadow mode before enforcing it, and route risky transactions to a human instead of denying them outright.5 min
- 11Payment cards over x402Have an agent order a prepaid card, paid with an on-chain x402 payment, without ever seeing the card number.3 min
- 12Lab: get charged three times for one orderLabRetry a request the way every HTTP client does, then add the one header that makes the retry safe.2 min
- 13Portfolio and treasury operationsRead balances across every wallet type from one endpoint, then send, swap, and import keys safely.3 min
- 14Bankr dynamic key vendingLease short-lived partner API keys instead of storing a static one, and keep the key out of agent output entirely.3 min
- 15Safe agent accountsGive an agent a counterfactual Gnosis Safe instead of a bare EOA, and plan the migration off the EOA.3 min
- 16Lab: validate a real x402 challengeLabTrigger a genuine 402 payment-required response from 1Claw's production API and run the exact validation checklist the x402 lesson described, against real numbers.3 min