UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

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

21 lines 950 B
import { Bitcoind } from '../../types.js'; type SignRawTransactionWithKeyParams = { bitcoind: Bitcoind; hexstring: string; privkeys: Array<unknown>; prevtxs?: Array<unknown>; sighashtype?: string; }; /** * signrawtransactionwithkey "hexstring" ["privatekey",...] ( [{"txid":"hex","vout":n,"scriptPubKey":"hex","redeemScript":"hex","witnessScript":"hex","amount":amount},...] "sighashtype" ) * * Sign inputs for raw transaction (serialized, hex-encoded). * The second argument is an array of base58-encoded private * keys that will be the only keys used to sign the transaction. * The third 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. * */ export declare function signRawTransactionWithKey(params: SignRawTransactionWithKeyParams): Promise<any>; export {}; //# sourceMappingURL=sign-raw-transaction-with-key.d.ts.map