3

I am working on a web based game. And I want to connect Solana wallet to my website. How can I integrate Solana wallet adapter to my website. I've read Githubi but I don't understand where to write the codes or how to run them as I'm new to this stuff. What I want is as in the picture.enter image description here

2
  • 2
    you can reference this dapp scaffold to get an idea of where to start: github.com/solana-labs/dapp-scaffold
    – john
    May 9, 2023 at 1:13
  • How do I run the github folder after downloading it to my computer?
    – Treanater
    May 9, 2023 at 10:17

2 Answers 2

2

here is a solana game example with an anchor program: https://github.com/solana-developers/solana-game-starter-kits/tree/main/tiny-adventure/app

clone the repository, open it in visual studio code and then go into the folder tiny-adventure/app in the terminal and run

yarn install

and then

yarn dev

This will start up the next js client and you can play via wallet adapter.

You may need to install node and yarn https://nodejs.org/en/download https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable and maybe solana cli: https://docs.solana.com/de/cli/install-solana-cli-tools

2

Here's an easy to follow guide for integrating solana wallet adapter in your dapp.

https://www.solanawalletadapter.xyz/

Hope this helps!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.