bitcoin-cli-ts
Version:
Auto-generated Bitcoin client library for bitcoind JSON-RPC API
15 lines (14 loc) • 680 B
JavaScript
// Auto synced from github actions. Don't change this file
import { __rest } from "tslib";
import request from '../../rpc-request';
/**
* createwalletdescriptor "type" ( {"internal":bool,"hdkey":"str",...} )
*
* Creates the wallet's descriptor for the given address type. The address type must be one that the wallet does not already have a descriptor for.
* Requires wallet passphrase to be set with walletpassphrase call if wallet is encrypted.
*
*/
export function createWalletDescriptor(params) {
var bitcoind = params.bitcoind, methodParams = __rest(params, ["bitcoind"]);
return request({ method: 'createwalletdescriptor', params: methodParams }, bitcoind);
}