You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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