Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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*Stringtx 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
txStringTransaction hash

Response Parameters

NameTypeDescription
txSearchInfoArray<TxSearchInfo>All related transactions’ info

TxSearchInfo

base_infoBaseInfoBasic information
transferArray<Transfer>Transfers List
messageArray<Message>Messages List

BaseInfo

NameTypeDescription
senderStringSender’s address
receiverStringReceiver’s address
src_chain_idUInt32Source chain id
src_tx_hashStringSource chain transaction hash
init_timeUInt64Initial timestamp
last_update_timeUInt64Lastest information update timestamp

Transfer

NameTypeDescription
xfer_idStringcBridge transfer id
dst_chain_idUInt32Destination chain id
send_amtStringSource chain send amount
received_amtStringDestination chain receiving amount
src_tx_hashStringSource chain transaction hash
dst_tx_hashStringDestination chain transaction hash
src_token_addrStringToken address on source chain
dst_token_addrStringToken address on destination chain
xfer_statusXferStatusTransfer status
refund_amtStringRefund token amount on source chain. Refund only
refund_txStringRefund 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_idStringMessage id
dst_chain_idUInt32Destination chain id
payloadStringpayload
execution_txStringExecution transaction hash
msg_fee_gasStringMessage fee gas
msg_fee_volumeFloatMessage fee in USD value
msg_statusMsgStatusMessage 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