Get Started on Chiliz
Install Ramper Chiliz SDK
or
User signup & login
Calling await signIn(walletToUse)
launch the log in dialog and return a signInResult when the user successfully logs in or connects an account
Get logged-in user
Send Token
The following code demonstrates how to send a token from a wallet belonging to the signed in user or a connected wallet.
Get ethers.js compatible signer
Once you have obtained a Signer, you can use the familiar ethers.js functions to write your DApp. See https://docs.ethers.io/v5/api/signer/ for reference if you aren't already familiar with ethers.js
signTransaction
, signMessage
and sendTransaction
functions are implemented
We highly recommend you use Promise for the fields that need network access to be determined, such as nonce and gasLimit, etc.
If sendTransaction is triggered by a button, for example, and you perform all the accesses before actually calling sendTransaction, we've noticed the popup window for the user confirmation can be blocked by Safari.
Sign out
Users can log out or disconnect their wallet with:
Yup, it really is just that easy!
If there's any feature you would like to see or design patterns you would like for the Ramper team to adopt, come chat with us (see Introduction for ways to reach us).
NPM Source: https://www.npmjs.com/package/@ramper/chiliz