Build
Frontend Tutorials
toolkit
Function.getchainid

Function.getchainid

@zetachain/toolkit / getChainId

getChainId(this, chainNameOrAlias): null | number

Get chain ID from a chain label.

this: ZetaChainClient

ZetaChainClient instance.

chainNameOrAlias: string

Chain label like goerli_testnet

null | number

getChainId.ts:10 (opens in a new tab)

Continue Learning

Continue with the next part or try a related tutorial

Feedback
How has your developer experience been?
Share your feedback and help improve it for everyone.