mayan

Check Mayan bridge order status

Changed on

Returns the delivery or refund status of a Mayan Swift order, looked up from the source transaction.

get/api/v1/mayan/bridge/check

Request

  • Base URL
    https://api.enso.finance
  • URL
    https://api.enso.finance/api/v1/mayan/bridge/check
  • Auth
    HTTP bearer

Query parameters

chainIdnumber required
Example:8453

Chain ID of the source transaction

txHashstring required
Example:0x0bf1b6817c4c085c40cafe329fa451a0d0875258f3715b0ee8e4b5a7f005fbe7

Source transaction hash that created the Swift order

Response

Bridge transaction status and details

sourceChainIdnumber required

Chain ID of the source transaction

sourceTxHashstring required

Source transaction hash

orderHashstring

Swift order hash

destinationChainIdnumber

Destination chain ID of the order

destinationTxHashstring

Destination transaction that fulfilled the order (present when delivered). A Solana signature for Solana destinations.

refundChainIdnumber

Chain the order was refunded on, which is the source chain. Present when the order was refunded instead of fulfilled. destinationChainId then names the intended destination.

refundTxHashstring

Refund transaction, present when the order was refunded instead of fulfilled

status'pending' | 'inflight' | 'delivered' | 'failed' | 'unknown' required

Overall bridge status

mayanStatusstring

Order status reported by the Mayan explorer

destinationExecutionTxHashstring

The keeper's intent execution transaction on the destination chain, once executed. destinationTxHash is only the Swift fulfillment that funded the executor.

errorstring

Error message when the status could not be determined

Example response

{
  "sourceChainId": 8453,
  "sourceTxHash": "0x0bf1b6817c4c085c40cafe329fa451a0d0875258f3715b0ee8e4b5a7f005fbe7",
  "destinationChainId": 56,
  "destinationTxHash": "0x9038c72fdb050784c7de4aba1f4c7fed85878cd1ee1d4f856ba46680874e4379",
  "refundChainId": 8453,
  "mayanStatus": "ORDER_SETTLED",
  "error": "No Mayan Swift order found in transaction 0x..."
}

Changes