Skip to main content

Check swap status

GET /api/v1/swap/:swapId

Following the prior API, this API will check the status of a submitted cross-chain swap.

Path Parameters
  • swapId hex_string_32_bytes required

    The unique id for a Meson cross-chain swap, returned by the prior API.

    Examples:

    Example: 0x03ae219df61c9a564f9a68a9b8b48539060e869ff8ef9dc457d21e0a924f48be

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...