UNPKG

bitcoin-cli-ts

Version:

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

15 lines (14 loc) 615 B
// Auto synced from github actions. Don't change this file import { __rest } from "tslib"; import request from '../../rpc-request'; /** * converttopsbt "hexstring" ( permitsigdata iswitness ) * * Converts a network serialized transaction to a PSBT. This should be used only with createrawtransaction and fundrawtransaction * createpsbt and walletcreatefundedpsbt should be used for new applications. * */ export function convertToPsbt(params) { var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]); return request({ method: 'converttopsbt', params: methodParams }, bitcoind); }