After creating your unique API Key, include a single JS file with your configuration settings. And just initialize Assist.js on the first page of your Dapp.
Once initialized, Assist.js will return each user’s state on page load.
Keeping track of all of the possible user states is complex and error-prone. Things change on the fly. Instead, free yourself – and your team – from this never-ending headache and hours of follow-on support work. Let us handle all of the nuances and edge cases for you.
When end-users load your Dapp, we detect and report their current Web3 state. You can use this API to trigger specific actions in your Dapp. This API also powers our Onboarding Assistance capabilities.
Some Dapps don’t support mobile browsers. If the mobileDevice = TRUE you can choose where to direct the user.
Not all browsers support Dapp transactions. We keep a list of currently supported browsers so you don’t have to.
We detect MetaMask, Trust, Toshi, Cipher, Mist, Parity, Infura (including socket version) and localhost if you’re testing locally via Ganache.
Since a browser wallet is required to transact with most Dapps, we can make sure your end-user has installed MetaMask.
You can use this value to preemptively detect when transactions will fail due to insufficient balance.
Your end-user may have installed MetaMask, but to interact with your Dapp they need to log in. We’ll make sure they’re ready to transact.
Not only does your user need to be logged in, in newer versions of Web3 they must grant access to their wallet. We check for this.
Wallets can connect to different networks. We let you know which network the Wallet is currently connected to and make sure your users are directed to the right one.
Wallets can connect to different networks. As a developer, you can choose your Dapp’s preferred network, and we’ll make sure users are directed to the right one.
We let you optionally set a minimum ETH balance that is required for end-users to use your Dapp.
We keep track of account changes made by the user in MetaMask and look up the active wallet address.