Questions tagged [indexing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
2 answers
28 views

What is simplest way to get native holders distribution?

I want to setup some democracy on one chain. Democracy is voting with tokens. So it is important to know if tokens distributed well enough. I looked into some tools and indexers, none provided such ...
Dzmitry Lahoda's user avatar
0 votes
1 answer
52 views

How index the substrate storage maps and ipfs cids?

How can I index the substrate storage maps of pallets and ipfs content of cids, to have filters and build custom search queries? Is it a good idea to use subxt for querying storage through rpc from ...
Amiya Behera's user avatar
0 votes
0 answers
69 views

Indexing: big Events vs. storage lookup. Downsides of having big Events

Problem statement: While indexing it's impossible to extract information from the Extrinsic call when Extrinsic has optional parameters (default if none). Solutions: storage lookup (seems suboptimal ...
vovacha's user avatar
  • 148
1 vote
1 answer
52 views

What are some other use cases for pallet indices?

The default implementation is to use a u32 as AccountIndex. This means that only 2^32 claims can be made. Besides reserving an integer, can we use String as AccountIndex thereby referencing an account ...
Purple_Turtle's user avatar
2 votes
1 answer
34 views

Substrate-Archive, workaround for MAC?

Setting up Substrate-Archive for the first time. Tutorial/Wiki is a bit outdated. Following this solution that I found in "issues". Compiled and ran; however, I got an issue that I believe ...
Chris Bui's user avatar
1 vote
1 answer
170 views

Saving deeply nested objects using subsquid

I'm trying to save some deeply nested information to the database, but I keep encountering an error when I go to save it using ctx.store.save(obj). My object looks like this. let writeToDB = { ...
rarara's user avatar
  • 141
2 votes
1 answer
70 views

How to get caller and block number using Polkadot/Kusama Runtime modules and SubSquid

I'm trying to make my very first indexer. I want to pull the caller (initiator's address) of a runtime system.remark, as well as the block number. What is the best way to do this via hooking into the ...
rarara's user avatar
  • 141
7 votes
1 answer
169 views

Is it possible to query an OCW's Off-chain storage via RPC from an external service?

I'm off-chain indexing some pallet events into my off-chain local storage using an OCW. Now, I want to be able to retrieve this data via RPC from an external service. Is this possible? Does it require ...
Pablo Buitrago's user avatar
2 votes
1 answer
65 views

Off-chain DB indexing example

Where can I find Tomasz Drwięga Off-chain DB indexing example, implementing the following runtime function? fn on_finalize(_n: BlockNumberFor<T>){} TIA
Pablo Buitrago's user avatar
16 votes
5 answers
890 views

Is there a good indexer for substrate chains (like the graph)?

If we want to ask lots of queries about chain state (for example users activity over time etc.) is there a recommended or de-facto way of doing it? Ethereum has 'the graph' for example as a high ...
Squirrel's user avatar
  • 3,769