UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

Auto-generated Bitcoin client library for bitcoind JSON-RPC API

17 lines 766 B
// Auto synced from github actions. Don't change this file import request from '../../rpc-request.js'; /** * createrawtransaction [{"txid":"hex","vout":n,"sequence":n},...] [{"address":amount,...},{"data":"hex"},...] ( locktime replaceable ) * * Create a transaction spending the given inputs and creating new outputs. * Outputs can be addresses or data. * Returns hex-encoded raw transaction. * Note that the transaction's inputs are not signed, and * it is not stored in the wallet or transmitted to the network. * */ export function createRawTransaction(params) { const { bitcoind, ...methodParams } = params; return request({ method: 'createrawtransaction', params: methodParams }, bitcoind); } //# sourceMappingURL=create-raw-transaction.js.map