setChainId()
setChainId(
chainId):string|number
Defined in: utils/chainHelpers.ts:23
Turns a Solana chain, in any form accepted by isSolanaChain, into its CAIP-2 chain ID with the genesis hash
(see getSolanaChainId): devnet and solana:devnet become solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1. Other
chain IDs are returned unchanged.
Parameters
chainId
string | number
The original chain ID or name.
Returns
string | number
The CAIP-2 chain ID for Solana networks, otherwise the original value.
Last updated on