5️⃣Get Cross-Chain Status

After cross-chain transaction sent, you can check the current cross-chain status using this endpoint.

Get Cross Chain Status

GET https://aggregator-api.xy.finance/v1/crossChainStatus

Query Parameters

Name
Type
Description

srcChainId*

Integer

Source chain ID

srcTxHash*

String

Source chain transaction hash

{
  "success": true,
  "status": "Done",
  "msg": "Transaction has been completed.",
  "tx": "<transaction hash on target chain>"
}

There are seven possible statuses: Not found, Processing, Done, Receive bridge token, Receive synapse token, Pending refund, and Refunded.

Status
Msg
Discription

Not found

No transaction found in the system.

No matching system record or source chain transaction detected.

Processing

Source chain transaction detected, destination chain transaction pending.

System record exists; source transaction complete, destination pending.

Done

Transaction has been completed.

There is a system record, and the destination transaction has been completed.

Receive bridge token (TOKEN_NAME)

For example :

  • Receive bridge token (USDT)

  • Receive bridge token (USDC)

  • Receive bridge token (ETH)

Transaction reverted, bridge token received.

Due to price change over the slippage tolerance or other unforeseen issues, the transaction has been reverted on the destination chain and received bridge token instead.

Receive synapse token ( TOKEN_NAME )

  • Receive synapse token (nUSD)

  • Receive synapse token (nETH)

Transaction reverted, Synapse token received.

Due to price swap over the slippage tolerance or other unforeseen issues, your transaction was reverted on the destination chain and received Synapse's bridge token instead.

Pending refund

Transaction cannot be executed on destination chain, refund pending.

Transaction encountered an error and cannot be executed on the destination chain, we will refund the bridge token on the source chain. Once the refund transaction has been completed, it will be marked as Refunded.

Refunded

Transaction failed on destination chain, refunded.

Refund completed, pool token sent to source chain sender's address.

Here you can find our full API reference

Last updated