estimatesmartfee - Bitcoin
estimatesmartfee. Retrieves the current height of the latest block.
estimatesmartfee - bitcoin [Value: 30CU]
Estimates the transaction fee based on current network conditions.
Use cases
- Estimate fee for confirmation target
- Determine optimal transaction fee
- Get recommended Bitcoin fee
Constraints
- Requires node connection
- Varies with network conditions
- Depends on recent block data
Unlock Access to 50+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Language
Request
Examples
curl https://bitcoin.drpc.org \
-X POST \
-H "Content-Type: application/json" \
--data '{ "method": "estimatesmartfee", "params": [10] }'
Response
200
{
"jsonrpc": "2.0",
"id": "curltest",
"result": {
"feerate": 0.0001,
"blocks": 10
}
}
Request params
idinteger
jsonrpcstring
methodstring
object
conf_targetnumeric
Required. The confirmation target in blocks.
estimate_modestring
Optional. The fee estimate mode. By default, it is CONSERVATIVE.
Response
200
Response params
object
idinteger
jsonrpcstring
resultnumeric
object
blocksnumeric
The block number where the estimate was found.
feeratenumeric
The estimated fee rate in BTC/kB.
errorsarray
Errors encountered during processing.
object
strstring
The error message.