bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
16 lines (15 loc) • 551 B
JavaScript
// Auto synced from github actions. Don't change this file
import { __rest } from "tslib";
import request from '../../rpc-request';
/**
* loadwallet "filename" ( load_on_startup )
*
* Loads a wallet from a wallet file or directory.
* Note that all wallet command-line options used when starting bitcoind will be
* applied to the new wallet.
*
*/
export function loadWallet(params) {
var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]);
return request({ method: 'loadwallet', params: methodParams }, bitcoind);
}