How to decode a Polkadot transaction call using Subxt metadata #1807
Unanswered
camboimdev
asked this question in
Q&A
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi paritytech team,
I'm trying to decode a Polkadot transaction call using Subxt, but I'm having trouble figuring out how to extract the pallet_name, call_name, and call_data from the method bytes in a transaction. My goal is to instantiate the extrinsic from this JSON and sign it.
Here is the JSON representation of the transaction I'm working with:
I've looked into using subxt::dynamic::tx but I don't have the pallet_name and call_name, and I'm not sure if I have the call_data from the JSON.
Could you provide guidance or an example on how to decode the method field using Subxt metadata to obtain the pallet_name, call_name, and call_data?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions