Prerequisites
Last updated
Last updated
To access CHZ, fan tokens, and other Chiliz Chain content on your users' wallet, you need to configure your dApp to access Chiliz Chain et allow users to connect their wallet to it.
To achieve that, you can set your environment up with and the (you can use npm install viem
once Node.js is installed).
Before starting a blockchain request, you MUST add this piece of code in order to initiate Viem and connect to Chiliz Chain via the RPC endpoint of your choice.
You only need this code once in your codebase.
There are several that you can choose from.
Before interacting with Chiliz Chain, you must implement in order for users to log in to you dApp.
Once their wallet is connected, your dApp will be able to retrieve the user's wallet information, and possibly send data such as NFTs, tokens, etc.
If you want to allow your users to easily select the Socios.com Wallet, you can display it as an option in the WalletConnect pop-up. This pop-up appears in most "Connect Wallet" buttons online.
To display the Socios.com Wallet option, add the following line to the featuredWalletsIds
option in your WalletConnect initialization code:
If your "Connect Wallet" code does not use WalletConnect/Reown, contact us so that we can help you out!
If you have any question or a specific configuration need, : we will be happy to help you!
NOTE: WalletConnect is now know as .
The featureWalletIds
option is part of the createAppKit
function.
Learn more about it .