Estimate gas for one Base mainnet transaction context at a resolved block, add a bounded c
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.
4000 (raw units)
price
1
calls / 30d
1
unique payers
2026-09-01
updated
Provider
apiacre.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0xa0BFa4f07281c9b248DC3AED2217836BcA24869B",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "4000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "B4CHWQeQn7GDLZD2aW6hpGG2bEseisBFLZYECA3HDLan",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "4000",
"maxTimeoutSeconds": 300
}
]Output schema
{
"bazaar": {
"info": {
"input": {
"body": {
"block_tag": "safe",
"buffer_percent": 20,
"call_data": "0x70a082310000000000000000000000001111111111111111111111111111111111111111",
"from_address": "0x1111111111111111111111111111111111111111",
"to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"value_wei": "0"
},
"bodyType": "json",
"method": "POST",
"type": "http"
},
"output": {
"example": {
"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"
},
"type": "json"
}
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"body": {
"properties": {
"block_tag": {
"enum": [
"latest",
"safe",
"finalized"
],
"type": "string"
},
"buffer_percent": {
"type": "integer"
},
"call_data": {
"type": "string"
},
"from_address": {
"type": "string"
},
"to": {
"type": "string"
},
"value_wei": {
"type": "string"
}
},
"required": [
"from_address",
"to"
],
"type": "object"
},
"bodyType": {
"enum": [
"json",
"form-data",
"text"
],
"type": "string"
},
"method": {
"enum": [
"POST",
"PUT",
"PATCH"
],
"type": "string"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method",
"bodyType",
"body"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"data": {
"additionalProperties": false,
"properties": {
"block": {
"type": "object"
},
"disclaimer": {
"type": "string"
},
"estimate": {
"type": [
"object",
"null"
]
},
"estimationAccepted": {
"type": "boolean"
},
"limitations": {
"items": {
"type": "string"
},
"type": "array"
},
"network": {
"type": "string"
},
"networkRequestsMade": {
"type": "integer"
},
"readOnly": {
"type": "boolean"
},
"rpcCallsMade": {
"type": "integer"
},
"rpcError": {
"type": [
"object",
"null"
]
},
"source": {
"type": "string"
},
"status": {
"type": "string"
},
"transaction": {
"type": "object"
},
"transactionBroadcast": {
"type": "boolean"
},
"warnings": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"network",
"status",
"estimationAccepted",
"transaction",
"block",
"estimate",
"rpcError",
"networkRequestsMade",
"rpcCallsMade",
"readOnly",
"transactionBroadcast",
"warnings",
"limitations",
"source",
"disclaimer"
],
"type": "object"
},
"meta": {
"properties": {
"cached": {
"type": "boolean"
},
"duration_ms": {
"type": "integer"
},
"next_actions": {
"items": {
"type": "object"
},
"type": "array"
},
"sources": {
"items": {
"type": "string"
},
"type": "array"
},
"warnings": {
"items": {
"type": "string"
},
"type": "array"
}
},
"required": [
"duration_ms",
"cached",
"sources",
"warnings",
"next_actions"
],
"type": "object"
},
"request_id": {
"type": "string"
},
"service": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"request_id",
"service",
"version",
"data",
"meta"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}
},
"payment-identifier": {
"info": {
"required": false
},
"schema": {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"id": {
"maxLength": 128,
"minLength": 16,
"pattern": "^[a-zA-Z0-9_-]+$",
"type": "string"
},
"required": {
"type": "boolean"
}
},
"required": [
"required"
],
"type": "object"
}
}
}Use it
curl
curl "https://apiacre.com/v1/crypto/base-gas-estimate" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://apiacre.com/v1/crypto/base-gas-estimate");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://apiacre.com/v1/crypto/base-gas-estimate")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/2578.json, and this resource appears in /discovery/resources and /discovery/search.