reading-onchain-state

Community

Efficient on-chain state reads for Solana apps.

AuthorSanctifiedOps
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This skill enables frontend and backend services to read Solana on-chain state efficiently, reducing latency and RPC load.

Core Features & Use Cases

  • Single Account Reads: getAccountInfo for precise state fetch.
  • Batch & Program Reads: getProgramAccounts with server-side filters for scalable scans.
  • Caching & Reactivity: TTL-based caching plus WebSocket subscriptions to reflect updates in UI.
  • Decoding & Validation: Use IDLs or borsh layouts to decode data safely and guard against missing fields.

Quick Start

Use the reading-onchain-state skill to implement efficient reads of accounts using getAccountInfo and getProgramAccounts, with a 30-second cache and WebSocket subscriptions for hot data.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: reading-onchain-state
Download link: https://github.com/SanctifiedOps/solana-skills/archive/main.zip#reading-onchain-state

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.