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.001 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.
The wallet did not connect, so nothing was signed or paid. Copy this same request and exact USDC cap for Coinbase Agentic Wallet; copying does not install or run it.
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.001 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/data/current-weather \
-X POST \
-d '{"city":"Washington, DC, US"}' \
--max-amount 1000 \
--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/data/current-weather
npx --yes agentcash@latest fetch https://apiacre.com/v1/data/current-weather \
--method POST \
--header 'content-type: application/json' \
--body '{"city":"Washington, DC, US"}' \
--payment-protocol x402 \
--payment-network base \
--max-amount 0.001Current weather snapshot 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": "data.current-weather",
"version": "1",
"data": {
"location": {
"latitude": 38.8951,
"longitude": -77.0364,
"city": "Washington",
"state": "DC",
"timezone": "America/New_York",
"grid": null,
"resolvedPlace": {
"query": "Washington, DC, US",
"geonameId": 4140963,
"name": "Washington",
"countryCode": "US",
"admin1Code": "DC",
"candidateCount": 1,
"ambiguous": false,
"attribution": "GeoNames (CC BY 4.0; https://www.geonames.org/).",
"licenseUrl": "https://creativecommons.org/licenses/by/4.0/"
}
},
"current": {
"dataKind": "observation",
"effectiveAt": "2026-08-20T09:52:00+00:00",
"condition": "Mostly Cloudy",
"conditionCode": null,
"temperatureC": 24.4,
"dewpointC": 21.1,
"relativeHumidityPercent": 81,
"windSpeedMps": 2.58,
"windGustMps": null,
"windFromDirectionDegrees": 250,
"visibilityM": 16090,
"airPressureHpa": null,
"cloudAreaFractionPercent": null,
"precipitationAmountMm": null,
"precipitationPeriodHours": null
},
"source": {
"provider": "NOAA/National Weather Service",
"dataset": "NWS nearest-station latest observation",
"dataKind": "observation",
"stationId": "KDCA",
"stationName": "Washington/Reagan National Airport, DC",
"sourceUrl": "https://api.weather.gov/stations/KDCA/observations/latest",
"pointsUrl": "https://api.weather.gov/points/38.8951,-77.0364",
"documentationUrl": "https://www.weather.gov/documentation/services-web-api",
"termsUrl": "https://www.weather.gov/disclaimer",
"licenseUrl": null,
"modelRunUpdatedAt": null,
"fallbackReason": null,
"upstreamAccess": "free open data",
"attribution": "Weather observation: NOAA/National Weather Service. Place coordinates resolved from GeoNames under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); source: https://www.geonames.org/.",
"transformation": "API Acre selected the nearest station returned by NWS, validated the observation timestamp, and normalized supported measurements to SI units; no model values were substituted."
},
"retrievedAt": "2026-08-20T10:00:00+00:00",
"cacheTtlSeconds": 900,
"limitations": [
"Place-name resolution uses the bundled GeoNames cities500 index, ranked by exact-name quality and population; inspect resolvedPlace and qualify ambiguous names. NWS station observations are available only within supported U.S. coverage.",
"The nearest reporting station may be some distance from the requested point, and observations can be delayed or incomplete.",
"Null fields mean the station omitted a supported measurement; API Acre does not estimate missing observation values.",
"This snapshot excludes forecasts and alerts and must not be used alone for life-safety, aviation, marine, or emergency decisions."
]
},
"meta": {
"duration_ms": 42,
"cached": false,
"sources": [],
"warnings": [],
"next_actions": [
{
"service": "data.us-weather-forecast",
"title": "Global weather forecast",
"reason": "Extend the point-in-time snapshot with a separately authorized global hourly forecast.",
"method": "POST",
"path": "/v1/data/us-weather-forecast",
"price": "$0.003",
"input_template": {
"latitude": "$result.data.location.latitude",
"longitude": "$result.data.location.longitude",
"forecast_type": "hourly",
"units": "si",
"periods": 6,
"include_current_conditions": false,
"include_active_alerts": false
},
"use_output": "Treat this as a separate paid request. Use the snapshot's source and effectiveAt for current conditions and the forecast periods for outlooks.",
"handoff_path": "/catalog/data.us-weather-forecast",
"checkout_path": "/try/data.us-weather-forecast",
"sample_path": "/samples/data.us-weather-forecast",
"maximum_atomic_usdc": "3000",
"handoff_payment_required": false,
"executes_automatically": false,
"authorization_required": true
}
]
}
}Checking the connected wallet's Base USDC balance without signing or paying.
Signing authorizes only the verified amount and recipient for this request. Reject the wallet prompt if anything differs. The displayed balance is read locally through your wallet provider and is never sent to API Acre.
The x402 Register independently checks API Acre's unpaid challenge, price, protocol version, and availability. It does not purchase or validate paid results.
Open the current report ↗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.