is it possible to calculate the weight (and transform to fees) for a given transaction ? I mean, I need to create a custom RPC method which will calculate that and return the fees.
Thank you
Substrate and Polkadot Stack Exchange is a question and answer site for developers building blockchains with the Substrate SDK. It only takes a minute to sign up.
Sign up to join this communityis it possible to calculate the weight (and transform to fees) for a given transaction ? I mean, I need to create a custom RPC method which will calculate that and return the fees.
Thank you
Yes, take a look at this How-to-guide in the Substrate website to see how to do it with the Transaction Payment Pallet.
Then you can apply this code to your pallet and create the custom RPC, I leave here a guide about how to create a custom RPC too.