api/v2/estimatefee - Dogecoin

This endpoint returns the backend fee estimate for a target number of blocks to confirmation. The result is a fee rate in DOGE per kilobyte.

Parameters

ParameterTypeLocationRequiredDescription
blocksintegerpathYesConfirmation target in blocks
conservativebooleanqueryNoUse conservative smart fee estimation. Default true

Request

bashcurl --location --request GET 'https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/estimatefee/6?conservative=true'

example.js

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

example.py

pythonimport requests

response = requests.get('https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/api/v2/estimatefee/6?conservative=true')

print(response.json())

Response

json{
    "result": "0.0100255"
}

Response Parameters

FieldTypeDescription
resultstringEstimated fee rate as a decimal amount in DOGE per kilobyte

A one-block target has no estimate on Dogecoin and returns -1. The node's estimatesmartfee reports -1 when it lacks the data to estimate a target, and Blockbook passes that through unchanged:

TargetResult
blocks=1-1
blocks=20.50318115
blocks=60.01002472
blocks=120.01002472

Always check that the estimate is positive before using it. A client that multiplies -1 by a transaction size produces a negative fee and builds an invalid transaction. The WebSocket estimateFee method surfaces the same condition as feePerUnit: "-100000000", the -1 scaled to koinu.

Note also how steep the curve is: a two-block target costs roughly fifty times a six-block target. Do not treat a fast target as a small premium on Dogecoin.

Dogecoin's fees are large in absolute terms compared with other UTXO chains: 0.0100255 DOGE per kilobyte is roughly 1,002,550 koinu per kilobyte. This is normal and reflects the chain's low unit value, not a misconfigured node.

Use Cases

  • Fee Selection: Choose a rate matching the confirmation speed a payment needs
  • Cost Preview: Show the user the fee before signing
  • Batch Planning: Size a consolidation against the current rate

Error Handling

HTTP StatusMessageDescription
400Bad requestThe confirmation target is not a valid integer
403ForbiddenMissing or invalid ACCESS-TOKEN
500Internal errorThe node failed to return an estimate