bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
24 lines (23 loc) • 1.13 kB
JavaScript
;
// Auto synced from github actions. Don't change this file
Object.defineProperty(exports, "__esModule", { value: true });
exports.estimateRawFee = void 0;
var tslib_1 = require("tslib");
var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request"));
/**
* estimaterawfee conf_target ( threshold )
*
* WARNING: This interface is unstable and may disappear or change!
* WARNING: This is an advanced API call that is tightly coupled to the specific
* implementation of fee estimation. The parameters it can be called with
* and the results it returns will change if the internal implementation changes.
* Estimates the approximate fee per kilobyte needed for a transaction to begin
* confirmation within conf_target blocks if possible. Uses virtual transaction size as
* defined in BIP 141 (witness data is discounted).
*
*/
function estimateRawFee(params) {
var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]);
return (0, rpc_request_1.default)({ method: 'estimaterawfee', params: methodParams }, bitcoind);
}
exports.estimateRawFee = estimateRawFee;