0

I am currently trying to use the javascript api to send dot between accounts and I was wondering if there was a function/way to find out whether a transaction is finalized just based off the transaction hash. I read the docs here: https://polkadot.js.org/docs/api/start/api.tx.subs, I understand how to use the callback for status updates however I would really like a standalone function that takes in a transaction hash and outputs whether it is finalized if such a thing exists

1 Answer 1

3

On Substrate the transaction hashes are not unique and there is no RPC that actually provides an index of this non-unique identifier. There are a couple of existing questions answered on this, see this, this and this.

If you wish to see if something is finalized, one approach would be to

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.