81trust / 100

Crypto Base Block Inspect

by API Acre in Onchain & crypto

x402 APIPassing, checked 2 h ago

Get and inspect one historical Base mainnet block by exact number or a latest, safe, or finalized tag, returning its header timestamp, transaction count, gas use, base and blob fees, state and receipt roots, confirmations, and head-distance evidence.

POST https://apiacre.com/v1/crypto/base-block-inspect

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
89 ms typical, 89 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://apiacre.com/v1/crypto/base-block-inspect" \
  -H "content-type: application/json" \
  -d '{"block_number":34600000,"block_tag":"safe"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapiacre.com%2Fv1%2Fcrypto%2Fbase-block-inspect
const res = await pay("https://apiacre.com/v1/crypto/base-block-inspect", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"block_number":34600000,"block_tag":"safe"}),
});
console.log(await res.json());

Example input

{
  "block_number": 34600000,
  "block_tag": "safe"
}

Example output

{
  "data": {
    "block": {
      "ageSeconds": 4,
      "hash": "0x4444444444444444444444444444444444444444444444444444444444444444",
      "number": 34600000,
      "parentHash": "0x3333333333333333333333333333333333333333333333333333333333333333",
      "timestamp": "2026-08-11T13:00:00+00:00"
    },
    "disclaimer": "A point-in-time RPC observation, not proof of finality beyond the requested p...",
    "found": true,
    "head": {
      "blockAtOrBeforeHead": true,
      "confirmations": 3,
      "latestNumber": 34600002
    },
    "network": {
      "caip2": "eip155:8453",
      "chainId": 8453,
      "name": "Base Mainnet"
    },
    "networkRequestsMade": 1,
    "observedAt": "2026-08-11T13:00:04+00:00",
    "readOnly": true,
    "request": {
      "blockNumber": 34600000,
      "blockTag": null,
      "fullTransactions": false,
      "mode": "number",
      "rpcSelector": "0x20ff440"
    },
    "rpcCallsMade": 3,
    "source": "https://docs.base.org/base-chain/api-reference/ethereum-json-rpc-api/eth_getB...",
    "transactionBroadcast": false,
    "warnings": []
  },
  "meta": {
    "cached": false,
    "duration_ms": 42,
    "next_actions": [
      {
        "method": "POST",
        "path": "/v1/crypto/base-network-status",
        "reason": "Compare the inspected historical or tagged block with the current Base head a...",
        "service": "crypto.base-network-status",
        "title": "Base network and fee status"
      }
    ],
    "sources": [],
    "warnings": []
  },
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "crypto.base-block-inspect",
  "version": "1"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed40289 ms$0.001
7 h agoPassed402156 ms$0.001