{
  "x402Version": 2,
  "id": 72696,
  "slug": "saylorinnovations-api-chain-block",
  "resource": "https://saylorinnovations.com/api/chain/block",
  "description": "EVM block lookup for 16 chains by number, hash or tag: header, gas used, base fee, miner, size, transaction count and the transaction hashes.",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "chain": {
        "type": "string",
        "description": "the chain name that was queried"
      },
      "chain_id": {
        "type": "number",
        "description": "EIP-155 chain id of that network"
      },
      "block_number": {
        "type": "number",
        "description": "block height"
      },
      "hash": {
        "type": "string",
        "description": "block hash"
      },
      "parent_hash": {
        "type": "string",
        "description": "hash of the previous block"
      },
      "timestamp": {
        "type": "string",
        "description": "block time in UTC"
      },
      "age_seconds": {
        "type": "number",
        "description": "seconds since the block was produced"
      },
      "miner": {
        "type": [
          "string",
          "null"
        ],
        "description": "fee recipient or validator address"
      },
      "gas_limit": {
        "type": "number",
        "description": "block gas limit"
      },
      "gas_used": {
        "type": "number",
        "description": "gas used by the block"
      },
      "fullness_pct": {
        "type": [
          "number",
          "null"
        ],
        "description": "share of the gas limit used"
      },
      "base_fee_gwei": {
        "type": [
          "number",
          "null"
        ],
        "description": "base fee per gas in gwei"
      },
      "size_bytes": {
        "type": [
          "number",
          "null"
        ],
        "description": "block size in bytes"
      },
      "tx_count": {
        "type": "number",
        "description": "transactions in the block"
      },
      "transactions": {
        "description": "first 100 transaction hashes",
        "type": [
          "array",
          "null"
        ]
      },
      "transactions_truncated": {
        "type": "boolean",
        "description": "true when more than 100 transactions exist"
      },
      "withdrawals_count": {
        "type": [
          "number",
          "null"
        ],
        "description": "validator withdrawals in the block"
      },
      "source": {
        "type": "string",
        "description": "where the data was read from"
      },
      "note": {
        "description": "plain-language reading of the result"
      }
    },
    "required": [
      "chain",
      "chain_id",
      "block_number",
      "hash",
      "timestamp",
      "tx_count",
      "source"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "block": "latest",
            "chain": "ethereum"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "chain": "ethereum",
            "chain_id": 1,
            "block_number": 26237958,
            "hash": "0x1f7d3a5d80e2d78aa94ed1d92dd838339214792a0aa8750b98cbc8a883789e70",
            "parent_hash": "0xf4082490a0e5f995ab62f6f5d9a6aeff60e9b37a73c7afb06da92ef5e7b87a75",
            "timestamp": "2026-10-21T02:23:35.000Z",
            "age_seconds": 5,
            "miner": "0x4838b106fce9647bdf1e7877bf73ce8b0bad5f97",
            "gas_limit": 60000000,
            "gas_used": 14066719,
            "fullness_pct": 23.44,
            "base_fee_gwei": 0.043347,
            "size_bytes": 69445,
            "tx_count": 198,
            "transactions": [
              "0x7dbdb5eebfb594e8271c0de665cf2f29e21075b15d803f8d9e5dae9df0f8e95c",
              "0x990246d1cfeda150e672ae0ef6caf55bb672c996b39ca736a5baa957847d2d3d",
              "0xf738dc70448779ee086bf9f34e3073a8561e1601d16122a6da0a1d3f079631e8"
            ],
            "transactions_truncated": true,
            "withdrawals_count": 16,
            "source": "Chain JSON-RPC (ethereum)"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "block": {
                    "type": "string",
                    "description": "optional block number (decimal or 0x hex), 0x block hash, or latest, safe, finalized (default latest)"
                  },
                  "chain": {
                    "type": "string",
                    "description": "chain name (ethereum, base, arbitrum, optimism, polygon, bsc, avalanche, gnosis, linea, scroll, mantle, blast, sonic, celo, berachain, unichain) or chain id"
                  }
                },
                "required": [
                  "chain"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "chain": {
                    "type": "string",
                    "description": "the chain name that was queried"
                  },
                  "chain_id": {
                    "type": "number",
                    "description": "EIP-155 chain id of that network"
                  },
                  "block_number": {
                    "type": "number",
                    "description": "block height"
                  },
                  "hash": {
                    "type": "string",
                    "description": "block hash"
                  },
                  "parent_hash": {
                    "type": "string",
                    "description": "hash of the previous block"
                  },
                  "timestamp": {
                    "type": "string",
                    "description": "block time in UTC"
                  },
                  "age_seconds": {
                    "type": "number",
                    "description": "seconds since the block was produced"
                  },
                  "miner": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "fee recipient or validator address"
                  },
                  "gas_limit": {
                    "type": "number",
                    "description": "block gas limit"
                  },
                  "gas_used": {
                    "type": "number",
                    "description": "gas used by the block"
                  },
                  "fullness_pct": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "share of the gas limit used"
                  },
                  "base_fee_gwei": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "base fee per gas in gwei"
                  },
                  "size_bytes": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "block size in bytes"
                  },
                  "tx_count": {
                    "type": "number",
                    "description": "transactions in the block"
                  },
                  "transactions": {
                    "description": "first 100 transaction hashes",
                    "type": [
                      "array",
                      "null"
                    ]
                  },
                  "transactions_truncated": {
                    "type": "boolean",
                    "description": "true when more than 100 transactions exist"
                  },
                  "withdrawals_count": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "validator withdrawals in the block"
                  },
                  "source": {
                    "type": "string",
                    "description": "where the data was read from"
                  },
                  "note": {
                    "description": "plain-language reading of the result"
                  }
                },
                "required": [
                  "chain",
                  "chain_id",
                  "block_number",
                  "hash",
                  "timestamp",
                  "tx_count",
                  "source"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "block by number",
    "eth getblockbynumber",
    "block header details",
    "block transaction hashes",
    "latest block info"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.982Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "block": {
          "type": "string",
          "description": "optional block number (decimal or 0x hex), 0x block hash, or latest, safe, finalized (default latest)"
        },
        "chain": {
          "type": "string",
          "description": "chain name (ethereum, base, arbitrum, optimism, polygon, bsc, avalanche, gnosis, linea, scroll, mantle, blast, sonic, celo, berachain, unichain) or chain id"
        }
      },
      "required": [
        "chain"
      ]
    },
    "exampleResponse": {
      "chain": "ethereum",
      "chain_id": 1,
      "block_number": 26237958,
      "hash": "0x1f7d3a5d80e2d78aa94ed1d92dd838339214792a0aa8750b98cbc8a883789e70",
      "parent_hash": "0xf4082490a0e5f995ab62f6f5d9a6aeff60e9b37a73c7afb06da92ef5e7b87a75",
      "timestamp": "2026-10-21T02:23:35.000Z",
      "age_seconds": 5,
      "miner": "0x4838b106fce9647bdf1e7877bf73ce8b0bad5f97",
      "gas_limit": 60000000,
      "gas_used": 14066719,
      "fullness_pct": 23.44,
      "base_fee_gwei": 0.043347,
      "size_bytes": 69445,
      "tx_count": 198,
      "transactions": [
        "0x7dbdb5eebfb594e8271c0de665cf2f29e21075b15d803f8d9e5dae9df0f8e95c",
        "0x990246d1cfeda150e672ae0ef6caf55bb672c996b39ca736a5baa957847d2d3d",
        "0xf738dc70448779ee086bf9f34e3073a8561e1601d16122a6da0a1d3f079631e8"
      ],
      "transactions_truncated": true,
      "withdrawals_count": 16,
      "source": "Chain JSON-RPC (ethereum)"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "block": "latest",
              "chain": "ethereum"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "chain": "ethereum",
              "chain_id": 1,
              "block_number": 26237958,
              "hash": "0x1f7d3a5d80e2d78aa94ed1d92dd838339214792a0aa8750b98cbc8a883789e70",
              "parent_hash": "0xf4082490a0e5f995ab62f6f5d9a6aeff60e9b37a73c7afb06da92ef5e7b87a75",
              "timestamp": "2026-10-21T02:23:35.000Z",
              "age_seconds": 5,
              "miner": "0x4838b106fce9647bdf1e7877bf73ce8b0bad5f97",
              "gas_limit": 60000000,
              "gas_used": 14066719,
              "fullness_pct": 23.44,
              "base_fee_gwei": 0.043347,
              "size_bytes": 69445,
              "tx_count": 198,
              "transactions": [
                "0x7dbdb5eebfb594e8271c0de665cf2f29e21075b15d803f8d9e5dae9df0f8e95c",
                "0x990246d1cfeda150e672ae0ef6caf55bb672c996b39ca736a5baa957847d2d3d",
                "0xf738dc70448779ee086bf9f34e3073a8561e1601d16122a6da0a1d3f079631e8"
              ],
              "transactions_truncated": true,
              "withdrawals_count": 16,
              "source": "Chain JSON-RPC (ethereum)"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "block": {
                      "type": "string",
                      "description": "optional block number (decimal or 0x hex), 0x block hash, or latest, safe, finalized (default latest)"
                    },
                    "chain": {
                      "type": "string",
                      "description": "chain name (ethereum, base, arbitrum, optimism, polygon, bsc, avalanche, gnosis, linea, scroll, mantle, blast, sonic, celo, berachain, unichain) or chain id"
                    }
                  },
                  "required": [
                    "chain"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "chain": {
                      "type": "string",
                      "description": "the chain name that was queried"
                    },
                    "chain_id": {
                      "type": "number",
                      "description": "EIP-155 chain id of that network"
                    },
                    "block_number": {
                      "type": "number",
                      "description": "block height"
                    },
                    "hash": {
                      "type": "string",
                      "description": "block hash"
                    },
                    "parent_hash": {
                      "type": "string",
                      "description": "hash of the previous block"
                    },
                    "timestamp": {
                      "type": "string",
                      "description": "block time in UTC"
                    },
                    "age_seconds": {
                      "type": "number",
                      "description": "seconds since the block was produced"
                    },
                    "miner": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "fee recipient or validator address"
                    },
                    "gas_limit": {
                      "type": "number",
                      "description": "block gas limit"
                    },
                    "gas_used": {
                      "type": "number",
                      "description": "gas used by the block"
                    },
                    "fullness_pct": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "share of the gas limit used"
                    },
                    "base_fee_gwei": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "base fee per gas in gwei"
                    },
                    "size_bytes": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "block size in bytes"
                    },
                    "tx_count": {
                      "type": "number",
                      "description": "transactions in the block"
                    },
                    "transactions": {
                      "description": "first 100 transaction hashes",
                      "type": [
                        "array",
                        "null"
                      ]
                    },
                    "transactions_truncated": {
                      "type": "boolean",
                      "description": "true when more than 100 transactions exist"
                    },
                    "withdrawals_count": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "validator withdrawals in the block"
                    },
                    "source": {
                      "type": "string",
                      "description": "where the data was read from"
                    },
                    "note": {
                      "description": "plain-language reading of the result"
                    }
                  },
                  "required": [
                    "chain",
                    "chain_id",
                    "block_number",
                    "hash",
                    "timestamp",
                    "tx_count",
                    "source"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/chain/block?chain=ethereum&block=latest",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "chain": "string",
    "chain_id": 0,
    "block_number": 0,
    "hash": "string",
    "parent_hash": "string",
    "timestamp": "string",
    "age_seconds": 0,
    "miner": "string",
    "gas_limit": 0,
    "gas_used": 0,
    "fullness_pct": 0,
    "base_fee_gwei": 0,
    "size_bytes": 0,
    "tx_count": 0,
    "transactions": [
      "value"
    ],
    "transactions_truncated": true,
    "withdrawals_count": 0,
    "source": "string",
    "note": null
  }
}