DASH
POST
GET
Last updated on January 1, 1970
1 min read
Method estimatesmartfee undefined ()
connect with JSON-RPC protocol
estimatesmartfee
Estimates the transaction fee per kilobyte that needs to be paid for atransaction to begin confirmation within a certain number of blocks andreturns the number of blocks for which the estimate is valid.
Parameters
conf_target
- number (int)
Confirmation target in blocks (1 - 1008).
estimate_mode
- string
Optional, default=CONSERVATIVE
The fee estimate mode. Whether to return a more conservative estimate which also satisfies a longer history.
A conservative estimate potentially returns a higher feerate and is more likely to be sufficient for the desired target, but is not as responsive to short term drops in the prevailing fee market.
Must be one of: - UNSET (defaults to CONSERVATIVE) - ECONOMICAL - CONSERVATIVE
Request
curl --location --request POST 'https://dash.getblock.io/mainnet/'
--header 'x-api-key: YOUR-API-KEY'
--header 'Content-Type: application/json'
--data-raw '{"jsonrpc": "2.0",
"method": "estimatesmartfee",
"params": [100, "CONSERVATIVE"],
"id": "getblock.io"}'
Response
{
"error": null,
"id": "getblock.io",
"result": {
"blocks": 100,
"feerate": 1e-05
}
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }