https://github.com/blocto/solana-web3-demo
https://github.com/blocto/solana-web3-demo
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/blocto/solana-web3-demo
- Owner: blocto
- Created: 2021-05-30T03:17:30.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-06T03:18:21.000Z (over 2 years ago)
- Last Synced: 2024-12-29T00:16:02.061Z (6 months ago)
- Language: JavaScript
- Size: 1.82 MB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Solana Blocto account demo
This project demonstrates how to use @portto/solana-web3 in your webapp and interact with Solana.## Getting Started
### Setting up environment
In order for this demo to work, you have to setup the dependencies first:- **Install project dependencies**
Run `yarn` at project root.### Starting the services
- **Start demo webapp**
Run `yarn start` at project root and you will see the demo webapp running at `http://localhost:3000`## Diving into Demo
All the demo cases are located in `./src/demo`. Each component is responsible for one example interaction with Solana.- **Authenticate**: Handles sign in/out logic with Blocto Solana wallet
- **UserInfo**: Subscribes to `web3.currentUser()` and shows the connected user account information