Appearance
Documentation / js-sdk-core / getSolanaClusterDisplayName
Function: getSolanaClusterDisplayName()
getSolanaClusterDisplayName(
name
):"Solana"
|"Testnet"
|"Devnet"
Get the display name for a Solana cluster. This is used in the UI to show the cluster name. Users don't know/care what mainnet-beta is, they just want to see "Solana". "Testnet" and "Devnet" are meant for devs, they will know what it means (hopefully)
Parameters
• name: Cluster
The cluster name
Returns
"Solana"
| "Testnet"
| "Devnet"