Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

Tech

From HTTP Requests to Atomic On-Chain Transactions

Coming from Web2, I initially thought of a Solana transaction like an API request: send request -> server processes it -> get response But after working with Solana transactions, I realized the mental model is quite different. A Solana transaction is a package containing things like signatures, instructions, accounts, and a recent blockhash. The transaction is signed before it can be accepted,…

When transitioning from Web2 development to working with Solana transactions, the initial perception of a Solana transaction as an API request proved to be an oversimplification. A Solana transaction comprises a package of elements such as signatures, instructions, accounts, and a recent blockhash. Signing the transaction is a prerequisite for its acceptance by the network, and the instructions precisely outline what the network must execute.

The concept of atomicity proved particularly enlightening - unlike an API request that can involve multiple steps with potential intermediate failures, a Solana transaction either succeeds entirely or fails entirely.

One of the most distinctive aspects of Solana transactions is their limited validity window, which is tied to the recent blockhash they carry. This contrasts starkly with the perpetual validity of standard API requests. During practical experimentation, encountering a 429 Too Many Requests error while polling transaction status served as a stark reminder of this dependency on RPC infrastructure, despite the decentralized nature of the blockchain.

Ultimately, the most profound realization was that a Solana transaction is not just a request to a server but a signed set of instructions prompting the network to make an atomic state change. This shift in perspective is gradually making the process of developing on Solana feel more coherent and comprehensible.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

AI-enriched Linux 7.2 delivers cache-aware scheduling - here's everything new

The latest stable kernel also brings filesystem and I/O improvements, and substantial new support across AMD, Intel, Apple, Nvidia, USB4, and laptop hardware.

  • Linux kernel 7.2 includes Cache Aware Scheduling for improved data access efficiency
  • New AMDGPU support for HDMI 2.1 FRL enables uncompressed 4K at 120Hz and 8K video playback
  • Btrfs large folios default, resulting in 15% improvements in sequential writes

Feedly attributes weeklong slowdown to bug, not its AI pivot

Feedly says a bug is behind the performance issues that have made its web app nearly "unusable" for some users, while complaints about its mobile apps and customer support are adding to frustrations.

  • Feedly experienced a weeklong slowdown due to a bug, not AI pivot
  • Web app issues caused frustration, rendering browsing feeds unusable
  • CEO assured RSS priority, fix released Friday, investigating all user issues

More from Monday 17 August →