api/v2/feestats - Bitcoin Cash
Example code for the api/v2/feestats REST method. Complete guide on how to use the api/v2/feestats REST method in the GetBlock Web3 documentation.
Parameters
Parameter
Type
Location
Required
Description
Request
curl --location --request GET 'https://go.getblock.io/<ACCESS-TOKEN>/api/v2/feestats/684634'const response = await fetch(
'https://go.getblock.io/<ACCESS-TOKEN>/api/v2/feestats/684634'
);
console.log(await response.json());import requests
response = requests.get('https://go.getblock.io/<ACCESS-TOKEN>/api/v2/feestats/684634')
print(response.json())Response
{
"txCount": 2815,
"totalFeesSat": "12730055",
"averageFeePerKb": 1240.5,
"decilesFeePerKb": [
500,
780,
900,
1050,
1180,
1240,
1310,
1500,
1820,
2200,
4200
]
}Response Parameters
Field
Type
Description
Use Cases
Error Handling
HTTP Status
Message
Description
Was this helpful?