estimatesmartfee

BitcoinC1

Returns a fee-rate estimate (BTC/kvB) needed for a transaction to confirm within the target number of blocks, based on mempool and recent blocks.

Endpoint
POST https://api.1st-node.com/v1/bitcoin/rpc

Parameters

NameTypeDescription
conf_targetnumberConfirmation target in blocks.

Returns

object — feerate in BTC/kvB and the blocks target.

Request

curl https://api.1st-node.com/v1/bitcoin/rpc \
  -H "Authorization: Bearer $ONE_KEY" \
  -H "content-type: application/json" \
  -d '{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "estimatesmartfee",
  "params": [6]
}'
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "estimatesmartfee",
  "params": [6]
}

Response

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": { "feerate": 0.00002, "blocks": 6 }
}
More chain methods on Bitcoin

Bitcoin API

充值、拿密钥、上线。

自助开通。支持加密货币或银行卡。按额度计费——重型原语更贵,简单调用很便宜。

获取 API 密钥