Meson Fi
  • Meson Docs
  • Introducing Meson
  • Guides
    • Meson App
      • Premium
      • Swap on Mobile
    • Meson Explorer
  • Protocol
    • Background
      • Hash Time Lock Contract (HTLC)
    • The Meson Protocol
      • Swap Process
      • Trusted Verifiers
      • Swap Fee
      • Liquidity Providers
    • System Design
      • Relayer
        • Relayer APIs
      • LP Service
    • Security Precautions
      • Waiting Time
  • Implementation
    • Smart Contracts
      • Meson in Solidity
      • Time
    • Applications
  • References
    • Audits
      • SSLabs at Georgia Tech
      • Trail of Bits : Design Review
      • Trail of Bits : Security Review
      • Trail of Bits : Fix Review
    • Stablecoins supported by Meson
Powered by GitBook
On this page
  • Submit a Swap Request
  • Submit a Swap Release
  • Query Recent Swaps
  1. Protocol
  2. System Design
  3. Relayer

Relayer APIs

PreviousRelayerNextLP Service

Last updated 2 years ago

The relayer provides the following APIs to receive swap request and release, and to query recent swaps.

The current Meson relayer is running at .

Submit a Swap Request

Receives an incoming swap request submitted by Meson app. Calling this API requires the swap request data and a valid user signature. The relayer will perform preliminary checks and broadcast the data to connected LP services if deemed valid.

POST https://relayer.meson.fi

Request Body

Example:

// TODO give an example
{
  "encoded": ""
}

Submit a Swap Release

Receives an incoming swap release submitted by Meson app. Calling this API requires the swap release data and a valid user signature. The relayer will perform preliminary checks and broadcast the data to connected LP services if deemed valid.

PUT https://relayer.meson.fi

Request Body

Example:

// TODO give an example
{
  "encoded": ""
}

Query Recent Swaps

Returns swaps form the pending pool, which are swaps that were submitted to the relayer recently but have not completed the entire swap process.

GET https://relayer.meson.fi

Returns

Example:

// TODO give an example
[
  {
    "encoded": ""
  },
  ...
]
https://relayer.meson.fi