An open API service indexing awesome lists of open source software.

https://github.com/blocto/solana-web3-demo


https://github.com/blocto/solana-web3-demo

Last synced: 4 months ago
JSON representation

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