Testnet faucet (try x402 free)

$0.001 per call · USDC via x402 · POST /api/testnet-fund

Fund any address with testnet money via the Coinbase faucet - USDC (1) or ETH (0.0001) on Base Sepolia, USDC (1) or SOL on Solana devnet - everything an agent needs to rehearse the complete x402 payment loop safely before moving real money. Send POST /api/testnet-fund with the required field address and pay $0.001 per call over x402 or MPP (there is no free tier). It returns a JSON object with funded, network, token, transactionHash and explorer.

A tenth of a cent buys a full testnet dollar. Limits: 2 drips per address per day; CDP enforces its own rolling caps on top.

Category: Wallet operations · Tags: cdp coinbase wallet onboarding x402 agent-wallet faucet testnet

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
addressstringyesAddress to fund - EVM 0x… or Solana base58, matching the network Also accepted as addr, wallet, account.
networkstringnobase-sepolia (default) | solana-devnet
tokenstringnousdc (default, 1 USDC) | eth (0.0001, base-sepolia) | sol (solana-devnet)

Example request

curl -i -X POST https://agent402.tools/api/testnet-fund \
  -H "Content-Type: application/json" \
  -d '{"address":"0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0","token":"usdc"}'

Without payment this returns HTTP 402 Payment Required with the exact price for testnet-fund; any x402 v2 or MPP client pays it and retries.

Example response

{
  "funded": true,
  "network": "base-sepolia",
  "token": "usdc",
  "transactionHash": "0xabc123…",
  "explorer": "https://sepolia.basescan.org/tx/0xabc123…"
}
FieldTypeAlways presentIn the example
fundedbooleanyestrue
networkstringyesbase-sepolia
tokenstringyesusdc
transactionHashstringyes0xabc123…
explorerstringyeshttps://sepolia.basescan.org/tx/0xabc123…

From an MCP client

catalog.call {
  "slug": "testnet-fund",
  "params": {
    "address": "0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0",
    "token": "usdc"
  }
}

The hosted connector at https://agent402.tools/mcp needs a payment for testnet-fund; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/testnet-fund", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "address": "0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0",
    "token": "usdc"
  }),
});

Related tools

Onchain SQL (query Base with SQL)

$0.020 · POST /api/onchain-sql

Run read-only SQL against Coinbase's indexed, DECODED blockchain data - base.events (decoded logs with parameters), base…

Onchain SQL schema

$0.002 · GET /api/onchain-sql-schema

The table + column schema for the onchain-sql tool - every queryable table (base.events, base.transactions, base.blocks,…

Onramp link (fund a wallet with a card)

$0.001 · POST /api/onramp-link

Generate a single-use Coinbase Onramp URL that lets a human fund any wallet with a card or Apple Pay - the fastest way t…

Wallet token balances (indexed)

$0.002 · GET /api/wallet-balances

All token balances for any address in one call, from Coinbase's indexed data API - ERC-20 + native on EVM, SPL on Solana…

My usage (wallet-keyed purchase history)

$0.005 · POST /api/my-usage

Your own purchase history, keyed to the wallet that pays for the call - no wallet parameter, no signup: the x402 payment…

x402 seller dossier

$0.05 · POST /api/seller-dossier

Everything Agent402 knows about one x402 seller origin, in one read: identity and crawl history, the catalog with the pr…