api/v2/feestats - Dogecoin

This endpoint returns fee statistics for the transactions contained in one block, including the average rate and the decile distribution.

Parameters

ParameterTypeLocationRequiredDescription
blockIdstringpathYesBlock height or block hash

Request

bashcurl --location --request GET 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/feestats/6378930'

example.js

javascriptconst response = await fetch(
    'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/feestats/6378930'
);
console.log(await response.json());

example.py

pythonimport requests

response = requests.get('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/feestats/6378930')

print(response.json())

Response

json{
    "txCount": 69,
    "totalFeesSat": "2346629541",
    "averageFeePerKb": 65422296,
    "decilesFeePerKb": [
        1000000,
        1513333,
        2000000,
        2010471,
        10044444,
        14285714,
        32000000,
        36321989,
        60266666,
        202666666,
        552444444
    ]
}

Response Parameters

FieldTypeDescription
txCountintegerNumber of transactions counted, excluding the coinbase
totalFeesSatstringTotal fees paid in the block, in koinu
averageFeePerKbnumberAverage fee rate in koinu per kilobyte
decilesFeePerKbarrayEleven boundary values describing the fee-rate distribution, from minimum to maximum

Rates here are in koinu per kilobyte, so the figures are large: 65422296 is roughly 0.654 DOGE per kilobyte. The spread across deciles is wide — from 0.01 to 5.5 DOGE per kilobyte in the block above — so the average alone is a poor guide to what a transaction needs to pay.

Use Cases

  • Fee Benchmarking: Compare a planned fee against what recently confirmed
  • Congestion Analysis: Track how rates move block to block
  • Rate Cards: Derive economy and priority tiers from the decile spread

Error Handling

HTTP StatusMessageDescription
400Bad requestA path or query parameter is malformed
403ForbiddenMissing or invalid ACCESS-TOKEN
404Not foundNo indexed data exists for the request
500Internal errorThe indexer failed to process the request