How to Access Ethereum Beacon API
Step 1: To access Ethereum Beacon, use the following native access endpoints:
- Network: Ethereum Mainnet
- Request Type: POST/GET
https://svc.blockdaemon.com/ethereum/mainnet/native/eth/v1/beacon
- Network: Ethereum Hoodi
- Request Type: POST/GET
https://svc.blockdaemon.com/ethereum/hoodi/native/eth/v1/beacon
Step 2: Authenticate your request using your API key. You can include the API key using either of the following headers:
Authorization: Bearer YOUR_API_KEY
X-API-Key: YOUR_API_KEY
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"
}
}
👋 Need Help?
Contact us through email or our support page for any issues, bugs, or assistance you may need.
Updated 25 days ago