UNPKG

bitcoin-cli-ts

Version:

Auto-generated Bitcoin client library for bitcoind JSON-RPC API

17 lines (16 loc) 695 B
// Auto synced from github actions. Don't change this file import { __rest } from "tslib"; import request from '../../rpc-request'; /** * estimatesmartfee conf_target ( "estimate_mode" ) * * Estimates the approximate fee per kilobyte needed for a transaction to begin * confirmation within conf_target blocks if possible and return the number of blocks * for which the estimate is valid. Uses virtual transaction size as defined * in BIP 141 (witness data is discounted). * */ export function estimateSmartFee(params) { var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]); return request({ method: 'estimatesmartfee', params: methodParams }, bitcoind); }