Api Endpoint

base-block

Fetch a Base mainnet block header and transaction hashes by number, tag (latest/earliest/safe/finalized), or hash via eth_getBlockByNumber/eth_getBlockByHash.

Open interactive test console

Offering

Provider
x402.agentindex.world
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Blockchain And Crypto
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://x402.agentindex.world/base/block
MIME type
application/json
First seen
2026-10-16T01:50:38.788Z
Last seen
Tags
base rpc, block header, Base mainnet, eth_getBlockByNumber, eth_getBlockByHash

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.003 USDC
Atomic price: 3000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "3000",
    "payTo": "0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d"
  }
]

Observed health

Status
Reachable
Latest latency
298 ms
Average latency
1590 ms
HTTP status
405
Last checked
Reachability
100% over 13 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "properties": {
        "number": {
          "anyOf": [
            {},
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Number"
        },
        "hash": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Hash"
        }
      },
      "title": "BlockInput",
      "type": "object"
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "number": {
          "title": "Number",
          "type": "integer"
        },
        "hash": {
          "title": "Hash",
          "type": "string"
        },
        "parent_hash": {
          "title": "Parent Hash",
          "type": "string"
        },
        "timestamp": {
          "title": "Timestamp",
          "type": "integer"
        },
        "miner": {
          "title": "Miner",
          "type": "string"
        },
        "gas_used": {
          "title": "Gas Used",
          "type": "integer"
        },
        "gas_limit": {
          "title": "Gas Limit",
          "type": "integer"
        },
        "base_fee_per_gas": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "default": null,
          "title": "Base Fee Per Gas"
        },
        "transaction_count": {
          "title": "Transaction Count",
          "type": "integer"
        },
        "transaction_hashes": {
          "items": {
            "type": "string"
          },
          "title": "Transaction Hashes",
          "type": "array"
        }
      },
      "required": [
        "number",
        "hash",
        "parent_hash",
        "timestamp",
        "miner",
        "gas_used",
        "gas_limit",
        "transaction_count",
        "transaction_hashes"
      ],
      "title": "BlockOutput"
    }
  },
  "required": [
    "type"
  ]
}