useChainId
Hook for accessing and setting the current chain ID.
Returns
chainId
:number
- Current chain IDsetChainId
:(chainId: number) => void
- Function to update the chain ID
For any additional questions, please view our other knowledge base articles or contact a support team member via the chat button. Examples are for illustrative purposes only.
Learn More About AvaCloud | Download Case Studies | Schedule an AvaCloud Demo