Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ApiClient

Refer to interface IApiClient

Hierarchy

  • ApiClient

Implements

Index

Properties

coins

coins: object

Type declaration

Methods

addCoin

buildTransaction

  • buildTransaction(coinType: string, from: string, to: string, value: BigNumber, options: any): Promise<any>

getAccountTokenBalance

  • getAccountTokenBalance(coinType: string, contractAddress: string, address: string): Promise<any>

getAccountTokenTransferHistory

  • getAccountTokenTransferHistory(coinType: string, address: string, symbolAddress: string, page?: number, size?: number, timestamp?: number): Promise<any>

getAccountTokens

  • getAccountTokens(coinType: string, address: string): Promise<any>

getBalance

  • getBalance(coinType: string, address: string): Promise<any>

getBlockByNumber

  • getBlockByNumber(coinType: string, blockNumber: string): Promise<any>

getBlockNumber

  • getBlockNumber(coinType: string): Promise<any>

getCoin

getCoinPrices

  • getCoinPrices(currency: string): Promise<any>

getTokenDetail

  • getTokenDetail(coinType: string, contractAddress: string): Promise<any>

getTokenIconUrl

  • getTokenIconUrl(coinType: string, tokenSymbol: string, contractAddress: string): string

getTopTokens

  • getTopTokens(coinType: string, topN?: number): Promise<any>

getTransactionExplorerUrl

  • getTransactionExplorerUrl(coinType: string, hash: any): string

getTransactionStatus

  • getTransactionStatus(coinType: string, hash: string): Promise<any>

getTransactionsByAddress

  • getTransactionsByAddress(coinType: string, address: string, page: number, size: number, timestamp?: number): Promise<any>

removeCoin

  • removeCoin(coinType: string): boolean

sameAddress

  • sameAddress(coinType: string, address1: string, address2: string): boolean

searchTokens

  • searchTokens(coinType: string, keyword: string): Promise<any>

sendTransaction

  • sendTransaction<T>(coinType: string, unsignedTx: any, signer: T, signerParams: any): Promise<any>