Recipes
Quick, self-contained solutions for specific tasks. Each recipe assumes you have an active agent with an SDK key. For initial setup, see Your First Agent Payment.Setup
Create an Agent via API
conto_org_...) for this call.
Generate an SDK Key via API
Provision a Sponge Wallet
Sponge custody uses the@paysponge/sdk under the hood. Set SPONGE_API_KEY (and SPONGE_MASTER_KEY for fleet management) in your environment.
Link a Wallet to an Agent
Check Agent Setup
Verify the agent is correctly configured with wallets and policies:Payments
Request and Execute a Payment
Two calls: request (policy check) → execute (on-chain transfer).Check Transaction Status
PENDING, CONFIRMING, CONFIRMED, FAILED, or REJECTED.
List Recent Transactions
Pre-Authorize an x402 Payment
"authorized": true with wallet details, or "authorized": false with violation reasons.
Record an x402 Transaction
After the x402 payment executes on-chain:Check x402 Budget
Policies
Limit Agent to $50/Day
Require Approval Above $100
Block Payments Outside Business Hours
Allowlist Specific Recipients
Cap x402 API Spending
Restrict to Allowed x402 Services
Monitoring
Get Agent Spending Summary
Get Wallet Balance
List Active Alerts
TypeScript SDK Equivalents
The recipes above use curl. Here are the same operations in TypeScript:Related
First Payment
Full setup walkthrough
Test Payments
Validate policy enforcement
Secure Agents
Production policy configuration