Dashboard
Tutorials
Community
Support
Search…
Welcome to Infura docs
Getting started
Dashboard stats
Networks
Ethereum (execution layer)
ETH2 (consensus layer)
How to
Authenticate requests
Make requests
Choose a network
ETH2 REST API
IPFS
Filecoin
Polygon PoS
Palm
Optimism
Arbitrum
NEAR
Aurora
StarkNet
Features
Archive data
NFT SDK
Infura transactions (ITX)
Tutorials
Ethereum
Filecoin
NEAR
Layer 2 networks
Developer tools
LEARN
curl
JSON Web Token (JWT)
Web3 libraries
Powered By
GitBook
Make requests
Use the
curl
command or similar tool to make REST API calls. Include the project ID and project secret in the call.
The following call returns the details of the main chain's genesis:
1
curl
-X GET
\
2
"https://<PROJECT_ID>:<PROJECT_SECRET>@eth2-beacon-mainnet.infura.io/eth/v1/beacon/genesis"
Copied!
The response:
1
{
"data"
:
2
{
"genesis_time"
:
"1606824023"
,
3
"genesis_validators_root"
:
"0x4b363db94e286120d76eb905340fdd4e54bfe9f06bf33ff6cf5ad27f511bfe95"
,
4
"genesis_fork_version"
:
"0x00000000"
5
}
6
}
Copied!
Previous
Authenticate requests
Next
Choose a network
Last modified
2mo ago
Copy link