Requesting multiple StorageKeys at the same time
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 489
- Forks
- 293
- Avg merge
- 18h 35m
- Merged PRs (30d)
- 3
Description
I.e I want to request balances for 100 accounts at the same time.
Usually one would construct 100 StorageKeys and issue query_storage_at rpc command.
But I do not see interface of doing this,
I see storage.iter() but it suitable for iterating over whole storage map, but I want to iterate only over known 100 accounts...
How do one suppose to do it with subxt?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the storage.iter() interface and the query_storage_at RPC mentioned in the issue. Determine how Subxt currently represents StorageKeys, then define an interface for querying a caller-provided set of keys and verify that it returns balances for those keys without iterating the entire storage map.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100