The LedgerId
object to be converted
A string
representing the CAIP chain id for the provided LedgerId
const mainnetChainId = ledgerIdToCAIPChainId(HederaChainId.Mainnet)
console.log(mainnetChainId) // LedgerId.PREVIEWNET
const testnetChainId = ledgerIdToCAIPChainId(HederaChainId.Testnet)
console.log(testnetChainId) // LedgerId.TESTNET
Generated using TypeDoc
Converts a LedgerId object to a CAIP chain id.
If no mapping is found, returns the CAIP chain id for
LedgerId.LOCAL_NODE
.