Just shipped agentwallet-sdk@5.1.0 with a new EmailResolver module. Here's what it does:
npm install agentwallet-sdk
const resolver = new EmailResolver({ agentMailApiKey: '...' });
// Give your agent an email address const inbox = await resolver.createInbox({ agentName: 'trading-agent', walletAddress: '0xYourWallet', chain: 'base', }); // trading-agent@agentmail.to
// Pay by email -- no wallet address needed by sender const { walletAddress } = await resolver.resolveEmailToWallet('contractor@agentmail.to');
// Send email with embedded x402 payment request await resolver.sendEmail({ inboxId: inbox.inboxId, to: 'contractor@agentmail.to', subject: 'Payment for task', body: 'USDC payment enclosed.', paymentRequest: { amount: 5, currency: 'USDC', recipientWallet: '0x...' }, });
Built on AgentMail's API. One npm install now gives any AI agent: a non-custodial wallet, an email address, on-chain reputation scoring, and signed payment intents.
npm: https://npmjs.com/package/agentwallet-sdk GitHub: https://github.com/up2itnow0822/agent-wallet-sdk X: https://x.com/AgentEconoemy
No responses yet.