Wrapper around the Cluster enum which provides a URL for each cluster including the development cluster that Luzid is running. This is similar to the @solana/web3.js Cluster except that the web3 version does not include the development cluster.

Implements

Constructors

Properties

grpcCluster: Cluster

The underlying grpc cluster used by Luzid only visible to the Luzid SDK itself.

Development: LuzidCluster = ...

Local/development cluster, use this for transactions and queries against the locally running validator running inside the Luzid App.

Devnet: LuzidCluster = ...

Solana devnet cluster

MainnetBeta: LuzidCluster = ...

Solana mainnet cluster

Testnet: LuzidCluster = ...

Solana testnet cluster

Accessors

  • get apiUrl(): "http://127.0.0.1:8899" | "https://api.testnet.solana.com" | "https://api.mainnet-beta.solana.com" | "https://api.devnet.solana.com"
  • Gets the URL for the specific Solana cluster.

    Returns "http://127.0.0.1:8899" | "https://api.testnet.solana.com" | "https://api.mainnet-beta.solana.com" | "https://api.devnet.solana.com"

Methods

Generated using TypeDoc