XRPL.to API Presale API

Escrow-based token presales

GitHub OpenAPI

Operations 8

GET /presale List presales (open by default) #
POST /presale Create a presale (issuer + sale wallets are provisioned server-side) #
POST /presale/{id}/join Join — checks the wallet can fund the escrow above its reserve, returns the… #
POST /presale/{id}/confirm Confirm a signed escrow contribution #
POST /presale/{id}/finalize Finalize after deadline/goal: capture escrows, deliver claim Checks, seed AMM… #
GET /presale/{id} Presale status (public view: raise, socials, confirmed contributors, vesting… #
GET /presale/{id}/claim-info Per-buyer claim (CheckCash) or refund (EscrowCancel) transaction to sign #
GET /presale/{id}/refund-info Alias of claim-info #

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/xrpl-to:xrpl-to-presale-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

xrpl-to-presale-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: XRPL.to Presale API
  description: 'XRPL token analytics, market data, NFT, trading, and on-chain account API.


    ## Usage policy


    Applies to every caller — no key, Free, and every paid tier alike.


    - **Attribution is required.** Any app, website, bot, or dashboard that displays xrpl.to data must show a visible, clickable credit to xrpl.to on the same screen as that data — not buried in an about page. Use: `Data by xrpl.to`

    - **Redistribution needs permission.** Storing our data and re-serving it from your own API, dataset, or public dashboard requires written permission first. Email hello@xrpl.to — the answer is usually yes, we just need to know who is doing it.

    - **Indexers and aggregators:** use the paginated list endpoints instead of looping one item at a time, cache what you fetch, and honour `Retry-After` on a 429 — a repeated 429 means back off, not retry. Get a key rather than running anonymous so we can raise your limits instead of blocking you.

    - **Partner tier** (invitation-only, free): 100 req/sec, 200M credits/mo, direct support — for integrations that credit us properly. Email hello@xrpl.to or DM @xrplto on X.


    Successful responses on the tiers that pay nothing (anonymous, free, partner) carry an `attribution` string right after `success`, restating this requirement. It is informational — safe to ignore in code, but not optional to comply with.'
  version: '1.20'
  contact:
    name: XRPL.to
    url: https://xrpl.to
servers:
- url: https://api.xrpl.to/v1
  description: Production (canonical)
- url: https://api.xrpl.to/api
  description: Production (alias — identical API, prefer /v1)
tags:
- name: Presale
  description: Escrow-based token presales
paths:
  /presale:
    get:
      tags:
      - Presale
      summary: List presales (open by default)
      description: Public list of presales; status=all includes non-open.
      operationId: get_presale
      parameters:
      - name: status
        in: query
        required: false
        schema:
          type: string
        description: '''all'' to include non-open'
      responses:
        '200':
          description: OK
    post:
      tags:
      - Presale
      summary: Create a presale (issuer + sale wallets are provisioned server-side)
      description: 'Escrow-based presale: issuer + sale wallets provisioned server-side; buyers escrow XRP and claim tokens via CheckCash after finalize.'
      operationId: post_presale
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                currencyCode:
                  type: string
                name:
                  type: string
                origin:
                  type: string
                tokenSupply:
                  type: string
                goalXrp:
                  type: number
                softCapXrp:
                  type: number
                durationHours:
                  type: number
                tradingFee:
                  type: number
                creatorPct:
                  type: number
                creatorVestDays:
                  type: number
      responses:
        '200':
          description: OK
      parameters: []
  /presale/{id}/join:
    post:
      tags:
      - Presale
      summary: Join — checks the wallet can fund the escrow above its reserve, returns the…
      description: Returns the conditional EscrowCreate transaction for the buyer to sign.
      operationId: post_presale_id_join
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: presale id
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                address:
                  type: string
                amountXrp:
                  type: number
      responses:
        '200':
          description: OK
  /presale/{id}/confirm:
    post:
      tags:
      - Presale
      summary: Confirm a signed escrow contribution
      description: Confirm an escrow contribution
      operationId: post_presale_id_confirm
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: presale id
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                address:
                  type: string
                txHash:
                  type: string
      responses:
        '200':
          description: OK
  /presale/{id}/finalize:
    post:
      tags:
      - Presale
      summary: 'Finalize after deadline/goal: capture escrows, deliver claim Checks, seed AMM…'
      description: 'After deadline or goal: capture escrows, deliver claim Checks, seed AMM, blackhole wallets. Refunding when soft cap missed.'
      operationId: post_presale_id_finalize
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: presale id
      responses:
        '200':
          description: OK
  /presale/{id}:
    get:
      tags:
      - Presale
      summary: 'Presale status (public view: raise, socials, confirmed contributors, vesting…'
      description: Presale status (public view)
      operationId: get_presale_id
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: presale id
      responses:
        '200':
          description: OK
  /presale/{id}/claim-info:
    get:
      tags:
      - Presale
      summary: Per-buyer claim (CheckCash) or refund (EscrowCancel) transaction to sign
      description: Returns the CheckCash (claim) or EscrowCancel (refund) transaction for the address to sign.
      operationId: get_presale_id_claim-info
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: presale id
      - name: address
        in: query
        required: true
        schema:
          type: string
        description: contributor r-address
      responses:
        '200':
          description: OK
  /presale/{id}/refund-info:
    get:
      tags:
      - Presale
      operationId: get_presale_id_refund_info
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
      - name: address
        in: query
        required: false
        description: contributor r-address
        schema:
          type: string
      responses:
        '200':
          description: OK
      summary: Alias of claim-info
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
    WalletSignature:
      type: apiKey
      in: header
      name: X-Signature
      description: Send X-Wallet, X-Timestamp, X-Signature, X-Public-Key headers.
    AdminKey:
      type: apiKey
      in: header
      name: X-Admin-Key