AptosAptos Network's breakthrough technology and seamless user experience are now available on QuickNode.
Start building today!
Parameters:
Returns:
genesis_time - string - The genesis_time configured for the beacon node, which is the unix time in seconds at which the Eth2.0 chain began
genesis_validators_root - string - The genesis validator root
genesis_fork_version - string - A fork version number
Code Examples:
var myHeaders = new Headers(); myHeaders.append("accept", "application/json"); var requestOptions = { method: 'GET', headers: myHeaders, redirect: 'follow' }; fetch("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/beacon/genesis", requestOptions) .then(response => response.text()) .then(result => console.log(result)) .catch(error => console.log('error', error));
require "uri" require "net/http" url = URI("http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/beacon/genesis") https = Net::HTTP.new(url.host, url.port) https.use_ssl = true request = Net::HTTP::Get.new(url) request["accept"] = "application/json" response = https.request(request) puts response.read_body
curl -X GET \ "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/beacon/genesis" \ -H "accept: application/json"
import requests url = "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/eth/v1/beacon/genesis" payload={} headers = { 'accept': 'application/json' } response = requests.request("GET", url, headers=headers, data=payload) print(response.text)