2

I want to calculate total transaction fees paid by users by using a substrate-api-sidecar on any substrate-based chain.

I tried reading two docs on calculating fees but none could help me out in deducing what to look for while querying a block. Click here for document 1, here for document 2.

Would that differ from chain to chain implementation?

I checked Moonriver documents on using substrate-api-sidecar and it seems possible to calculate fees. But I could not find out how to do so against a Polkadot parachain(relay chain)?

For setting the base premise, Token Terminal states that in a blockchain, total revenue generated means total transaction fees paid by the users.

Aviral Srivastava
  • 4,058
  • 8
  • 29
  • 81
  • 2
    Hi, [this answer](https://stackoverflow.com/a/66967801/1178971) seems to get the fee from an extrinsic using the polkadot-js API. This might help you. – forgetso Jan 01 '22 at 19:59

0 Answers0