kaia_feeHistory RPC Method
Parameters
blockCount
string
REQUIRED
Loading...
newestBlock
string
REQUIRED
Loading...
rewardPercentiles
integer
REQUIRED
Loading...
Returns
oldestBlock
string
Loading...
baseFeePerGas
array
Loading...
gasUsedRatio
array
Loading...
reward
array
Loading...
Request
1curl https://docs-demo.kaia-kairos.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"kaia_feeHistory","params":["0x1", "latest", [25, 75]],"id":1,"jsonrpc":"2.0"}'
1curl https://docs-demo.kaia-kairos.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"kaia_feeHistory","params":["0x1", "latest", [25, 75]],"id":1,"jsonrpc":"2.0"}'
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "kaia_feeHistory",6"params": [7"0x1",8"latest",9[1025,117512]13],14"id": 1,15"jsonrpc": "2.0"16});1718var requestOptions = {19method: 'POST',20headers: myHeaders,21body: raw,22redirect: 'follow'23};2425fetch("https://docs-demo.kaia-kairos.quiknode.pro/", requestOptions)26.then(response => response.text())27.then(result => console.log(result))28.catch(error => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"method": "kaia_feeHistory",6"params": [7"0x1",8"latest",9[1025,117512]13],14"id": 1,15"jsonrpc": "2.0"16});1718var requestOptions = {19method: 'POST',20headers: myHeaders,21body: raw,22redirect: 'follow'23};2425fetch("https://docs-demo.kaia-kairos.quiknode.pro/", requestOptions)26.then(response => response.text())27.then(result => console.log(result))28.catch(error => console.log('error', error));
1import requests2import json34url = "https://docs-demo.kaia-kairos.quiknode.pro/"56payload = json.dumps({7"method": "kaia_feeHistory",8"params": [9"0x1",10"latest",11[1225,137514]15],16"id": 1,17"jsonrpc": "2.0"18})19headers = {20'Content-Type': 'application/json'21}2223response = requests.request("POST", url, headers=headers, data=payload)2425print(response.text)26
1import requests2import json34url = "https://docs-demo.kaia-kairos.quiknode.pro/"56payload = json.dumps({7"method": "kaia_feeHistory",8"params": [9"0x1",10"latest",11[1225,137514]15],16"id": 1,17"jsonrpc": "2.0"18})19headers = {20'Content-Type': 'application/json'21}2223response = requests.request("POST", url, headers=headers, data=payload)2425print(response.text)26
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.kaia-kairos.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"method": "kaia_feeHistory",14"params": [15"0x1",16"latest",17[1825,197520]21],22"id": 1,23"jsonrpc": "2.0"24})2526response = https.request(request)27puts response.read_body28
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.kaia-kairos.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"method": "kaia_feeHistory",14"params": [15"0x1",16"latest",17[1825,197520]21],22"id": 1,23"jsonrpc": "2.0"24})2526response = https.request(request)27puts response.read_body28
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free