Glitter SDK Server class.

Hierarchy

  • GlitterSDKServer

Constructors

  • Creates a new instance of the GlitterSDKServer class.

    Parameters

    • Optional environment: GlitterEnvironment

      The Glitter environment.

    • Optional customRPCConfig: ChainRPCConfigs

      Custom RPC configurations.

    • Optional defaultLimit: number

      Default limit value.

    Returns GlitterSDKServer

Properties

_customRPCConfig?: ChainRPCConfigs
_defaultLimit: number = 25
_pollers: Map<BridgeNetworks, GlitterPoller> = ...
_sdk: GlitterBridgeSDK = ...

Accessors

Methods

  • Retrieves the API configuration for the specified network.

    Returns

    The API configuration or undefined if not found.

    Parameters

    • network: BridgeNetworks

      The bridge network.

    Returns undefined | ChainRPCConfig

  • Parses a transaction ID for the specified network and bridge type.

    Returns

    A promise that resolves to the parsed transaction or undefined if not found.

    Parameters

    • network: BridgeNetworks

      The bridge network.

    • txnID: string

      The transaction ID to parse.

    • type: BridgeType

      The bridge type.

    Returns Promise<undefined | PartialTxn>

  • Verifies a partial bridge transaction.

    Returns

    A promise that resolves to true if the transaction is verified, false otherwise.

    Parameters

    • txn: PartialTxn

      The partial bridge transaction to verify.

    Returns Promise<boolean>

Generated using TypeDoc