@arrangedev/detect-cluster
v1.0.1
Published
Get the current SVM cluster you're on
Readme
Supported Clusters
- Solana
- Mainnet Beta
- Testnet
- Devnet
- Eclipse
- Mainnet Beta
- Testnet
- Devnet2
Installation
Install via your favorite package manager:
npm install @arrangedev/detect-cluster
Additionally, you can load the source code via unpkg:
https://unpkg.com/@joeymeere/dreamcast@latest
Usage
import { getClusterName } from "@arrangedev/detect-cluster";
const cluster = await getClusterName("https://api.mainnet-beta.solana.com");
console.log(cluster); // solana/mainnet-beta