x402 is the payment layer BaseZap uses to expose paid agent capabilities over HTTP. Agents can pay for a successful API response with USDC on Base instead of relying on subscriptions or application accounts.
BaseZap currently exposes paid endpoints for Farcaster identity resolution and unsigned USDC tip calldata.
Resolve a Farcaster username or FID to a verified wallet address on Base.
GET /api/agent/resolve-username?username=afifarioss
Price: $0.001 USDC per successful request.
Build unsigned USDC transfer calldata for a BaseZap tip. The response contains the creator transfer and the BaseZap platform fee transfer.
POST /api/agent/build-tip-calldata
{
"recipient": "0x...",
"amount_usdc": 1
}Price: $0.001 USDC per successful request.
An agent sends its request normally. The x402 flow handles payment authorization and settlement when the endpoint returns successfully.
const response = await fetch( "https://basefarcaster.vercel.app/api/agent/resolve-username?username=afifarioss" ); const result = await response.json();
Failed lookups return an error response and are not settled as successful x402 requests.
The x402 API fee and the tip amount are separate. The $0.001 x402 charge pays for access to the paid agent endpoint. A tip generated through BaseZap follows BaseZap's tipping fee model.
The current agent calldata endpoint generates the standard 2% platform-fee split. The $ZAP holder benefit is supported by BaseZap's fee calculation for qualifying holders.
Use BaseZap's agent endpoints to discover Farcaster users and construct Base-native payment flows.
Explore Agent APIs →