• Welcome


  • Build


  • Run a Node


  • Use


  • Tools


  • About


  • Support

  • Community

  • Parameters
  • Returns
  • Defined in
Build
Frontend Tutorials
toolkit
Function.getchainid

@zetachain/toolkit / getChainId

Function: getChainId()

getChainId(this, chainNameOrAlias): null | number

Get chain ID from a chain label.

Parameters

• this: ZetaChainClient

ZetaChainClient instance.

• chainNameOrAlias: string

Chain label like goerli_testnet

Returns

null | number

Defined in

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

© 2024 Meta Protocol, Inc

  • GitHub
  • Whitepaper
  • Explorer
  • Bug Bounty
  • Terms
  • Privacy Policy