The network name (string) to be converted
A string
representing the CAIP chain id for the provided network name
const previewnetChainId = networkNameToCAIPChainId('previewnet')
console.log(previewnetChainId) // HederaChainId.Previewnet
const devnetChainId = networkNameToCAIPChainId('devnet')
console.log(devnetChainId) // HederaChainId.Devnet
Generated using TypeDoc
Converts a network name to a CAIP chain id.
If no mapping is found, returns the CAIP chain id for
LedgerId.LOCAL_NODE
.