2

If I have some unsigned transaction, eg 0x040300865ea... and I wanted to decode it into a format like:

method: "balances",
section: "transfer":
...

Is there a way to do that using polkadot.js or similar library? Most of the information I've come across describes the SCALE codec itself.

1 Answer 1

6

The api provides a shortcut helper for this - api.tx(<hex bytes>) will decode/reconstruct it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.