惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
J
Java Code Geeks
Blog — PlanetScale
Blog — PlanetScale
F
Fortinet All Blogs
腾讯CDC
大猫的无限游戏
大猫的无限游戏
Jina AI
Jina AI
WordPress大学
WordPress大学
雷峰网
雷峰网
小众软件
小众软件
D
DataBreaches.Net
V
Visual Studio Blog
博客园 - Franky
IT之家
IT之家
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog RSS Feed
博客园 - 聂微东
T
Tailwind CSS Blog
有赞技术团队
有赞技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Microsoft Security Blog
Microsoft Security Blog
G
Google Developers Blog
云风的 BLOG
云风的 BLOG

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
Solana Week 2: From Terminal Logs to a Live Browser Dashb...
Shaun · 2026-05-03 · via DEV Community

I just finished my second week of the #100DaysOfSolana challenge, and it’s been a massive shift in perspective. If the first week was about understanding the what (wallets and Lamports), this week was all about the how—specifically, pulling that data off the chain and showing it to the world.

Here’s a breakdown of what I’ve been building and the discovery moments I had along the way.

The Mental Shift: The Public Database

Before starting, I expected blockchain data to be cryptic and hard to reach. The reality is that Solana feels like a globally distributed public database. In a traditional app, your data is tucked away in a private SQL or NoSQL database managed by a backend server. On Solana, everything is an account and accounts are public by default; anyone with an RPC connection can read the state of an account at any time.

The CLI vs. The Frontend

My week was a game of two halves: working in the terminal and building in the browser.

1. Reading Balances

I started by checking address balances via the Solana CLI using simple commands like solana balance. But the real magic happened when I moved this into a JavaScript frontend. Using the @solana/web3.js library, I established a Connection to the cluster and used the getBalance method to fetch data programmatically.

The Surprise:

I learned that Solana doesn't store balances as "1 SOL." It uses Lamports—the smallest unit of SOL. To show a user their actual balance, you have to divide the result by the LAMPORTS_PER_SOL constant:

SOL = Lamports / 10^9

Enter fullscreen mode Exit fullscreen mode

2. Tracking Transactions

Next, I moved on to account history.

  • In the Terminal: I logged raw transaction data to see the flow of SOL in real-time.
  • In the Browser: I built a dashboard to display these transactions as a readable list.

What Clicked: Reading transactions is a two-step process. You first fetch a list of signatures (transaction IDs) using getSignaturesForAddress. Then, you fetch the actual transaction details using getParsedTransaction. I also discovered a built-in limit: you can only fetch 1,000 signatures at a time, so you have to use pagination with the before parameter if you want the full history.

Devnet vs. Mainnet: The Reality Check

The most important milestone was comparing data across Devnet (the playground) and Mainnet-beta (the real deal).

Feature Devnet Mainnet-beta
SOL Value $0 (Free airdrops) Real market value
Rate Limits Permissive for testing Highly restrictive on public nodes
Purpose Testing and Demos Production Apps

A Big Lesson:
I realized that while public RPC endpoints are great for learning, a real dashboard on Mainnet-beta needs a private RPC provider to avoid Too Many Requests (429) errors, as public endpoints are heavily throttled.

What’s Next?

I’m still getting my head around Commitment Levels—balancing the speed of a "processed" transaction with the absolute certainty of a finalized one. Next week, I'm diving into Programs and how to write data back to the chain.

If you're also on this journey, let's connect!