Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 568 Bytes

portis.md

File metadata and controls

24 lines (18 loc) · 568 Bytes

web3-react Documentation - Portis

Install

yarn add @web3-react/portis-connector

Arguments

dAppId: string
networks: (number | { chainId: string; [key: string]: any })[]
config?: any

Example

import { PortisConnector } from '@web3-react/portis-connector'

const portis = new PortisConnector({ dAppId: '...', networks: [1, 100] })

Note: Once the connector has been activated, the Portis SDK instance can be accessed under the .portis property.