bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
17 lines (16 loc) • 870 B
JavaScript
// Auto synced from github actions. Don't change this file
import { __rest } from "tslib";
import request from '../../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.
*
*/
export function submitPackage(params) {
var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]);
return request({ method: 'submitpackage', params: methodParams }, bitcoind);
}