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キーを取得