Onboard
JavaScript library to easily onboard users to ethereum apps by enabling wallet selection, connection, wallet checks and real time state updates.
Install
npm install bnc-onboard
Quick Start
// set a variable to store instantiated web3let web3 // head to blocknative.com to create a keyconst BLOCKNATIVE_KEY = 'blocknative-api-key' // the network id that your dapp runs onconst NETWORK_ID = 1 // initialize onboardconst onboard = // Prompt user to select a walletawait onboard // Run wallet checks to make sure that user is ready to transactawait onboard
Documentation
For detailed documentation head to docs.blocknative.com