PHP WebShell
Текущая директория: /opt/BitGoJS/modules/express/dist/lightning
Просмотр файла: lndSignerClient.d.ts
import * as https from 'https';
import { BakeMacaroonResponse, GetWalletStateResponse, InitWalletResponse } from './codecs';
/**
* Client for interacting with the LND signer.
*/
export declare class LndSignerClient {
readonly url: string;
readonly httpsAgent: https.Agent;
private constructor();
/**
* Create a new LndSignerClient.
*/
static create(walletId: string, config: {
lightningSignerFileSystemPath?: string;
}): Promise<LndSignerClient>;
/**
* Get the current state of the wallet from remote signer LND.
*/
getWalletState(): Promise<GetWalletStateResponse>;
/**
* Initialize the remote signer LND wallet with the given data.
*/
initWallet(data: {
wallet_password: string;
extended_master_key: string;
macaroon_root_key: string;
}): Promise<InitWalletResponse>;
/**
* Bake a macaroon with the given permissions from remote signer LND.
*/
bakeMacaroon(data: {
permissions: {
entity: string;
action: string;
}[];
}, header: {
adminMacaroonHex: string;
}): Promise<BakeMacaroonResponse>;
/**
* Unlock the wallet with the given wallet password.
*/
unlockWallet(data: {
wallet_password: string;
}): Promise<void>;
}
//# sourceMappingURL=lndSignerClient.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!