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