UNPKG

@newcoin-foundation/newcoin.pool-js

Version:

js module to fetch data from the newcoin.pool smart contract

12 lines (11 loc) 541 B
import { GetCurrencyStats, GetCurrencyBalance, GetTableRowsPayload, UnstakePayload } from "../interfaces"; export declare class ChainApi { readonly nodeos_url: string; readonly contract: string; readonly fetch: any; constructor(nodeos_url: string, contract: string, fetch: any); getCurrencyStats(payload: GetCurrencyStats): Promise<any>; getCurrencyBalance(payload: GetCurrencyBalance): Promise<any>; getTableRows(payload: GetTableRowsPayload): Promise<any>; getUnstake(opts: UnstakePayload): Promise<any>; }