web3-react
Documentation - Talisman
Install
yarn add @talismn/web3react-v6-connector
Arguments
supportedChainIds?: number[]
Example
import { TalismanConnector } from '@talismn/web3react-v6-connector'
const talisman = new TalismanConnector({ supportedChainIds: [1, 3, 4, 5, 42] })
Errors
NoEthereumProviderError
Example
import { NoEthereumProviderError } from '@talismn/web3react-v6-connector'
function Component() {
const { error } = useWeb3React()
const isNoEthereumProviderError = error instanceof NoEthereumProviderError
// ...
}
UserRejectedRequestError
Example
import { UserRejectedRequestError } from '@talismn/web3react-v6-connector'
function Component() {
const { error } = useWeb3React()
const isUserRejectedRequestError = error instanceof UserRejectedRequestError
// ...
}