Skip to main content

Check swap from hash

GET /api/v1/swap

This API will check the status of a submitted cross-chain swap from transaction hash.

Query Parameters
  • hash string required

    The transaction hash.

    Examples:

    Example: 0xa3b9a696f125624ba6a334f3fee00e1ecd739948d469128fcad9a69f10f57291

Responses

Successful operation

A swap typically completes within 1-2 minutes. If there are issues preventing its execution, it will expire after 10 minutes. An expired swap cannot be executed on the Meson contract thereafter, and funds remain in fromAddress.

Schema
  • result object
  • expired boolean

    Will be true if the swap has expired and cannot be executed by Meson contract.

  • POSTED string

    The hash for the transaction taking the incoming fund. On initial chain.

  • BONDED string

    The hash for the transaction bonding the swap fund. On initial chain.

  • CANCELLED string

    The hash for the transaction returning fund to the initiator. On initial chain.

  • LOCKED string

    The hash for the transaction locking fund for the swap. On target chain.

  • UNLOCKED string

    The hash for the transaction unlocking fund for the swap. On target chain.

  • EXECUTED string

    The hash for the transaction transfering fund to LP. On initial chain.

  • RELEASED string

    The hash for the transaction releasing fund to recipient. On target chain.

Loading...