@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
22 lines (18 loc) • 551 B
text/typescript
// Auto synced from github actions. Don't change this file
import { Bitcoind } from '../../types.js'
import request from '../../rpc-request.js'
type AnalyzePsbtParams = {
bitcoind: Bitcoind
/* A base64 string of a PSBT */
psbt: string
}
/**
* analyzepsbt "psbt"
*
* Analyzes and provides information about the current status of a PSBT and its inputs
*
*/
export function analyzePsbt(params: AnalyzePsbtParams) {
const { bitcoind, ...methodParams } = params
return request({ method: 'analyzepsbt', params: methodParams }, bitcoind)
}