How to Query Stellar Horizon API Using Python and JavaScript
Developer André Dias Moreira Prol has published a practical guide on querying the Stellar blockchain network using the Horizon REST API in both Python and JavaScript. The article explains how to retrieve account balances, transaction histories, and asset data through clean HTTP endpoints without requiring deep blockchain protocol knowledge. Prol highlights the Horizon API's streaming capability via Server-Sent Events, which enables real-time transaction monitoring without constant polling, reducing infrastructure costs. The guide also covers querying tokenized assets like USDC, including how to retrieve the number of wallets holding a given asset's trustlines. Code samples using the official stellar-sdk library are provided for both languages and are ready to run against the live Stellar network.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in