Pay with a wallet
Use an installed EVM wallet, or open Coinbase Wallet through a desktop QR code or mobile handoff.
API Acre verifies the exact x402 price, Base network, recipient, and request before any wallet opens. One successful call costs $0.004 USDC.
API Acre never receives your private key; signing stays inside your wallet.
Connecting opens Coinbase Wallet. It does not sign or pay.
Both routes use this exact verified request and one-call price. Nothing is connected, signed, installed, or paid until you continue.
Use an installed EVM wallet, or open Coinbase Wallet through a desktop QR code or mobile handoff.
Copy a command locked to this endpoint, request, and exact USDC cap. Copying is inert; running it may install the official CLI and pay after its authentication and policy checks.
No ETH gas needed. Connecting does not sign or pay. This EIP-3009 payment needs only the displayed USDC on Base because the facilitator submits settlement. Reject any later prompt that differs from the verified amount or recipient.
Running this command may automatically spend up to $0.004 USDC. npx --yes approves package installation. Use a separate low-value wallet and review the verified request first.
npx --yes awal@latest x402 pay https://apiacre.com/v1/crypto/base-gas-estimate \
-X POST \
-d '{"from_address":"0x1111111111111111111111111111111111111111","to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","value_wei":"0","call_data":"0x70a082310000000000000000000000001111111111111111111111111111111111111111","block_tag":"safe","buffer_percent":20}' \
--max-amount 4000 \
--jsonThe first command checks without paying; running fetch may pay up to the same exact cap.
npx --yes agentcash@latest check https://apiacre.com/v1/crypto/base-gas-estimate
npx --yes agentcash@latest fetch https://apiacre.com/v1/crypto/base-gas-estimate \
--method POST \
--header 'content-type: application/json' \
--body '{"from_address":"0x1111111111111111111111111111111111111111","to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","value_wei":"0","call_data":"0x70a082310000000000000000000000001111111111111111111111111111111111111111","block_tag":"safe","buffer_percent":20}' \
--payment-protocol x402 \
--payment-network base \
--max-amount 0.004Base transaction gas estimate returns structured JSON. This example is static; the paid call returns a fresh result and settlement receipt.
{
"request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
"service": "crypto.base-gas-estimate",
"version": "1",
"data": {
"network": "eip155:8453",
"status": "estimated",
"estimationAccepted": true,
"transaction": {
"from": "0x1111111111111111111111111111111111111111",
"to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"valueWei": "0",
"dataBytes": 36,
"dataSha256": "2da90680426443e99a57371fef89ebdb0cba7f941eda4e27491a3bd2069ef775",
"selector": "0x70a08231"
},
"block": {
"requestedTag": "safe",
"number": 34567890,
"hash": "0x1111111111111111111111111111111111111111111111111111111111111111",
"timestamp": "2026-08-10T16:00:00+00:00",
"gasLimit": 120000000,
"baseFeePerGasWei": "500000"
},
"estimate": {
"gas": 24640,
"gasHex": "0x6040",
"bufferPercent": 20,
"suggestedGasLimit": 29568,
"suggestedGasLimitHex": "0x7380",
"bufferCapped": false,
"baseFeeComponentWei": "12320000000",
"suggestedBaseFeeComponentWei": "14784000000"
},
"rpcError": null,
"networkRequestsMade": 2,
"rpcCallsMade": 2,
"readOnly": true,
"transactionBroadcast": false,
"warnings": [],
"limitations": [
"The estimate is state-dependent and does not guarantee later execution.",
"Base-fee components exclude priority fees, L1 data fees, and other fee components.",
"Only one existing destination is estimated; contract deployment is not supported."
],
"source": "https://docs.base.org/base-chain/api-reference/ethereum-json-rpc-api/eth_estimateGas",
"disclaimer": "Read-only Base mainnet gas estimation only. No transaction is created, signed, submitted, or broadcast."
},
"meta": {
"duration_ms": 42,
"cached": false,
"sources": [],
"warnings": [],
"next_actions": []
}
}Connected wallet:
Signing authorizes only the verified amount and recipient for this request. Reject the wallet prompt if anything differs.
The default request is verified automatically. Editing it invalidates the quote and requires this no-payment verification again.
Prefer your own client? Use the official x402 SDK examples. Browser checkout requires an EVM wallet with USDC on Base; command-line buyers require their own separately configured wallet and spending policy.