Skip to content
1Claw Academy
← 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
StartIntents API transaction signing
  1. 1Intents API transaction signingLet an agent sign and submit an on-chain transaction while the private key stays in the vault.
  2. 2Lab: pass every value cap and lose everythingLabSend a transaction worth nothing, then watch it move funds you never approved again.
  3. 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. 4Treasury wallets and smart accountsCreate human-owned multi-chain treasury wallets and drive a Safe multisig with proposals.
  5. 5x402 micropayments for overagesHandle an HTTP 402 from the API and retry with an on-chain payment proof.
  6. 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.
  7. 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.
  8. 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.
  9. 9Embedded wallets and wallet-reactGive users an email-login wallet and render it with the wallet-react widget.
  10. 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.
  11. 11Payment cards over x402Have an agent order a prepaid card, paid with an on-chain x402 payment, without ever seeing the card number.
  12. 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.
  13. 13Portfolio and treasury operationsRead balances across every wallet type from one endpoint, then send, swap, and import keys safely.
  14. 14Bankr dynamic key vendingLease short-lived partner API keys instead of storing a static one, and keep the key out of agent output entirely.
  15. 15Safe agent accountsGive an agent a counterfactual Gnosis Safe instead of a bare EOA, and plan the migration off the EOA.
  16. 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.