Interface OnlineDataProvider

Interface for online data providers.

interface OnlineDataProvider {
    getBalance(address, assets?): Promise<Balance[]>;
    getFeeRates(): Promise<FeeRates>;
    getTransactionData(txId, assetAddress?): Promise<Tx>;
    getTransactions(params): Promise<TxsPage>;
}

Methods

  • Get the balance for a given address.

    Parameters

    • address: string

      The address to get the balance for.

    • Optional assets: Asset[]

      (Optional) An array of assets to get the balance for.

    Returns Promise<Balance[]>

    A promise that resolves to an array of balances.

  • Get transaction data based on its ID.

    Parameters

    • txId: string

      The ID of the transaction.

    • Optional assetAddress: string

      (Optional) The address of the asset.

    Returns Promise<Tx>

    A promise that resolves to the transaction data.

Generated using TypeDoc