@vafanassieff/bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
15 lines • 564 B
JavaScript
// Auto synced from github actions. Don't change this file
import request from '../../rpc-request.js';
/**
* walletlock
*
* Removes the wallet encryption key from memory, locking the wallet.
* After calling this method, you will need to call walletpassphrase again
* before being able to call any methods which require the wallet to be unlocked.
*
*/
export function walletLock(params) {
const { bitcoind, ...methodParams } = params;
return request({ method: 'walletlock', params: methodParams }, bitcoind);
}
//# sourceMappingURL=wallet-lock.js.map