After the latest upgrade of Westend runtime to version 9310 the RPC call payment_queryFeeInfo
fails with the following error message:
{"jsonrpc":"2.0","error":{"code":1,"message":"Unable to query dispatch info.","data":"Failed to decode return value of TransactionPaymentApi_query_info"},"id":604352276}
However, execution of state_call
with the following arguments: ["TransactionPaymentApi_query_info", <Encoded extrinsic here>]
successfully completes.
Also we noticed that polkadot-js uses state_call
for fetching the fee.
Does it mean that payment_queryFeeInfo
should be considered deprectated? Or is it a bug in the 9310 runtime?
state_call
question - this doesn't suffer from the same issues (no node <-> runtime encoding), hence the JS API usingapi.call.*
to make these queries. Generally if functionality is available on the runtime calls and rpcs, you would rather use the runtime calls.answers
section and I will mark it as accepted one