PlatformContext is an instance of the class that represents a specific Platform

Type Parameters

  • N extends Network

Hierarchy

Implements

Methods

  • Create a new Protocol Client instance by protocol name using the RPC connection to determine the network

    Type Parameters

    • PN extends keyof ProtocolToPlatformMapping

    Parameters

    • protocol: PN
    • rpc: any

    Returns Promise<ProtocolImplementation<"Evm", PN>>

  • Get the underlying ProtocolInitializer to construct yourself

    Type Parameters

    • PN extends keyof ProtocolToPlatformMapping

    • C extends "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Arbitrum" | "Optimism" | "Gnosis" | "Base" | "Rootstock" | "Scroll" | "Mantle" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia"

    Parameters

    • protocol: PN

    Returns ProtocolInitializer<"Evm", PN, C>

  • Look up transaction logs and parse out Wormhole messages

    Type Parameters

    • C extends "Ethereum" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Arbitrum" | "Optimism" | "Gnosis" | "Base" | "Rootstock" | "Scroll" | "Mantle" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia"

    Parameters

    • chain: C
    • rpc: any
    • txid: string

    Returns Promise<WormholeMessageId[]>

  • provides access to the static attributes of the PlatformContext class

    Returns PlatformUtils<"Evm">

Generated using TypeDoc