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.003 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.003 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-event-logs \
-X POST \
-d '{"contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",null,"0x0000000000000000000000001111111111111111111111111111111111111111"],"lookback_blocks":2000,"limit":25,"block_tag":"safe"}' \
--max-amount 3000 \
--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-event-logs
npx --yes agentcash@latest fetch https://apiacre.com/v1/crypto/base-event-logs \
--method POST \
--header 'content-type: application/json' \
--body '{"contract":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",null,"0x0000000000000000000000001111111111111111111111111111111111111111"],"lookback_blocks":2000,"limit":25,"block_tag":"safe"}' \
--payment-protocol x402 \
--payment-network base \
--max-amount 0.003Base contract event logs 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-event-logs",
"version": "1",
"data": {
"network": "eip155:8453",
"filter": {
"contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
null,
"0x0000000000000000000000001111111111111111111111111111111111111111"
]
},
"blockRange": {
"requestedTag": "safe",
"fromBlock": 34565891,
"toBlock": 34567890,
"toBlockHash": "0x1111111111111111111111111111111111111111111111111111111111111111",
"toBlockTimestamp": "2026-08-10T16:00:00+00:00",
"requestedLookbackBlocks": 2000,
"scannedBlocks": 2000
},
"queriedLogCount": 1,
"detected": 1,
"returned": 1,
"truncated": false,
"duplicatesRemoved": 0,
"removedSkipped": 0,
"logs": [
{
"contract": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"topics": [
"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
"0x0000000000000000000000002222222222222222222222222222222222222222",
"0x0000000000000000000000001111111111111111111111111111111111111111"
],
"data": {
"hex": "0x0000000000000000000000000000000000000000000000000000000000bebc20",
"bytes": 32,
"returnedBytes": 32,
"truncated": false,
"sha256": "1075ad1aeb25e2412faa67043b490dd6375967f6502d383f5a8a85b4e56e92d0"
},
"blockNumber": 34567800,
"blockHash": "0x2222222222222222222222222222222222222222222222222222222222222222",
"transactionHash": "0x3333333333333333333333333333333333333333333333333333333333333333",
"transactionIndex": 4,
"logIndex": 7,
"explorerUrl": "https://basescan.org/tx/0x3333333333333333333333333333333333333333333333333333333333333333"
}
],
"networkRequestsMade": 2,
"rpcCallsMade": 2,
"readOnly": true,
"transactionBroadcast": false,
"warnings": [],
"limitations": [
"Requires topic zero plus at least one indexed topic value.",
"Covers only the resolved block range, not full contract history.",
"Payload is ABI-encoded; finality and freshness depend on the tag and RPC provider."
],
"contractExplorerUrl": "https://basescan.org/address/0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"source": "https://docs.base.org/base-chain/api-reference/ethereum-json-rpc-api/eth_getLogs",
"disclaimer": "Public logs do not prove identity, ownership, authorization, or state."
},
"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.