UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

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

26 lines (22 loc) 637 B
// Auto synced from github actions. Don't change this file import { Bitcoind } from '../../types.js' import request from '../../rpc-request.js' type CombinePsbtParams = { bitcoind: Bitcoind /* [ "psbt", (string) A base64 string of a PSBT ... ] */ txs: Array<unknown> } /** * combinepsbt ["psbt",...] * * Combine multiple partially signed Bitcoin transactions into one transaction. * Implements the Combiner role. * */ export function combinePsbt(params: CombinePsbtParams) { const { bitcoind, ...methodParams } = params return request({ method: 'combinepsbt', params: methodParams }, bitcoind) }