Skip to main content
POST
/
api
/
v2
/
ethereum
/
block
Block
curl --request POST \
  --url https://beaconcha.in/api/v2/ethereum/block \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "block": {
    "view": "latest"
  },
  "chain": "mainnet"
}
'
{
  "data": {
    "block": 1,
    "timestamp": 1,
    "hash": "<string>",
    "parent_hash": "<string>",
    "receipts_root": "<string>",
    "state_root": "<string>",
    "transaction": {
      "gas": {
        "used": 123,
        "limit": 123,
        "base_fee": "<string>",
        "fees_burned": "<string>"
      },
      "count": {
        "normal": 123,
        "internal": 123,
        "blob": 123
      }
    },
    "extra_data": "<string>",
    "finality": "not_finalized",
    "consensus_reference": {
      "slot": 1,
      "epoch": 1,
      "block_root": "<string>"
    },
    "blob": {
      "gas": {
        "used": 123,
        "excess": 123
      }
    },
    "mining": {
      "miner": {
        "address": "<string>",
        "is_contract": true
      },
      "difficulty": "<string>",
      "mix_hash": "<string>",
      "uncles_sha3": "<string>",
      "uncles_count": 123
    }
  }
}

Authorizations

Authorization
string
header
required

Authorization header with value: Bearer YOUR_TOKEN. Refer to the API Keys section to create your API key.

Body

application/json
block
Number · object
required

Specify a block using one of the following methods.

  • Block number
  • View: "latest" or "finalized"
chain
enum<string>
default:mainnet

The Ethereum chain to query.

Available options:
mainnet,
hoodi

Response

Successful response.

Response containing basic information about the block.

data
object
required