Sol.College

Structure lesson

Easy-gas

What it does

From the project README:

EasyGas is a powerful dashboard application that helps users optimize Solana blockchain transactions by tracking network congestion and recommending appropriate priority fees. This tool provides real-time metrics and historical data to help you make informed decisions about when to execute transactions and what fee levels to set.
Original
Japhetjohn/Easy-gas
SuperStack fork
Blockchains/Easy-gas @ 392aded
Stars
1
Last push (original)
2025-05-07
Languages
TypeScript, Python, Shell, CSS, HTML, Dockerfile
Detected stack
web3.js
Categories
Other
Licence
MIT

Architecture

86 source files. By extension: .tsx ×65, .ts ×19, .js ×1, .py ×1.

Top-level directorySource files
client74
server6
(root)4
shared1
python-backend1

Where the Solana code lives

Source files that import a Solana SDK, ranked by how many Solana APIs they use, with the APIs each one calls. Read them in this order to see how the app talks to the chain.

FileSolana APIs used
client/src/lib/solanaHelpers.tsVersionedTransaction, Connection, PublicKey, TransactionMessage, getLatestBlockhash, transfer
client/src/hooks/useWallet.tsTransaction, PublicKey, Connection, useWallet, getBalance
client/src/hooks/useSolanaConnection.tsConnection

Dapp: devnet deploy pending

⏳ Devnet deploy pending — goes live when the devnet wallet is topped up. This fork's own dapp is not deployed yet, so there is no program address or transaction to show. It is queued in dapp-queue.txt; once devnet SOL is available it is deployed, exercised with real devnet transactions, and this section switches to the live dapp at /dapps/easy-gas/. Until then, the lesson and step-by-step guide below are complete, and you can run it locally with the commands below.

How to run, build and test

These commands come from the repo's own manifests (package.json scripts, Anchor.toml, Cargo, go.mod, Makefile). Check the README for prerequisites and environment variables.

DirectoryCommandRuns
.npm run devNODE_ENV=development tsx server/index.ts
.npm run startNODE_ENV=production node dist/index.js
.npm run buildvite build && esbuild server/index.ts --platform=node --packages=external --bundle --format=esm --outdir=dist

What you could build from it

Used in lessons