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


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 you have read our privacy policy.

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