paritytech / substrate

Substrate: The platform for blockchain innovators
Apache License 2.0
8.39k stars 2.65k forks source link

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

Open lexnv opened 1 year ago

lexnv commented 1 year ago

Implement the following changes to the chainHead_storage RPC method:

The chainHead_storage method is now capable of:

// @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
tomaka commented 1 year ago

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 https://github.com/paritytech/substrate/pull/12843.

Polkadot-Forum commented 1 year ago

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 commented 1 year ago

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