Litecoin Mainnet
- Type
- mainnet
- Identifier
- litecoin
- Chain ID
- bip122:12a765e31ffd4059bada1e25190f6e98
- Native Currency
- LTC
Indexing Data on Litecoin
Litecoin is a long-running proof-of-work blockchain and one of the earliest peer-to-peer digital currencies, securing the LTC asset. The Graph can stream that onchain activity — blocks and transactions, inputs and outputs, and address activity — as real-time data with Substreams.
Litecoin is supported by The Graph with Substreams — a parallelized, real-time streaming engine for high-throughput use cases — via Pinax Network.
Indexing Litecoin with Substreams
Substreams is a parallelized, real-time streaming engine for extracting and transforming blockchain data. Where a Subgraph indexes into a hosted GraphQL API, Substreams lets you consume high-throughput data directly or via 10+ supported sinks. Substreams streams Litecoin’s blocks, transactions, and their inputs and outputs. Modules are written in Rust and composed into reusable packages.
Find an Existing Module on Substreams.dev
Before writing any code, check the Substreams Registry for a package that already does what you need. The registry hosts community- and team-built modules covering common onchain data that you can run as-is or compose into your own pipeline. Search for the protocol or data you want on Litecoin; if a module fits, you can consume its output directly or import it as a dependency in your own project.
Develop Your Own Substreams Module
If no existing module fits, you can build one. The Substreams Quick Start is the full walkthrough. In short:
- Install the Substreams CLI and get an API key from Pinax Network.
substreams initdoes not have a template for Litecoin yet, so set up the project by hand: write asubstreams.yamlmanifest withnetwork: litecoinand a Rust map module that takessf.bitcoin.type.v1.Blockas its input (the protobuf definitions are published on Buf).- Write your extraction and transformation logic in Rust, then run
substreams build. - Stream the output with
substreams gui(orsubstreams run) to iterate, then publish your package to the Substreams Registry to reuse or share it.