@solana/web3.js
    Preparing search index...

    Function clusterApiUrl

    • Retrieves the RPC API URL for the specified cluster

      Parameters

      • Optionalcluster: Cluster

        The cluster name of the RPC API URL to use. Possible options: 'devnet' | 'testnet' | 'mainnet-beta'

      • Optionaltls: boolean

        Use TLS when connecting to cluster.

      Returns string

      URL string of the RPC endpoint