@evefrontier/dapp-kit - v0.1.10-alpha.3
    Preparing search index...

    Function getSuiGraphqlEndpoint

    • Get the Sui GraphQL query endpoint URL for the given network.

      Resolves against the active event transport: the sse transport uses the subscription-capable ("cockroach") endpoint for its queries too, while grpc (and the default) use the standard endpoint.

      Unknown networks fall back to testnet to avoid returning undefined.

      Parameters

      • env: string = DEFAULT_GRAPHQL_NETWORK

        Network identifier (testnet, devnet, mainnet). Defaults to testnet.

      Returns string

      The GraphQL endpoint URL