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

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

Open

Description

@lexnv

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
- [ ] https://github.com/paritytech/substrate/issues/14547
- [ ] https://github.com/paritytech/substrate/issues/14548
- [ ] https://github.com/paritytech/substrate/issues/14549
- [ ] https://github.com/paritytech/substrate/issues/14550
### Nice to Have
- [ ] https://github.com/paritytech/substrate/issues/14734

Activity

  1. self-assigned this
    on May 25, 2023
  2. tomaka commented on May 25, 2023

    @tomaka
    Contributor

    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.

  3. Polkadot-Forum commented on Jun 6, 2023

    @Polkadot-Forum

    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

  4. Polkadot-Forum commented on Jun 6, 2023

    @Polkadot-Forum

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

J0-enhancementAn additional feature request.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions