1.6 Status Query

You can use the following APIs to check the status of an XFlows cross-swap transaction using the source chain transaction hash:

Example:

curl -XGET <https://bridge-api.wanchain.org/api/status/0x3b3ea21007157ec956e884986be36658ca6abd80f0a787e9105f342f29551ddb>

curl -XGET <https://bridge-api.wanchain.org/api/status/msg/0x3b3ea21007157ec956e884986be36658ca6abd80f0a787e9105f342f29551ddb>

curl -XGET <https://dex.wanscan.org/api/xflows/status/0x3b3ea21007157ec956e884986be36658ca6abd80f0a787e9105f342f29551ddb>

API Endpoints:

  • Cross status query: https://bridge-api.wanchain.org/api/status/{sourceChainTxHash}

  • Message status query: https://bridge-api.wanchain.org/api/status/msg/{sourceHash}

  • Execution status query: https://dex.wanscan.org/api/xflows/status/{sourceChainTxHash}

Status Code:

  • 0: Pending

  • 1: Success

  • 2: Failed

  • 3: Processing

  • 4/5: Refunded

  • 7: Risk transaction

Last updated