interface UtxoOnlineDataProvider {
    broadcastTx(txHex): Promise<string>;
    getBalance(address, assets?): Promise<Balance[]>;
    getConfirmedUnspentTxs(address): Promise<UTXO[]>;
    getFeeRates(): Promise<FeeRates>;
    getTransactionData(txId, assetAddress?): Promise<Tx>;
    getTransactions(params): Promise<TxsPage>;
    getUnspentTxs(address): Promise<UTXO[]>;
}

Hierarchy

  • OnlineDataProvider
    • UtxoOnlineDataProvider

Implemented by

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 the fee rates.

    Returns Promise<FeeRates>

    A promise that resolves to the fee rates.

  • 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.

  • Get transactions based on provided parameters.

    Parameters

    • params: TxHistoryParams

      The parameters for fetching transactions.

    Returns Promise<TxsPage>

    A promise that resolves to a page of transactions.

Generated using TypeDoc