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

推荐订阅源

Martin Fowler
Martin Fowler
A
About on SuperTechFans
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
aimingoo的专栏
aimingoo的专栏
T
The Blog of Author Tim Ferriss
IT之家
IT之家
罗磊的独立博客
博客园_首页
月光博客
月光博客
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Last Week in AI
Last Week in AI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
量子位
Hugging Face - Blog
Hugging Face - Blog
G
Google Developers Blog
博客园 - 叶小钗
H
Help Net Security
N
Netflix TechBlog - Medium
B
Blog
Engineering at Meta
Engineering at Meta
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
V
V2EX
Vercel News
Vercel News
博客园 - 三生石上(FineUI控件)

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 Transactions Through a Backend Developer’s Eye
Ajiri Osiobe · 2026-05-27 · via DEV Community

Ajiri Osiobe

Coming from Web2 backend systems, I used to think blockchain interactions were just API calls: send a request, get a response, and move on.

Solana quickly broke that assumption.

When I built a simple SOL transfer script using @solana/kit, I realized a Solana transaction is not a request. It’s a fully constructed, signed, time-bound execution unit that the network will attempt to run exactly as specified.

Unlike Web2, where the server hides most complexity, Solana forces you to explicitly define almost everything.

You build the transaction message step by step, attach instructions, set the fee payer, and bind it to a recent blockhash that determines how long the transaction remains valid:

const transactionMessage = pipe(
  createTransactionMessage({ version: 0 }),
  (tx) => setTransactionMessageFeePayerSigner(signer, tx),
  (tx) => setTransactionMessageLifetimeUsingBlockhash(latestBlockhash, tx),
  (tx) => appendTransactionMessageInstruction(
    getTransferSolInstruction({
      source: signer,
      destination,
      amount: lamportAmount,
    }),
    tx
  )
);

Enter fullscreen mode Exit fullscreen mode

What stood out immediately is that nothing is implicit. Even basic assumptions from Web2—like request validity, authentication flow, or execution context—must be expressed directly in the transaction structure.

After building the message, you still have to explicitly sign and serialize it:

const signedTransaction = await signTransactionMessageWithSigners(transactionMessage);
const wireTransaction = getBase64EncodedWireTransaction(signedTransaction);

Enter fullscreen mode Exit fullscreen mode

This separation is important. In Web2 systems, signing is often hidden behind middleware (sessions, JWTs, auth guards). In Solana, signing is a first-class step. The transaction cannot exist in the network without it.

Then comes another major mental shift: submitting a transaction is not the end of the process.

On Solana, you don’t just send a request and receive a response. You submit a transaction and then track its lifecycle across different levels of network certainty:

  • processed → included in a block
  • confirmed → voted on by a supermajority
  • finalized → irreversible

This is why I had to implement a small status tracker:

await waitForCommitment(rpc, signature, "confirmed");
await waitForCommitment(rpc, signature, "finalized");

Enter fullscreen mode Exit fullscreen mode

It feels less like an API call and more like tracking a distributed job through eventual consistency.

Even failure handling is fundamentally different. Errors are not hidden behind a server response—they exist as on-chain transaction results. You debug them through simulation, logs, and signature status queries instead of stack traces or HTTP error codes.

The biggest mental shift for me was this:

Web2: request → response
Solana: signed state transition → network execution → probabilistic finality

Once that clicked, everything else started making sense. Transactions stopped feeling like “sending data” and started feeling like constructing precise instructions for a distributed runtime that enforces correctness at execution time.

That’s the real difference—and the hardest part to unlearn coming from backend development.