UNPKG

bitcoin-cli-ts

Version:

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

18 lines (17 loc) 710 B
// Auto synced from github actions. Don't change this file import { __rest } from "tslib"; import request from '../../rpc-request'; /** * walletpassphrase "passphrase" timeout * * Stores the wallet decryption key in memory for 'timeout' seconds. * This is needed prior to performing transactions related to private keys such as sending bitcoins * Note: * Issuing the walletpassphrase command while the wallet is already unlocked will set a new unlock * time that overrides the old one. * */ export function walletPassphrase(params) { var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]); return request({ method: 'walletpassphrase', params: methodParams }, bitcoind); }