@kazeblockchain/kazejs
Version:
Javascript libraries for Kaze wallet
25 lines (17 loc) • 1 kB
TypeScript
import { Balance, Claims } from '../../wallet'
import { Fixed8 } from '../../utils'
import { net, PastTransaction } from './core';
/** Returns the appropriate Kazescan endpoint. */
export function getAPIEndpoint(net: net): string
/** Returns an appropriate RPC endpoint retrieved from a Kazescan endpoint. */
export function getRPCEndpoint(net: net): Promise<string>
/** Gat balances for an address. */
export function getBalance(net: net, address: string): Promise<Balance>
/** Get claimable amounts for an address. */
export function getClaims(net: net, address: string): Promise<Claims>
/** Gets the maximum amount of STREAM claimable after spending all KAZE. */
export function getMaxClaimAmount(net: net, address: string): Promise<Fixed8>
/** Get the current height of the light wallet DB */
export function getWalletDBHeight(net: net): Promise<number>
/** Get transaction history for an account */
export function getTransactionHistory(net: net, address: string): Promise<PastTransaction[]>