erigon_forks RPC Method
Parameters
This method does not accept any parameters
Returns
genesis
string
Loading...
heightForks
array
Loading...
timeForks
array
Loading...
Request
curl --location 'https://docs-demo.quiknode.pro/' \
--header 'Content-Type: application/json' \
--data '{
"method": "erigon_forks",
"params": [],
"id": 1,
"jsonrpc": "2.0"
}'const myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
const raw = JSON.stringify({
"method": "erigon_forks",
"params": [],
"id": 1,
"jsonrpc": "2.0"
});
const requestOptions = {
method: "POST",
headers: myHeaders,
body: raw,
redirect: "follow"
};
fetch("https://docs-demo.quiknode.pro/", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));import requests
import json
url = "https://docs-demo.quiknode.pro/"
payload = json.dumps({
"method": "erigon_forks",
"params": [],
"id": 1,
"jsonrpc": "2.0"
})
headers = {
'Content-Type': 'application/json'
}
response = requests.request("POST", url, headers=headers, data=payload)
print(response.text)
require "uri"
require "json"
require "net/http"
url = URI("https://docs-demo.quiknode.pro/")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = "application/json"
request.body = JSON.dump({
"method": "erigon_forks",
"params": [],
"id": 1,
"jsonrpc": "2.0"
})
response = https.request(request)
puts response.read_body
Response
{
"jsonrpc": "2.0",
"id": 1,
"result": {
"genesis": "0xd4e56740f876aef8c010b86a40d5f56745a118d0906a34e69aec8c0db1cb8fa3",
"heightForks": [
1150000,
1920000,
2463000,
2675000,
4370000,
7280000,
9069000,
9200000,
12244000,
12965000,
13773000,
15050000
],
"timeForks": [
1681338455,
1710338135
]
}
}Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free