bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
20 lines (19 loc) • 778 B
JavaScript
;
// Auto synced from github actions. Don't change this file
Object.defineProperty(exports, "__esModule", { value: true });
exports.walletLock = void 0;
var tslib_1 = require("tslib");
var rpc_request_1 = tslib_1.__importDefault(require("../../rpc-request"));
/**
* 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.
*
*/
function walletLock(params) {
var bitcoind = params.bitcoind, methodParams = tslib_1.__rest(params, ["bitcoind"]);
return (0, rpc_request_1.default)({ method: 'walletlock', params: methodParams }, bitcoind);
}
exports.walletLock = walletLock;