simple-nano-wallet
Version:
Benskalz' simple-nano-wallet rewritten in TypeScript with some additional features.
16 lines (15 loc) • 497 B
TypeScript
/**
* RPC client for Nano node with fallback server support
*/
declare class RPC {
private rpcURLs;
private workURLs;
private customHeaders;
constructor(rpcURL: string | string[], workURL: string | string[], customHeaders?: HeadersInit);
account_info(account: string): Promise<any>;
work_generate(hash: string): Promise<string>;
receivable(account: string): Promise<any>;
process(block: any, subtype: string): Promise<any>;
private execute;
}
export { RPC };