itering / substrate-api-rpc

Substrate RPC lib

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need some support for get extrinsic status

CryptoDavChen opened this issue · comments

Hi team, i need some support for get extrinsic status:

1.How to get extrinsic's fail reason via RPC, like this one:
Result: Failed(NotProxy)
https://westend.subscan.io/extrinsic/12967794-2

I know maybe need use index and error in System-ExtrinsicFailed params.

  1. Another question is , like this extrinsic, event is System-ExtrinsicSuccess, but Result is:
    Failed(InsufficientBond), so what is the status judgement criteria ?

https://polkadot.subscan.io/extrinsic/12556856-2

commented

First, you need to judge whether the event is System-ExtrinsicFail.
If it fails, it is directly judged that the transaction failed

If the event is System-ExtrinsicSuccess.
Additional judgment is required, the execution result of proxy (ProxyExecuted).