Prerequisites
To play around with Chiliz chain, CHZ, fan tokens and your users' wallet content, you need to set your environment up as follows:
Download and install Node.js and npm.
Download and install the Viem library (you can use
npm install viem
).Choose a Chiliz Chain RPC endpoint (there are currently three that you can choose from).
Instantiate the RPC client
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. You need it only once in your code.
Allowing users to connect their wallet
Before interacting with Chiliz Chain, you show look into implementing a "Connect Wallet" button on you website or mobile app in order to retrieve the user's wallet address.
If you have any question or a specific configuration, please let us know: we will be happy to help.
Last updated