Query IM Tx Status

Get Tx status from CelerIM system

GET https://api.celerscan.com/scan/searchByTxHash

https://api.celerscan.com/scan/searchByTxHash?tx=0x0ce600fd60a7b5b3c1a3d02c7a73339261dae97d3e7785090cf8da92e657b674

Query Parameters

NameTypeDescription

tx*

String

tx hash of the transaction

{
  "err": null,
  "txSearchInfo": [
    {
      "base_info": {
        "sender": "0x0Acd70f0Ad1C809Cc3B90Dad4a3BC3d1E82c4e47",
        "receiver": "0x0Acd70f0Ad1C809Cc3B90Dad4a3BC3d1E82c4e47",
        "src_chain_id": 42161,
        "src_tx_hash": "0x0ce600fd60a7b5b3c1a3d02c7a73339261dae97d3e7785090cf8da92e657b674",
        "init_time": "1661849935000",
        "last_update_time": "1661850036000"
      },
      "transfer": [
        {
          "xfer_id": "0x9161007dd7064a2f356a377698f7790efc7e93a1cb94016b92f27c0d0e648ed5",
          "dst_chain_id": 1,
          "send_amt": "711295513077604900",
          "received_amt": "691157868117182203",
          "src_tx_hash": "0x0ce600fd60a7b5b3c1a3d02c7a73339261dae97d3e7785090cf8da92e657b674",
          "dst_tx_hash": "0x469c084e624c25408c4a8d6c95f862a61ad71182d9b1112bbd6bb1bdd1e34b14",
          "src_token_addr": "0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",
          "dst_token_addr": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
          "xfer_status": 3,
          "bridge_type": 1,
          "refund_amt": "0",
          "refund_tx": ""
        }
      ],
      "message": [
      ]
    }
  ]
}

Request Parameter

NameTypeDescription

tx

String

Transaction hash

Response Parameters

NameTypeDescription

txSearchInfo

All related transactions' info

TxSearchInfo

base_info

Basic information

transfer

Array<Transfer>

Transfers List

message

Array<Message>

Messages List

BaseInfo

NameTypeDescription

sender

String

Sender's address

receiver

String

Receiver's address

src_chain_id

UInt32

Source chain id

src_tx_hash

String

Source chain transaction hash

init_time

UInt64

Initial timestamp

last_update_time

UInt64

Lastest information update timestamp

Transfer

NameTypeDescription

xfer_id

String

cBridge transfer id

dst_chain_id

UInt32

Destination chain id

send_amt

String

Source chain send amount

received_amt

String

Destination chain receiving amount

src_tx_hash

String

Source chain transaction hash

dst_tx_hash

String

Destination chain transaction hash

src_token_addr

String

Token address on source chain

dst_token_addr

String

Token address on destination chain

xfer_status

Transfer status

refund_amt

String

Refund token amount on source chain. Refund only

refund_tx

String

Refund transaction hash. Refund only

XferStatus

ValueDescription

XS_UNKNOWN(0)

Status placeholder

XS_WAITING_FOR_SGN_CONFIRMATIONS(1)

Waiting for Celer SGN confirmation

XS_WAITING_FOR_FUND_RELEASE(2)

Waiting for fund release on destination chain

XS_COMPLETED(3)

Complete

XS_TO_BE_REFUND(4)

Transfer to be refunded

XS_REFUND_TO_BE_CONFIRMED(5)

Transfer refund to be confirmed

XS_REFUNDED(6)

Transfer refunded

enum XferStatus { 
  XS_UNKNOWN = 0,
  XS_WAITING_FOR_SGN_CONFIRMATIONS = 1,
  XS_WAITING_FOR_FUND_RELEASE = 2,
  XS_COMPLETED = 3,
  XS_TO_BE_REFUND = 4,
  XS_REFUND_TO_BE_CONFIRMED = 5,
  XS_REFUNDED = 6,
}

Message

NameTypeDescription

msg_id

String

Message id

dst_chain_id

UInt32

Destination chain id

payload

String

payload

execution_tx

String

Execution transaction hash

msg_fee_gas

String

Message fee gas

msg_fee_volume

Float

Message fee in USD value

msg_status

Message Status

MsgStatus

ValueDescription

MS_UNKNOWN(0)

Status placeholder

MS_WAITING_FOR_SGN_CONFIRMATIONS(1)

Waiting for Celer SGN confirmation

MS_WAITING_FOR_DESTINATION_EXECUTION(2)

Waiting for destination chain execution

MS_COMPLETED(3)

Complete

Last updated