api icon indicating copy to clipboard operation
api copied to clipboard

How to see if a transaction was successful by block hash

Open gith-u-b opened this issue 2 years ago • 1 comments

hi, I want to see if a transaction was successful by block hash

const hash = await Promise.all([
  api.tx.balances.transfer(polkaPnsAddr, amount * 1e10).signAndSend(alice),
  api.tx.system.remark('i am a remark')
])

I added a remark: 'i am a remark', and I know user's polkadot address and block hash, how can I find this remark through the block hash?

thanks.

gith-u-b avatar Aug 01 '22 01:08 gith-u-b

This, as per the suggestion for HOWTO queries when this issues is logged, is best asked on SO. (Where answers for this question does exist and has been answered before)

Additionally the cookbook has examples of matching blocks/extrinsics to events.

jacogr avatar Aug 01 '22 06:08 jacogr

This issue has been open for 21 days with no activity and is not labelled as an enhancement. It will be closed in 7 days.

polkadot-js-bot avatar Aug 22 '22 08:08 polkadot-js-bot

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query.

polkadot-js-bot avatar Sep 02 '22 13:09 polkadot-js-bot