@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
16 lines • 681 B
JavaScript
// Auto synced from github actions. Don't change this file
import request from '../../rpc-request.js';
/**
* 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) {
const { bitcoind, ...methodParams } = params;
return request({ method: 'estimatesmartfee', params: methodParams }, bitcoind);
}
//# sourceMappingURL=estimate-smart-fee.js.map