Add documentation for the iterate-keys endpoint#1133
Merged
danidrasovean merged 5 commits intodevelopmentfrom Jul 25, 2025
Merged
Add documentation for the iterate-keys endpoint#1133danidrasovean merged 5 commits intodevelopmentfrom
danidrasovean merged 5 commits intodevelopmentfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds comprehensive documentation for the /address/iterate-keys REST API endpoint, which allows efficient iteration through account storage keys in batches. The documentation explains the endpoint's purpose, configuration requirements, request/response formats, and provides practical usage examples.
- Added detailed API documentation for the iterate-keys endpoint with examples and usage notes
- Integrated the new documentation into the sidebar navigation structure
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| sidebars.js | Added navigation entry for the new iterate-keys documentation |
| docs/sdk-and-tools/rest-api/iterate-keys.md | Created comprehensive documentation covering endpoint details, request/response formats, and usage examples |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Contributor
andreibancioiu
left a comment
There was a problem hiding this comment.
Very nicely explained!
|
|
||
| ## Overview | ||
|
|
||
| Retrieving all storage keys for an account can be resource-intensive if the account has many entries. The `/address/iterate-keys` endpoint allows clients to efficiently iterate through all key-value pairs in an account's data trie, fetching them in batches and resuming from a checkpoint using an iterator state. This is especially useful for large accounts or when paginating through storage. |
|
|
||
| Retrieving all storage keys for an account can be resource-intensive if the account has many entries. The `/address/iterate-keys` endpoint allows clients to efficiently iterate through all key-value pairs in an account's data trie, fetching them in batches and resuming from a checkpoint using an iterator state. This is especially useful for large accounts or when paginating through storage. | ||
|
|
||
| If you need to ensure consistency across multiple requests (e.g., if the account might change), use the `?blockNonce={blockNonce}` query parameter to lock iteration to a specific trie root. |
andreibancioiu
approved these changes
Jul 24, 2025
BeniaminDrasovean
approved these changes
Jul 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the pull request (what is new / what has changed)
Did you test the changes locally ?
Which category (categories) does this pull request belong to?