bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
23 lines (22 loc) • 1.17 kB
JavaScript
;
// Auto synced from github actions. Don't change this file
Object.defineProperty(exports, "__esModule", { value: true });
exports.sendRawTransaction = void 0;
var tslib_1 = require("tslib");
var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request"));
/**
* sendrawtransaction "hexstring" ( maxfeerate maxburnamount )
*
* Submit a raw transaction (serialized, hex-encoded) to local node and network.
* The transaction will be sent unconditionally to all peers, so using sendrawtransaction
* for manual rebroadcast may degrade privacy by leaking the transaction's origin, as
* nodes will normally not rebroadcast non-wallet transactions already in their mempool.
* A specific exception, RPC_TRANSACTION_ALREADY_IN_UTXO_SET, may throw if the transaction cannot be added to the mempool.
* Related RPCs: createrawtransaction, signrawtransactionwithkey
*
*/
function sendRawTransaction(params) {
var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]);
return (0, rpc_request_1.default)({ method: 'sendrawtransaction', params: methodParams }, bitcoind);
}
exports.sendRawTransaction = sendRawTransaction;