bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
21 lines (20 loc) • 1.07 kB
JavaScript
;
// Auto synced from github actions. Don't change this file
Object.defineProperty(exports, "__esModule", { value: true });
exports.submitPackage = void 0;
var tslib_1 = require("tslib");
var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request"));
/**
* submitpackage ["rawtx",...] ( maxfeerate maxburnamount )
*
* Submit a package of raw transactions (serialized, hex-encoded) to local node.
* The package will be validated according to consensus and mempool policy rules. If any transaction passes, it will be accepted to mempool.
* This RPC is experimental and the interface may be unstable. Refer to doc/policy/packages.md for documentation on package policies.
* Warning: successful submission does not mean the transactions will propagate throughout the network.
*
*/
function submitPackage(params) {
var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]);
return (0, rpc_request_1.default)({ method: 'submitpackage', params: methodParams }, bitcoind);
}
exports.submitPackage = submitPackage;