UNPKG

bitcoin-cli-ts

Version:

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

18 lines (17 loc) 776 B
// Auto synced from github actions. Don't change this file import { __rest } from "tslib"; import request from '../../rpc-request'; /** * 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) { var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]); return request({ method: 'createrawtransaction', params: methodParams }, bitcoind); }