Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BankAPI

Hierarchy

  • BaseAPI
    • BankAPI

Index

Constructors

Methods

Constructors

constructor

  • new BankAPI(c: APIRequester): BankAPI

Methods

balance

  • balance(address: string, params?: Partial<PaginationOptions & APIParams>): Promise<[Coins, Pagination]>
  • Look up the balance of an account by its address.

    Parameters

    • address: string

      address of account to look up.

    • params: Partial<PaginationOptions & APIParams> = {}

    Returns Promise<[Coins, Pagination]>

total

  • total(params?: Partial<PaginationOptions & APIParams>): Promise<[Coins, Pagination]>
  • Get the total supply of tokens in circulation for all denominations.

    Parameters

    • params: Partial<PaginationOptions & APIParams> = {}

    Returns Promise<[Coins, Pagination]>