Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 952 Bytes

File metadata and controls

21 lines (15 loc) · 952 Bytes

To be moved in Gnoverse

tx-indexer Example

This is the code present in https://github.com/gnolang/gno/pull/4577/files.

This folder contains self‑contained example snippets referenced in the docs/resources/indexing-gno.md guide. They illustrate how to:

  1. Start and interact with the official tx-indexer (GraphQL + JSON-RPC)
  2. Query BankMsgSend (GNOT transfer) transactions via GraphQL
  3. Parse transaction JSON into typed Go structs (idiomatic json.Unmarshal usage)
  4. Sort and display largest transfers
  5. Subscribe to real‑time transactions over GraphQL WebSocket
  6. Expose a minimal HTTP stats endpoint
  7. Persist transactions with SQLite (demo persistence layer)

Use these snippets as a learning aid or a starting point for building dashboards, analytics pipelines, or monitoring tools on top of Gno.land.

Related Docs