web3-react-okx-connector
v1.0.1
Published
Okx wallet injected provider connector for web3-react@v6
Downloads
9
Maintainers
Readme
okx-connector
Okx injected provider API https://www.okx.com/web3/build/docs/sdks/chains/evm/provider
Usage with web3-react@^6.0.0
Install
yarn add web3-react-okx-connector
Arguments
supportedChainIds?: number[]
Example
import { InjectedConnector } from 'web3-react-okx-connector'
const injected = new InjectedConnector({ supportedChainIds: [1, 3, 4, 5, 42] })
Error
- NoOkxwalletProviderError
- UserRejectedRequestError