POST
/
788f110831fe13808302bd79796d55e8
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
}

The 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.

Get you own node endpoint today

Start for free and get your app to production levels immediately. No credit card required.

You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • conf_target (required): The number of blocks within which the transaction should be confirmed.

Response

  • 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.

Use case

The 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.

Body

application/json
jsonrpc
string
default:1.0
method
string
default:estimatesmartfee
params
integer[]

The number of blocks within which the transaction is expected to be confirmed.

id
integer
default:1

Response

200 - application/json
The estimated fee per kilobyte for a transaction to be confirmed within the specified number of blocks.
result
object

Contains the estimated fee rate and the number of blocks.

error
object
id
integer