Install
openclaw skills install agentwallet-sdkManage on-chain spend limits for AI agents with ERC-6551 wallets, enforcing per-tx and daily token budgets, scoped operator access, and approval queues on Base.
openclaw skills install agentwallet-sdkNon-custodial wallet SDK for autonomous AI agents. Handles x402 payments, CCTP V2 cross-chain bridge transfers, ERC-8004 agent identity, and Uniswap V3 token swaps — all without holding user keys.
Use this skill when an AI agent needs to:
npm install agentwallet-sdk
Current version: v2.4.1 on npm (158 tests passing, 0 compile errors)
import { AgentWallet } from 'agentwallet-sdk';
const wallet = await AgentWallet.create({
chain: 'base',
signer: privateKey, // Agent's own key — never custodied
});
// Send ETH
await wallet.transfer({ to: recipient, value: '0.01' });
// Get balance
const balance = await wallet.getBalance();
// Pay for API access automatically
const response = await wallet.x402Pay({
url: 'https://api.example.com/data',
maxPayment: '0.001', // ETH
});
// Bridge USDC from Base to Ethereum
await wallet.bridge({
token: 'USDC',
amount: '100',
fromChain: 'base',
toChain: 'ethereum',
});
// Swap ETH for USDC
await wallet.swap({
tokenIn: 'ETH',
tokenOut: 'USDC',
amount: '0.5',
slippage: 0.5, // 0.5%
});
// Register agent identity on-chain
await wallet.registerIdentity({
name: 'MyTradingAgent',
capabilities: ['x402-payment', 'swap', 'bridge'],
});
// Verify another agent
const verified = await wallet.verifyAgent(agentAddress);
npm install @agent-wallet/mastra-plugin
Provides 10 Mastra tools: getBalance, transfer, swap, bridge, x402Pay, registerIdentity, verifyAgent, getTransactionHistory, estimateGas, getChainInfo.
npm install clawpay-mcp
Exposes wallet operations as MCP tools for any MCP-compatible agent.