Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

RPC-Spec-V2: Backport changes to chainHead_unstable_storage #14222

Open
4 of 5 tasks
Tracked by #14636
lexnv opened this issue May 25, 2023 · 3 comments
Open
4 of 5 tasks
Tracked by #14636

RPC-Spec-V2: Backport changes to chainHead_unstable_storage #14222

lexnv opened this issue May 25, 2023 · 3 comments
Assignees
Labels
J0-enhancement An additional feature request.

Comments

@lexnv
Copy link
Contributor

lexnv commented May 25, 2023

Implement the following changes to the chainHead_storage RPC method:

The chainHead_storage method is now capable of:

  • Fetching the value of a key (this is part of the current behavior, both for root trie and child tries)
  • Fetching the hash of the value of a key
  • Fetching the closest ancestor markle value
  • Iterating over keys and values (paginated by the server)
  • Iterating over keys and hashes of values (paginated by the server)

// @paritytech/subxt-team

Tasks

  1. J0-enhancement
    lexnv
  2. J0-enhancement
    lexnv
  3. J0-enhancement
    lexnv
  4. J0-enhancement
    lexnv

Nice to Have

  1. J0-enhancement
    lexnv
@lexnv lexnv self-assigned this May 25, 2023
@lexnv lexnv added the J0-enhancement An additional feature request. label May 25, 2023
@tomaka
Copy link
Contributor

tomaka commented May 25, 2023

Fetching the closest ancestor markle value

Hopefully this isn't an issue. I've thought it might be problematic to implement in Substrate, but I don't think we should make the API less powerful just because it's difficult to implement.

You might also want to talk to @cheme, as he was working on #12843.

@Polkadot-Forum
Copy link

This issue has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/new-json-rpc-api-mega-q-a/3048/1

@Polkadot-Forum
Copy link

This issue has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/new-json-rpc-api-mega-q-a/3048/2

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
J0-enhancement An additional feature request.
Projects
None yet
Development

No branches or pull requests

3 participants