MemeSwap Routing API

Provider quotes and unsigned transaction construction.

GitHub OpenAPI

Operations 4

GET /api/quote Request a swap quote #
POST /api/build Build unsigned swap transaction material #
GET /api/xquote Request a cross-chain quote #
GET /api/xstatus Read bridge transaction status #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/memeswap-fun:memeswap-fun-routing-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

memeswap-fun-routing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MemeSwap Public Routing API
  version: 0.1.0-beta
  description: 'Public beta HTTP twin of MemeSwap meme-coin research, quotes, and unsigned swap construction. For AI agents prefer live MCP: https://mcp.memeswap.fun/mcp (Fee 0.85%. NFA. Wallet signs. Does not launch tokens). The service does not sign or custody transactions. Provider availability and returned fields can change during the beta.'
  contact:
    name: Agentic Labs LLC
    url: https://memeswap.fun/contact.html
servers:
- url: https://memeswap.fun
  description: MemeSwap beta
security: []
tags:
- name: Routing
  description: Provider quotes and unsigned transaction construction.
paths:
  /api/quote:
    get:
      operationId: getSwapQuote
      tags:
      - Routing
      summary: Request a swap quote
      description: 'Requests an indicative route from the configured provider for a supported chain. Quotes can expire or become stale and do not execute a transaction. This route shares a fixed 60-second budget with build and xquote: 60 requests per client address and 1,200 globally.'
      security: []
      parameters:
      - name: chain
        in: query
        required: true
        description: MemeSwap chain key from GET /api/chains.
        schema:
          type: string
      - name: side
        in: query
        required: true
        schema:
          type: string
          enum:
          - buy
          - sell
      - name: token
        in: query
        required: true
        description: Chain-specific token address or identifier.
        schema:
          type: string
      - name: amount
        in: query
        required: true
        description: Positive decimal in native units for a buy or token units for a sell.
        schema:
          type: string
          pattern: ^\d*\.?\d+$
      - name: slippageBps
        in: query
        required: false
        description: Slippage tolerance in basis points. Defaults to 300.
        schema:
          type: integer
          minimum: 1
          maximum: 5000
          default: 300
      - name: from
        in: query
        required: false
        description: Public sender address used for sender/recipient-aware routing. Required later by build.
        schema:
          type: string
      responses:
        '200':
          description: Provider route quote.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Quote'
        '400':
          $ref: '#/components/responses/QuoteBadRequest'
        '429':
          $ref: '#/components/responses/RateLimited'
        '502':
          $ref: '#/components/responses/UpstreamFailure'
        default:
          $ref: '#/components/responses/ProviderStatus'
  /api/build:
    post:
      operationId: buildSwapTransaction
      tags:
      - Routing
      summary: Build unsigned swap transaction material
      description: Builds unsigned, caller-bound transaction material from validated swap fields and a prior quote. The service does not authorize, sign, submit, or confirm it; the caller must review it in a compatible wallet. This route shares the quote-build fixed 60-second budget of 60 requests per client address and 1,200 globally.
      security: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BuildRequest'
      responses:
        '200':
          description: Unsigned chain-specific transaction material for wallet review.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuildResult'
        '400':
          $ref: '#/components/responses/BadRequest'
        '429':
          $ref: '#/components/responses/RateLimited'
        '502':
          $ref: '#/components/responses/UpstreamFailure'
        default:
          $ref: '#/components/responses/ProviderStatus'
  /api/xquote:
    get:
      operationId: getCrossChainQuote
      tags:
      - Routing
      summary: Request a cross-chain quote
      description: Requests a LI.FI route and returns its estimate plus chain-specific transaction material for caller review and signing. It does not submit or confirm a transaction. This route shares the quote-build fixed 60-second budget of 60 requests per client address and 1,200 globally.
      security: []
      parameters:
      - name: fromChain
        in: query
        required: true
        description: MemeSwap chain key or numeric LI.FI chain identifier.
        schema:
          type: string
      - name: toChain
        in: query
        required: true
        description: MemeSwap chain key or numeric LI.FI chain identifier.
        schema:
          type: string
      - name: fromToken
        in: query
        required: false
        description: Source token address or native. Defaults to native.
        schema:
          type: string
          default: native
      - name: toToken
        in: query
        required: false
        description: Destination token address or native. Defaults to native.
        schema:
          type: string
          default: native
      - name: amount
        in: query
        required: true
        description: Positive decimal in source-token units.
        schema:
          type: string
          pattern: ^\d*\.?\d+$
      - name: from
        in: query
        required: true
        description: Public source-chain address used as the transaction sender.
        schema:
          type: string
      - name: to
        in: query
        required: false
        description: Public destination-chain recipient. Defaults to from and is required when address formats differ.
        schema:
          type: string
      - name: slippage
        in: query
        required: false
        description: Decimal slippage fraction forwarded to the route provider.
        schema:
          type: number
          minimum: 0
      - name: order
        in: query
        required: false
        description: Optional LI.FI route ordering preference.
        schema:
          type: string
      responses:
        '200':
          description: Cross-chain estimate and caller-bound transaction material.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CrossChainQuote'
        '400':
          $ref: '#/components/responses/BadRequest'
        '429':
          $ref: '#/components/responses/RateLimited'
        '502':
          $ref: '#/components/responses/UpstreamFailure'
        default:
          $ref: '#/components/responses/ProviderStatus'
  /api/xstatus:
    get:
      operationId: getCrossChainStatus
      tags:
      - Routing
      summary: Read bridge transaction status
      description: Passes a transaction identifier and optional route hints to LI.FI and returns its current status response. A provider status is observational and may lag final chain state.
      security: []
      parameters:
      - name: txHash
        in: query
        required: true
        description: EVM transaction hash or Solana signature.
        schema:
          type: string
      - name: fromChain
        in: query
        required: false
        description: MemeSwap chain key or numeric LI.FI chain identifier.
        schema:
          type: string
      - name: toChain
        in: query
        required: false
        description: MemeSwap chain key or numeric LI.FI chain identifier.
        schema:
          type: string
      - name: bridge
        in: query
        required: false
        description: Optional LI.FI bridge/provider hint.
        schema:
          type: string
      responses:
        '200':
          description: Current provider status payload.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
        '400':
          $ref: '#/components/responses/BadRequest'
        '502':
          $ref: '#/components/responses/UpstreamFailure'
        default:
          $ref: '#/components/responses/ProviderStatus'
components:
  schemas:
    Error:
      type: object
      required:
      - error
      properties:
        error:
          type: string
        scope:
          type: string
      additionalProperties: true
    BuildRequest:
      type: object
      required:
      - chain
      - side
      - token
      - amount
      - from
      - quote
      properties:
        chain:
          type: string
        side:
          type: string
          enum:
          - buy
          - sell
        token:
          type: string
        amount:
          type: string
          pattern: ^\d*\.?\d+$
        slippageBps:
          type: integer
          minimum: 1
          maximum: 5000
          default: 300
        from:
          type: string
          description: Public signing-wallet address; the output is bound to this caller.
        quote:
          type: object
          description: The prior /api/quote response.
          additionalProperties: true
      additionalProperties: false
    BuildResult:
      type: object
      required:
      - provider
      - chain
      - from
      properties:
        provider:
          type: string
        chain:
          type: string
        chainId:
          type:
          - integer
          - 'null'
        from:
          type: string
        to:
          type: string
        data:
          type: string
        value:
          type: string
        approval:
          type:
          - object
          - 'null'
          additionalProperties: true
        swapTransaction:
          type: string
          contentEncoding: base64
        solanaTransaction:
          type: string
          contentEncoding: base64
        suiTransaction:
          type: string
          contentEncoding: base64
        tonMessage:
          type: object
          additionalProperties: true
        lastValidBlockHeight:
          type: integer
      additionalProperties: true
    CrossChainQuote:
      type: object
      required:
      - provider
      - kind
      - fromChain
      - toChain
      - from
      - to
      - estimate
      properties:
        provider:
          const: lifi
        id:
          type: string
        kind:
          type: string
          enum:
          - evm
          - solana
          - sui
        fromChain:
          type: integer
        toChain:
          type: integer
        from:
          type: string
        to:
          type: string
        estimate:
          type: object
          additionalProperties: true
        transactionRequest:
          type:
          - object
          - 'null'
          additionalProperties: true
        solanaTransaction:
          type:
          - string
          - 'null'
          contentEncoding: base64
        suiTransaction:
          type:
          - string
          - 'null'
          contentEncoding: base64
      additionalProperties: true
    Quote:
      type: object
      properties:
        provider:
          type: string
        chain:
          type: string
        chainId:
          type:
          - integer
          - 'null'
        side:
          type: string
          enum:
          - buy
          - sell
        from:
          type:
          - string
          - 'null'
        amountIn:
          type: string
        amountInHuman:
          type: number
        expectedOut:
          type:
          - string
          - 'null'
        expectedOutHuman:
          type:
          - number
          - 'null'
        minOut:
          type:
          - string
          - 'null'
        slippageBps:
          type: integer
        priceImpactPct:
          type:
          - number
          - 'null'
        route:
          type: object
          additionalProperties: true
        error: false
      additionalProperties: true
  responses:
    BadRequest:
      description: The request failed validation.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    QuoteBadRequest:
      description: The quote request failed validation, no route was available, or no aggregator is configured for the requested chain.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    UpstreamFailure:
      description: A route or RPC provider was unavailable or returned an unusable response.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    RateLimited:
      description: The current fixed-window client or global budget is exhausted.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ProviderStatus:
      description: Another HTTP error status associated with a route or RPC provider failure. Depending on the operation and provider path, an unlisted upstream status may be passed through. Failures normalized locally return the documented 502 response; the JSON body may be a local error envelope or the provider's response.
      content:
        application/json:
          schema:
            type: object
            additionalProperties: true