How To Access Ethereum Beacon API

Learn how to access Ethereum Beacon API.

Step 1: To access the available Ethereum Beacon methods, use the following native access endpoints:

  • Network: Ethereum Mainnet
  • Request Type: POST/GET
https://svc.blockdaemon.com/ethereum/mainnet/native/eth/v1/beacon

Step 2: You should authorize your request. Learn more: Authentication Guide

Step 3: Specify an Ethereum Beacon API method at the end of the query:

https://svc.blockdaemon.com/ethereum/mainnet/native/eth/v1/beacon/genesis

Example Request

Here is a cURL example for retrieving details of the chain's genesis, which can be used to identify the chain.

curl -X GET \
'https://svc.blockdaemon.com/ethereum/mainnet/native/eth/v1/beacon/genesis' \
-H 'Authorization: Bearer YOUR_API_KEY'

The following is a typical response you will get:

{
    "data": {
        "genesis_time": "1606824023",
        "genesis_validators_root": "0x4b363db94e286120d76eb905340fdd4e54bfe9f06bf33ff6cf5ad27f511bfe95",
        "genesis_fork_version": "0x00000000"
    }
}