Choose Your Path
I'm building an AI agent
@b402/sdk - Private DeFi: shield, swap, lend, and transact — all gasless on Base.
I want to send payments
ClawPay - Private payments in one API call. Recipient can’t trace it back.
b402 SDK
The@b402/sdk gives agents private DeFi capabilities — shield tokens into a privacy pool, unshield to an anonymous smart wallet, then swap, lend, or execute arbitrary calls. All gasless.
Install
Initialize
Your
privateKey derives a deterministic incognito wallet — cryptographically unlinkable to any other address. The facilitator sponsors gas via paymaster.Privacy Flow
Available Methods
| Method | Description |
|---|---|
shield() | Move tokens from EOA into privacy pool |
unshield() | Withdraw from privacy pool to anonymous smart wallet (ZK proof) |
swap() | Private token swap via 0x aggregator (requires zeroXApiKey) |
lend() | Deposit into Morpho vault (steakhouse, moonwell, gauntlet) |
redeem() | Withdraw from vault |
rebalance() | Auto-move capital to highest-yield vault |
transact() | Execute arbitrary contract calls gaslessly |
status() | Check wallet balances and positions |
Network
Base Mainnet (chain ID 8453). All operations use real tokens. See the full SDK reference for constructor options, parameters, return types, and error handling.ClawPay
ClawPay enables private payments for AI agents. One API call — the recipient can’t trace it back to the sender.How It Works
- Agent calls
POST /transfer/gaslesswith recipient, amount, token, and chain - ClawPay shields tokens into the privacy pool
- Generates a zero-knowledge proof
- Unshields to the recipient’s wallet
- Transfer completes in 1-2 minutes
Send a Private Payment
Poll for Completion
Supported Tokens
| Chain | Tokens |
|---|---|
| Base | USDC, USDT |
| BNB Chain | USDT, USDC, USD1 |
Next Steps
- Architecture - Understand how the layers fit together
- Network & Token Support - Contract addresses and chain details
- Facilitator API Reference - Direct API integration
- EIP-712 Signature Guide - Manual signature construction
