This repository contains the source code for the implementation using the web3.js SDK.
balance.ts
: Contains the logic for fetching and displaying the balance of a Solana wallet.wallet.ts
: Provides functionalities related to Solana wallet operations.token.ts
: Create a token on Solana Blockchain.
- Clone the repository:
git clone https://github.com/akshatcoder-hash/solana-campus-connect-s2.git
- Navigate to the project directory:
cd solana-campus-connect-s2
- Install the required dependencies:
npm i
- First create a wallet using
ts-node wallet.ts
This will create a local wallet into a file named walet.json
.
- Now you can fetch the wallet's balance using
ts-node balance.ts