Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 772 Bytes

frame.md

File metadata and controls

38 lines (29 loc) · 772 Bytes

web3-react Documentation - Frame

Install

yarn add @web3-react/frame-connector

Arguments

supportedChainIds: number[]

Example

import { FrameConnector } from '@web3-react/frame-connector'

const frame = new FrameConnector({ supportedChainIds: [1] })

Errors

UserRejectedRequestError

Example

import { UserRejectedRequestError } from '@web3-react/frame-connector'

function Component () {
  const { error } = useWeb3React()
  const isUserRejectedRequestError = error instanceof UserRejectedRequestError
  // ...
}