data

Query Stellar blockchain data via Stellar RPC and Horizon APIs.

Updated Jul 26, 2026
One-click install
npx skills add https://github.com/chrissstellee/Movix --skill data-chrissstellee
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: data
Source: https://github.com/chrissstellee/Movix/tree/main/.agents/skills/data/data
Command: npx skills add https://github.com/chrissstellee/Movix --skill data-chrissstellee

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @stellar/stellar-sdk.

What problem does it solve? Reading on-chain Stellar data requires choosing between two API paradigms (RPC and Horizon), each with different methods, history limits, and streaming capabilities, which makes it hard to pick the right approach for a given workflow. ## Core Features & Use Cases - Stellar RPC Methods: Call getLatestLedger, getLedgerEntries, getEvents, simulateTransaction, and sendTransaction for smart contract state and real-time reads. - Horizon REST API: Query accounts, transactions, operations, payments, and effects with pagination and Server-Sent Events streaming for legacy and historical workflows. - Historical Data Access: Use Hubble (BigQuery), Galexie, the data lake, or third-party indexers like Mercury and SubQuery for data beyond RPC's 7-day window. - Use Case: When building an escrow dashboard, use RPC getEvents to track contract events in real time, then fall back to Horizon or Hubble for full payment history older than seven days. ## Quick Start Ask the assistant to fetch the latest ledger and recent contract events for a given contract ID on Stellar testnet using the RPC server.

Frequently Asked Questions about data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I query Stellar blockchain data with RPC?▼

Create an rpc.Server instance from @stellar/stellar-sdk pointing to a network endpoint like https://soroban-testnet.stellar.org, then call methods such as getLatestLedger, getLedgerEntries, getEvents, or getTransaction to read chain state.

Stellar RPC vs Horizon: which API should I use?▼

Use Stellar RPC for new projects, smart contract interactions, simulation, and real-time state. Use Horizon for historical transaction queries, payment streaming, and legacy applications, since most RPC methods only cover the last 7 days.

How do I get Stellar transaction history older than 7 days?▼

Use Hubble (SDF's BigQuery dataset), Galexie for a self-hosted data pipeline, or the getLedgers Infinite Scroll feature backed by the Stellar data lake. Third-party indexers like Mercury, SubQuery, and Goldsky also support deep history.

Does Stellar RPC support streaming events like Horizon?▼

No, Stellar RPC has no native streaming or WebSocket support. You must poll methods like getEvents or getLatestLedger on an interval, whereas Horizon offers Server-Sent Events streaming for transactions, payments, and operations.

How do I handle rate limits on Stellar RPC and Horizon?▼

Both APIs enforce rate limits, so implement exponential backoff retries on HTTP 429 responses and cache responses where possible. For high-volume applications, consider running your own nodes or using a dedicated RPC provider.