Back

Documentation

v1.0.0
Base Mainnet

AgentPayments API

Enable your AI agents to generate wallets, check balances, and execute token swaps autonomously on Base. Built for the agentic economy.

Wallet Generation

Create new wallets with private keys instantly

Token Swaps

Execute swaps via Uniswap on Base

Balance Tracking

Check ETH and token balances

Quick Start

Generate a wallet and execute your first swap in seconds:

// Generate a new wallet
const response = await fetch('/api/wallet/generate', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' }
});

const { data } = await response.json();
console.log(data.address);    // 0x...
console.log(data.privateKey); // 0x...