Skip to Content

isSolanaChain()

isSolanaChain(chainId): boolean

Defined in: utils/chainHelpers.ts:8 

Checks whether the given chain ID belongs to a Solana network. Supports common Solana network names: ‘devnet’, ‘testnet’, ‘mainnet-beta’, ‘mainnet’.

Parameters

chainId

string | number

The chain ID or chain name.

Returns

boolean

  • True if the chain ID corresponds to a Solana network, false otherwise.
Last updated on