UNPKG

bitcoin-cli-ts

Version:

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

21 lines (20 loc) 906 B
"use strict"; // Auto synced from github actions. Don't change this file Object.defineProperty(exports, "__esModule", { value: true }); exports.estimateSmartFee = void 0; var tslib_1 = require("tslib"); var rpc_request_1 = tslib_1.__importDefault(require("../../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). * */ function estimateSmartFee(params) { var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]); return (0, rpc_request_1.default)({ method: 'estimatesmartfee', params: methodParams }, bitcoind); } exports.estimateSmartFee = estimateSmartFee;