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

Add Transaction Fee RPC to Statemint/Statemine #542

Closed
shawntabrizi opened this issue Jul 20, 2021 · 3 comments
Closed

Add Transaction Fee RPC to Statemint/Statemine #542

shawntabrizi opened this issue Jul 20, 2021 · 3 comments
Assignees
Labels
T7-system_parachains This PR/Issue is related to System Parachains.

Comments

@shawntabrizi
Copy link
Member

shawntabrizi commented Jul 20, 2021

Client needs to expose the RPC for this.

  1. impl_runtime_apis: https://github.com/paritytech/polkadot/blob/master/runtime/polkadot/src/lib.rs#L1373

  2. Extract rpc stuff into its own module from: https://github.com/paritytech/cumulus/blob/master/polkadot-parachains/src/service.rs

    • look at links below from polkadot and substrate
  3. Reconnect via RPC to service and expose the new rpcs:

Some notes on extending RPC here: https://github.com/paritytech/substrate/blob/master/bin/node-template/node/src/rpc.rs#L58

@Swader
Copy link
Contributor

Swader commented Aug 2, 2021

@hamidra do you need help with this? This is kind of important for us and we'd love to try and help, but if it's something that's already in progress we'll hold off

@hamidra
Copy link
Contributor

hamidra commented Aug 2, 2021

Hey @Swader. Changes seems to be straightforward. Will work on it today to send a PR.

@apopiak
Copy link
Contributor

apopiak commented Oct 13, 2021

PR is merged

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T7-system_parachains This PR/Issue is related to System Parachains.
Projects
None yet
Development

No branches or pull requests

4 participants