useDApp icon indicating copy to clipboard operation
useDApp copied to clipboard

Not found the chainId for Flare network

Open mkdev5 opened this issue 3 years ago • 1 comments

Describe the bug I am trying to build a dApp on Flare network, but I can't find the chainId. How can I solve the issue?

mkdev5 avatar Feb 05 '23 00:02 mkdev5

The flare network was added recently and is not released yet. You can use the dev version (pnpm add @usedapp/core@dev) to access it like this:

import { Flare } from '@usedapp/core'
console.log(Flare.chainId) // 14

pawelpolak2 avatar Feb 08 '23 16:02 pawelpolak2