- #TRUST WALLET BROWSER HOW TO#
- #TRUST WALLET BROWSER INSTALL#
- #TRUST WALLET BROWSER REGISTRATION#
- #TRUST WALLET BROWSER CODE#
#TRUST WALLET BROWSER CODE#
The wallet connection works via deficonnect, meaning that it does not require any additional code besides the code that you have already written to make your Dapp work with the DeFi Wallet’s browser extension. Once this is done, your wallet may be accessed directly from within the Dapp browser.
#TRUST WALLET BROWSER REGISTRATION#
It usually takes 24h for this registration to happen. You may request to allow-list a staging domain and a production domain. Once the Dapp is live, you need to register it with using this form. This is because your Dapp must be allow-listed first.
But your app does not yet connect automatically with the user’s wallet from within the DeFi Wallet’s mobile Dapp browser. Once you have followed the above steps, users should be able to connect to your Dapp via the DeFi Wallet browser extension (on desktop) or via Wallet Connect (on mobile).
#TRUST WALLET BROWSER HOW TO#
How to request allow-listing by the DeFi Wallet team You can also refer to the README.md file for more details.
#TRUST WALLET BROWSER INSTALL#
Sounds complicated? In order to make it easier for you, here is a code repository where you can see all these connection methods in action, and the code required to make them happen.Ĭlone the repository to your machine, execute npm install and then npm start, and you should be able to play with the following connection methods by opening a web page at localhost:3000: For the Trust Wallet via Wallet Connect (browser), you need the Wallet Connect SDK.The Web3 provider is “injected” in the browser and accessible via window.ethereum. For the MetaMask (browser or mobile) and for Trust Wallet’s mobile Dapp browser, you don’t need any SDK.For the DeFi Wallet, you need the deficonnect npm package which takes care of DeFi Wallet connections in the browser or on mobile.In order to create these objects in your ReactJS app, you are going to need some SDKs: A Web3 Signer in ethers is an abstraction of an Ethereum Account, which can be used to sign messages and transactions and send signed transactions to the Ethereum Network to execute state changing operations.A Web3 Provider is an abstraction of a connection to the Ethereum network, providing a concise, consistent interface to standard Ethereum node functionality.Most Ethereum and Cronos developers use ReactJS for the front-end, and many of them use the ethers.js library to manage Web3 functionalities. Under the hood, your front-end application needs a Web3 provider. On mobile: the user will usually connect from within the Trust Wallet’s mobile Dapp browser.In the desktop browser: the user will usually connect by scanning a Wallet Connect QR code.On mobile: the user will usually connect from within MetaMask’s mobile Dapp browser.In the desktop browser: the user will usually connect via the MetaMask browser extension.On mobile, within the DeFi Wallet’s Dapp browser: if your Dapp has been allow-listed by the team, the user will be automatically connected to it when they open the Dapp in the mobile Dapp browser.On mobile, within the web browser (Chrome, Safari): the user can connect by requesting a direct connection to the DeFi Wallet, or by requesting a Wallet Connect connection.In the desktop browser: the user can connect via the DeFi Wallet’s browser extension or by scanning a Wallet Connect QR code.
If you are a Dapp developer, the way that your users are going to connect their wallet to your application is going to vary depending on the wallet, device and browser that they are using.Īll 3 wallets that support Cronos - DeFi Wallet, MetaMask, and Trust Wallet - have a mobile Dapp browser, which greatly enhances the mobile user experience. The user experience is the same as on other EVM-compatible blockchains. It it is not endorsed by Cronos,, MetaMask or Trust Wallet. We share a repository that you can examine to better understand how the various connection methods work, and share some tips on what you need to do when your code is ready.
In this post, we describe how Cronos users can connect to your Dapp with either of these 3 crypto wallets. Other wallets include imToken, Infinity Wallet, BC Vault and several others (see Cronos ecosystem page). Cronos is an EVM-compatible chains and as such, it is supported by three of the leading EVM-compatible self-custodial crypto wallets: DeFi Wallet, MetaMask, and Trust Wallet.