$0.004
per call · USD Coin on Base
Estimate gas for one Base mainnet transaction context at a resolved block, add a bounded caller-selected buffer, and preserve RPC rejection evidence without signing or broadcasting.
Endpoint
POST https://apiacre.com/v1/crypto/base-gas-estimate2
Calls / 30d
1
Unique payers / 30d
Sep 1
Last called
exact
Payment scheme
Call this service
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);
const res = await fetchWithPay("https://apiacre.com/v1/crypto/base-gas-estimate", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
"block_tag": "safe",
"buffer_percent": 20,
"call_data": "0x70a082310000000000000000000000001111111111111111111111111111111111111111",
"from_address": "0x1111111111111111111111111111111111111111",
"to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"value_wei": "0"
}),
});
const data = await res.json();curl -X POST \
"https://apiacre.com/v1/crypto/base-gas-estimate" \
-H "Content-Type: application/json" \
-d '{"block_tag":"safe","buffer_percent":20,"call_data":"0x70a082310000000000000000000000001111111111111111111111111111111111111111","from_address":"0x1111111111111111111111111111111111111111","to":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","value_wei":"0"}' \
-H "X-PAYMENT: <signed x402 payment>"Example response
{
"data": {
"block": {
"gasLimit": 120000000,
"hash": "0x1111111111111111111111111111111111111111111111111111111111111111",
"number": 34567890,
"requestedTag": "safe",
"timestamp": "2026-08-10T16:00:00+00:00"
},
"disclaimer": "Read-only Base mainnet gas estimation only. No transaction is created, signed...",
"estimate": {
"bufferPercent": 20,
"gas": 24640,
"gasHex": "0x6040",
"suggestedGasLimit": 29568,
"suggestedGasLimitHex": "0x7380"
},
"estimationAccepted": true,
"limitations": [
"The estimate is state-dependent and does not guarantee later execution.",
"Base-fee components exclude priority fees, L1 data fees, and other fee compon...",
"Only one existing destination is estimated; contract deployment is not suppor..."
],
"network": "eip155:8453",
"networkRequestsMade": 2,
"readOnly": true,
"rpcCallsMade": 2,
"rpcError": null,
"source": "https://docs.base.org/base-chain/api-reference/ethereum-json-rpc-api/eth_esti...",
"status": "estimated",
"transaction": {
"dataBytes": 36,
"dataSha256": "2da90680426443e99a57371fef89ebdb0cba7f941eda4e27491a3bd2069ef775",
"from": "0x1111111111111111111111111111111111111111",
"to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"valueWei": "0"
},
"transactionBroadcast": false,
"warnings": []
},
"meta": {
"cached": false,
"duration_ms": 42,
"next_actions": [],
"sources": [],
"warnings": []
},
"request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
"service": "crypto.base-gas-estimate",
"version": "1"
}Payment details
0xa0bfa4f07281c9b248dc3aed2217836bca24869bUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913Is this your API?
Pin it to the top of Onchain Data and the homepage with a featured placement.
More from API Acre & similar services
API Acre · Crypto Base Network Status
apiacre.com
Read the latest Base mainnet block and a bounded EIP-1559 fee history in one RPC batch, including gas utilization and priority-fee percentile samples.
API Acre · WEB Metadata
apiacre.com
Extract webpage metadata from one public URL: page title, meta description, canonical URL, headings, hreflang, icons, feeds, Open Graph, Twitter Cards, and JSON-LD Schema.org types, with redirect and response provenance plus privacy-safe, publisher-asserted Organization facts with field evidence.
API Acre · Data Schema
apiacre.com
Create and generate a nested JSON Schema Draft 2020-12 contract by inferring field types and required fields from representative JSON, CSV, TSV, JSON Lines, or YAML records, with equivalent CSV/TSV numeric and null inference, input evidence, and non-enforcing observed bounds.