AgentCash — Paid API Access
Call any x402 or MPP-protected API with automatic wallet authentication and payment. No API keys or subscriptions required.
Check Balance
Returns total USDC balance across supported networks. Use this before paid calls to confirm funds are available.
Redeem Invite Code
One-time use per code. Credits added instantly. Run agentcash.get_balance() after to verify.
Deposit USDC
- Call
agentcash.list_accounts()to get per-network wallet addresses and deposit links - Send USDC on Base network (eip155:8453) or Solana (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp) to the matching address
- Or open the returned deposit link for the selected network
Important: Only Base or Solana network USDC. Other networks or tokens will be lost.
Calling Paid APIs
1. Pick an origin — or search
Check the Available Services table below first. If any origin clearly covers the task, skip search entirely and jump to step 2 (discover). Examples:
Only use search when none of the listed origins fit:
Returns matching origins with endpoints and pricing (the top match often includes schema so you can call fetch immediately).
2. Discover endpoints
Returns all endpoints, pricing, and usage instructions. Read the instructions field — it has critical endpoint-specific guidance.
3. Check schema (optional)
Returns full request/response JSON schemas and pricing for a specific endpoint.
4. Make a paid request
Payment is automatic: sends request, gets 402 challenge, signs USDC payment, retries with credential, returns result. Payments settle only on success (2xx) — failed requests cost nothing.
agentcash.fetch also handles SIWX-authenticated endpoints automatically when the route supports that flow.
Available Services
Run agentcash.discover_api_endpoints(url="<origin>") on any origin to see its full endpoint catalog.
Quick Reference
Tips
- Skip search when a listed origin fits the task. Go straight to
discover_api_endpoints. Only usesearchwhen no origin in the Available Services table matches. - Always discover before calling arbitrary paths — the
instructionsfield has critical endpoint-specific patterns and required parameters. - Payments settle only on success (2xx) — failed requests cost nothing.
- Use
check_endpoint_schemawhen unsure about request/response format. - Independent
agentcash.fetchcalls can run in parallel for better throughput. - Network: Base (eip155:8453) or Solana (solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp), Currency: USDC.


