curl --request POST \
--url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "1.0",
"method": "estimatesmartfee",
"params": [
6
],
"id": 1
}'
{
"result": {
"feerate": 123,
"blocks": 123
},
"error": {},
"id": 123
}
curl --request POST \
--url https://nd-202-842-353.p2pify.com/788f110831fe13808302bd79796d55e8 \
--header 'Content-Type: application/json' \
--data '{
"jsonrpc": "1.0",
"method": "estimatesmartfee",
"params": [
6
],
"id": 1
}'
{
"result": {
"feerate": 123,
"blocks": 123
},
"error": {},
"id": 123
}
estimatesmartfee
method estimates the fee per kilobyte required for a transaction to be confirmed within a certain number of blocks. This is useful for dynamically adjusting transaction fees based on current network conditions.
conf_target
(required): The number of blocks within which the transaction should be confirmed.result
— an object containing the estimated fee rate (feerate
) in BTC per kilobyte and the target number of blocks (blocks
) for confirmation.error
— an object containing an error message if an error occurred, otherwise null
.id
— an integer representing the ID of the request.estimatesmartfee
method is crucial for wallet applications and services that need to adjust transaction fees dynamically. It helps ensure transactions are confirmed in a timely manner without overpaying.The estimated fee per kilobyte for a transaction to be confirmed within the specified number of blocks.
The response is of type object
.
Was this page helpful?