UNPKG

@vafanassieff/bitcoin-cli-ts

Version:

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

27 lines (23 loc) 687 B
// Auto synced from github actions. Don't change this file import { Bitcoind } from '../../types.js' import request from '../../rpc-request.js' type WalletPassphraseChangeParams = { bitcoind: Bitcoind /* The current passphrase */ oldpassphrase: string /* The new passphrase */ newpassphrase: string } /** * walletpassphrasechange "oldpassphrase" "newpassphrase" * * Changes the wallet passphrase from 'oldpassphrase' to 'newpassphrase'. * */ export function walletPassphraseChange(params: WalletPassphraseChangeParams) { const { bitcoind, ...methodParams } = params return request( { method: 'walletpassphrasechange', params: methodParams }, bitcoind ) }