Mobile Apps on Asset Chain
Last updated
Last updated
In this section, we are going to build a demo application using React Native, a popular framework for creating mobile apps that work on both iOS and Android platforms. The development environment we will use is Expo, which simplifies the process of building and testing React Native applications by providing tools and services for running the app on devices and emulators without needing to deal with complex setup processes. The application will connect to the Assetchain testnet network. The application will enable users to send test RWA native tokens
Before you begin, you need to install the following tools:
To get started with Asset Chain Mobile Demo App, follow the steps below:
Clone this repo & install dependencies
Add enivoronmental Variables. To connect your application to WalletConnect, you'll need to create a project on the WalletConnect Dashboard and obtain the Project ID.
Visit the WalletConnect Dashboard
If you don't have an account, sign up with your email and create a new account. If you already have an account, log in.
After logging in, you’ll see an option to create a new project.
Click on "Create" and fill in the necessary details, such as the project name
Once the project is created, you’ll be redirected to the project’s dashboard.
In the project dashboard, you’ll find the Project ID under the project details.
Copy the Project ID. You will use this ID in your ReactJS project to configure WalletConnect.
Generate .env file to your project root folder by running the command:
In your .env file generated set WALLECT_CONNECT_PROJECTID to your Wallet conect project Id
Running Application To Start Application, Run the command
then, scan the QR code displayed on your terminal using the Expo Go app on your mobile device.
in the entry file (App.tsx)
The above code Snippet sets up the environment for a project using the WalletConnect. The app initializes a wagmiConfig object using the WalletConnect project ID (Ensure you obtain your project Id from Wallet Connect Cloud) and metadata for the dApp, and configures the Web3Modal interface for connecting external wallets to assetChainTestnet network which is imported from wagmi
To test the application Visit our Faucet to obtain test RWA and USDT tokens