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 WormholeRegistry.ProtocolToInterfaceMapping<"Mainnet" | "Testnet" | "Devnet", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia">

    Parameters

    • protocol: PN
    • rpc: any

    Returns Promise<ProtocolInstance<"Algorand", PN, N>>

  • Get the underlying ProtocolInitializer to construct yourself

    Type Parameters

    • PN extends keyof WormholeRegistry.ProtocolToInterfaceMapping<"Mainnet" | "Testnet" | "Devnet", "Solana" | "Btc" | "Algorand" | "Sui" | "Aptos" | "Near" | "Ethereum" | "Terra" | "Bsc" | "Polygon" | "Avalanche" | "Oasis" | "Aurora" | "Fantom" | "Karura" | "Acala" | "Klaytn" | "Celo" | "Moonbeam" | "Neon" | "Terra2" | "Injective" | "Osmosis" | "Arbitrum" | "Optimism" | "Gnosis" | "Pythnet" | "Xpla" | "Base" | "Sei" | "Rootstock" | "Scroll" | "Mantle" | "Blast" | "Xlayer" | "Linea" | "Berachain" | "Seievm" | "Wormchain" | "Cosmoshub" | "Evmos" | "Kujira" | "Neutron" | "Celestia" | "Stargaze" | "Seda" | "Dymension" | "Provenance" | "Sepolia" | "ArbitrumSepolia" | "BaseSepolia" | "OptimismSepolia" | "Holesky" | "PolygonSepolia">

    Parameters

    • protocol: PN

    Returns ProtocolInitializer<"Algorand", PN, "Mainnet" | "Testnet" | "Devnet", "Algorand">

  • Look up transaction logs and parse out Wormhole messages

    Type Parameters

    • C extends "Algorand"

    Parameters

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

    Returns Promise<WormholeMessageId[]>

  • provides access to the static attributes of the PlatformContext class

    Returns PlatformUtils<"Algorand">

Generated using TypeDoc