UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

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

14 lines 598 B
// Auto synced from github actions. Don't change this file import request from '../../rpc-request.js'; /** * 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) { const { bitcoind, ...methodParams } = params; return request({ method: 'converttopsbt', params: methodParams }, bitcoind); } //# sourceMappingURL=convert-to-psbt.js.map