btcd-client
Version:
A bitcoin core json rpc client
23 lines (22 loc) • 844 B
TypeScript
interface BitcoinCoreCredentials {
url: string;
username: string;
password: string;
}
export declare class BitcoinCoreClient {
private client;
private id;
constructor(credentials: BitcoinCoreCredentials);
private makeRequest;
getBlockchainInfo(): Promise<any>;
getWalletInfo(walletName: string): Promise<any>;
getNewAddress(walletName: string): Promise<any>;
getTransaction(walletName: string, params: any[]): Promise<any>;
listTransactions(walletName: string): Promise<any>;
listWallets(): Promise<any>;
restoreWallet(walletName: string, params: any[]): Promise<any>;
sendToAddress(walletName: string, params: any[]): Promise<any>;
unloadWallet(walletName: string, params: any[]): Promise<any>;
walletPassphrase(walletName: string, params: any[]): Promise<any>;
}
export {};