Make requests
Use the curlcommand 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!
Copy link