@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
17 lines • 695 B
JavaScript
// Auto synced from github actions. Don't change this file
import request from '../../rpc-request.js';
/**
* 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) {
const { bitcoind, ...methodParams } = params;
return request({ method: 'walletpassphrase', params: methodParams }, bitcoind);
}
//# sourceMappingURL=wallet-passphrase.js.map