Is there a way to preflight/preview a transaction before the actual signAndSend?
I would like to know if a transaction would fail before letting user submit the transaction and prevent user losing gas.
I guess polkadot.js has this kind of function, but nothing find in the doc.
Thanks.
query
call for the extrinsic? I usually do that if I expecttx
to fail.