@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
16 lines • 870 B
JavaScript
// Auto synced from github actions. Don't change this file
import request from '../../rpc-request.js';
/**
* signrawtransactionwithwallet "hexstring" ( [{"txid":"hex","vout":n,"scriptPubKey":"hex","redeemScript":"hex","witnessScript":"hex","amount":amount},...] "sighashtype" )
*
* Sign inputs for raw transaction (serialized, hex-encoded).
* The second optional argument (may be null) is an array of previous transaction outputs that
* this transaction depends on but may not yet be in the block chain.
* Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.
*
*/
export function signRawTransactionWithWallet(params) {
const { bitcoind, ...methodParams } = params;
return request({ method: 'signrawtransactionwithwallet', params: methodParams }, bitcoind);
}
//# sourceMappingURL=sign-raw-transaction-with-wallet.js.map