• Get the network of the connected Solana node

    Parameters

    • connection: Connection

      The connection to the Solana network

    Returns Promise<Network>

    The network of the connected Solana node

    If the network is not mainnet, devnet, or testnet