Wallet Intergration
In this section, we will provide sample snippets for you to use to connect to your dApp on Zetrix. Here we provide support for both browser based interaction (Chromium-based browsers only) as well as mobile wallet interaction.
Browser-based connection
To use the following snippet, you will have to first install the Zetrix Chrome wallet here. Once you have installed, you can connect using the Zetrix object within the Window global object. The following snippet can be used to connect your dApp to the Zetrix wallet:
Mobile wallet connection
For mobile wallet users, you will have to install the zetrix-connect-wallet-sdk. In order to test your code, you will have to install the Zetrix mobile wallet which are available on both iOS and Android. For mobile wallet connection to your dApp, the following piece of snippet can be referred (the following snippet are pieces of code written in Vue.js):
Last updated