The main class of the fetcher service.

Hierarchy

  • BaseStateFetcher
    • EthereumStateFetcher

Constructors

Properties

accountDAL: PendingAccountStorage

The account info storage.

blockchainId: Blockchain = Blockchain.Ethereum
ethereumClient: EthereumClient

The solana RPC client to use.

fetchers: Record<string, BaseStateFetcherI>
pendingAccounts: PendingWorkPool<string[]>

Methods

  • Fetch signatures from accounts.

    Parameters

    • works: PendingWork<string[]>[]

      Txn signatures with extra properties as time and payload.

    Returns Promise<void>

  • Parameters

    • args: AddAccountEntityRequestArgs

    Returns Promise<void>

  • Parameters

    • args: DelAccountEntityRequestArgs

    Returns Promise<void>

  • Returns Promise<void>

  • Creates an account info fetcher. Allows to obtain the current state of the account

    Parameters

    • account: string

      Consists of the account address

    Returns Promise<void>

  • Returns Promise<void>

  • Removes an account info fetcher from the map and its existing requests.

    Parameters

    • account: string

      The account address to remove from the map.

    Returns Promise<void>

Generated using TypeDoc