@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
18 lines • 945 B
JavaScript
// Auto synced from github actions. Don't change this file
import request from '../../rpc-request.js';
/**
* 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) {
const { bitcoind, ...methodParams } = params;
return request({ method: 'sendrawtransaction', params: methodParams }, bitcoind);
}
//# sourceMappingURL=send-raw-transaction.js.map