koinos-rpc
Version:
Typescript library to communicate with Koinos API via RPC
18 lines (17 loc) • 635 B
TypeScript
import { Client } from '../Client';
export declare class Token {
private readonly client;
private readonly contractId;
private readonly precision;
private readonly symbol;
constructor(client: Client, contractId: string, precision: number, symbol: string);
static create(client: Client, contractId: string): Promise<Token>;
private static encodeArgs;
private static call;
private static getPrecision;
private static getSymbol;
private static getBalance;
getPrecision(): Promise<number>;
getSymbol(): Promise<string>;
getBalance(address: string, raw?: boolean): Promise<string>;
}