Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • InjectiveAccountsRPCClientImpl

Implements

Index

Constructors

Properties

rpc: Rpc

Methods

  • Provide historical trading rewards

    Parameters

    • request: { accountAddress?: string; epoch?: string }
      • Optional accountAddress?: string

        Account address for the rewards distribution

      • Optional epoch?: string

        The distribution epoch sequence number. -1 for latest.

    • Optional metadata: BrowserHeaders

    Returns internal.Promise<internal.RewardsResponse>

  • StreamSubaccountBalance streams new balance changes for a specified subaccount and denoms. If no denoms are provided, all denom changes are streamed.

    Parameters

    • request: { denoms?: string[]; subaccountId?: string }
      • Optional denoms?: string[]

        Filter balances by denoms. If not set, the balances of all the denoms for the subaccount are provided.

      • Optional subaccountId?: string

        SubaccountId of the trader we want to get the trades from

    • Optional metadata: BrowserHeaders

    Returns Observable<internal.StreamSubaccountBalanceResponse>

  • List subaccount balances for the provided denoms.

    Parameters

    • request: { denoms?: string[]; subaccountId?: string }
      • Optional denoms?: string[]

        Filter balances by denoms. If not set, the balances of all the denoms for the subaccount are provided.

      • Optional subaccountId?: string

        SubaccountId of the trader we want to get the trades from

    • Optional metadata: BrowserHeaders

    Returns internal.Promise<internal.SubaccountBalancesListResponse>

  • Get subaccount's deposits and withdrawals history

    Parameters

    • request: { denom?: string; endTime?: string; limit?: number; skip?: string; subaccountId?: string; transferTypes?: string[] }
      • Optional denom?: string

        Filter history by denom

      • Optional endTime?: string

        Upper bound of account transfer history's executedAt

      • Optional limit?: number

        Limit is used to specify the maximum number of items to be returned

      • Optional skip?: string

        Skip will skip the first n item from the result

      • Optional subaccountId?: string

        SubaccountId of the trader we want to get the history from

      • Optional transferTypes?: string[]

        Filter history by transfer type

    • Optional metadata: BrowserHeaders

    Returns internal.Promise<internal.SubaccountHistoryResponse>

  • Get subaccount's orders summary

    Parameters

    • request: { marketId?: string; orderDirection?: string; subaccountId?: string }
      • Optional marketId?: string

        MarketId is limiting order summary to specific market only

      • Optional orderDirection?: string

        Filter by direction of the orders

      • Optional subaccountId?: string

        SubaccountId of the trader we want to get the summary from

    • Optional metadata: BrowserHeaders

    Returns internal.Promise<internal.SubaccountOrderSummaryResponse>

Generated using TypeDoc