Solana Poller Common class.

Hierarchy

  • SolanaPollerCommon

Constructors

Methods

  • Gets the pre-balance from the transaction and post-balance.

    Returns

    The pre-balance information.

    Parameters

    • txn: ParsedTransactionWithMeta

      The parsed transaction with metadata.

    • postBalance: undefined | TokenBalance

      The post-balance information or undefined if not available.

    Returns undefined | null | number

  • Gets the Solana address with the corresponding amount from the transaction.

    Returns

    An array containing the Solana address and the corresponding amount.

    Parameters

    • sdkServer: GlitterSDKServer

      The Glitter SDK server instance.

    • txn: ParsedTransactionWithMeta

      The parsed transaction with metadata.

    • token: null | string

      The token address or null if not available.

    • isDeposit: boolean

      Indicates whether the transaction is a deposit or not.

    Returns [string, number]

Generated using TypeDoc