Nutritious Pumpkin Meal

    TypeScript icon, indicating that this package has built-in type declarations

    0.1.12 • Public • Published

    Wallet Context

    Current version is 0.1.10 | version | description | | 0.1.12 | add rinkeby | 0.1.10 | add handle connect | 0.1.8 | remove eager connect, add utility fn

    This is an opinionated implementation fo web3react v8 library for Rome Terminal iframe widgets. This allows users to have multiple wallets active simultaneously but only have one priority wallet. The priority wallet is determined by the last wallet the user has activated.

    The package exposes the following

    1. WalletProvider - React Context Provider for the connectors
    2. useWallets - Hook that exposes setSelectedWallet function that updates the priority wallet
    3. useWeb3React - Hook that exposes the connector and hooks for the priority wallet
    4. SUPPORTED_WALLETS - An object map that contains all supported wallets by the package.

    Quick Start

    1. yarn add @romeblockchain/wallet
    2. If using React add 2 the following env variables. REACT_APP_INFURA_KEY and REACT_APP_ALCHEMY_KEY
    3. if using Next JS add 2 the following env variables instead. INFURA_KEY and ALCHEMY_KEY.


    1. Check /example folder for React example


    npm i @romeblockchain/wallet

    DownloadsWeekly Downloads






    Unpacked Size

    4.82 MB

    Total Files


    Last publish


    • eduardo-rbl
    • markball
    • ianrbl
    • iandjx