I'm building a platform where users play games and receive tokens. Once user have some tokens I'd like to have a "claim" button to transfer (or should I say mint?) these tokens to user's phantom wallet.
How to do it ? I'm a bit lost
So far :
- I've create the frontend, added the wallet-adapter-react, everything seems fine with the wallet
- I've created my token on the devnet using the spl-token cli (
- Trying to play with
@solana/spl-tokenpackage in react but no success
And ye ending up stuck on the onClick of the claim button. I'd like the user to pay the fees and then mint a specific amount of my token previously created with the CLI.
is it even possible with client code only or should I look at smart contracts for this ?
Thanks for your help