Quickstart: agents

1. Pick how the agent pays

Key livesUse it for
Local MCP serveron your machineClaude Code, Claude Desktop, Cursor
SDKin your processyour own agent code
Server walletwith us, encryptedhosted agents, remote MCP, /v1/fetch

2. Fund it with USDC

Send USDC on Solana to the agent's address. It needs no SOL: the facilitator pays the transaction fee.

3. Set budgets

maxPerCall, dailyCap (resets 00:00 UTC), perOriginDailyCap, and optionally allowOrigins. See Budgets.

4. Call something

With the local MCP server, ask the agent to search_catalog, then call_paid_endpoint with a maxPriceUsd.

With a server wallet:

curl -X POST https://api.tolls.fun/v1/fetch \
  -H "content-type: application/json" -H "Authorization: Bearer <API_KEY>" \
  -d '{"url": "https://gw.tolls.fun/v1/data/tx/explain?signature=<SIGNATURE>", "maxPrice": "0.01"}'

The response has status, body and a receipt with the transaction signature.