XRPL.to API Testnet API

What the Testnet collectors gathered from the XRP Ledger Testnet (testnet_v1): tokens, trust lines, offers, trades, 5-minute candles, accounts, AMM pools, NFTs, NFT offers, collections and history. Keyless, index-backed, disposable data that a Testnet reset wipes and the collectors rebuild.

GitHub OpenAPI

Operations 20

POST /testnet/submit Submit a SIGNED transaction to Testnet through our own node — the contract of… #
GET /testnet/tx/{hash} A Testnet transaction and its final result, from our node: validated, the… #
GET /testnet/health Both collectors' head ledger against the network, and whether that is current #
GET /testnet/tokens Testnet tokens. #
GET /testnet/tokens/{md5} A Testnet token with its AMM pool #
GET /testnet/tokens/{md5}/holders Holders of a Testnet token, largest first #
GET /testnet/tokens/{md5}/offers The order book of a Testnet token against XRP #
GET /testnet/tokens/{md5}/trades Fills of a Testnet token, newest first #
GET /testnet/tokens/{md5}/ohlc 5-minute candles of a Testnet token #
GET /testnet/accounts/{address} A Testnet account as the collector last saw it, with its trust lines, resting… #
GET /testnet/amm Testnet AMM pools, deepest first. #
GET /testnet/amm/{account} A Testnet AMM pool by its account #
GET /testnet/nft/collections Testnet NFT collections, by issuer and taxon. #
GET /testnet/nft/collections/{id} A Testnet NFT collection #
GET /testnet/nft/collections/{id}/nfts The live NFTs of a Testnet collection #
GET /testnet/nft/history Testnet NFT events, newest first #
GET /testnet/nft/{id} A Testnet NFT with the offers standing on it #
GET /testnet/nft/{id}/offers The offers standing on a Testnet NFT, split by side #
GET /testnet/fixtures What the simulation keeps alive on Testnet: live accounts, its tokens… #
POST /testnet/rpc The XRP Ledger's own READ commands against our Testnet node — the half of… #

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-testnet-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-testnet-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: XRPL.to Testnet 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: Testnet
  description: 'What the Testnet collectors gathered from the XRP Ledger Testnet (testnet_v1): tokens, trust lines, offers, trades, 5-minute candles, accounts, AMM pools, NFTs, NFT offers, collections and history. Keyless, index-backed, disposable data that a Testnet reset wipes and the collectors rebuild.'
paths:
  /testnet/submit:
    post:
      tags:
      - Testnet
      summary: Submit a SIGNED transaction to Testnet through our own node — the contract of…
      operationId: post_testnet_submit
      description: engine_result is PRELIMINARY — only a validated ledger is final; follow hash with GET /testnet/tx/{hash} until validated is true or a validated ledger passes the LastLedgerSequence. A 400 with error_code is the node refusing it before processing; outcome:"unknown" (502, 409, or no engine_result) means it may still apply — resolve by hash, never by re-signing on a fresh Sequence. Every response carries hash.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              description: '{ tx_blob, fail_hard? }'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                description: '{ success, took, engine_result, engine_result_code, engine_result_message, tx_json, hash, accepted, applied, broadcast, kept, queued, account_sequence_available, account_sequence_next, validated_ledger_index, outcome? }'
        '400':
          description: tx_blob missing or malformed, or refused by the node (error_code)
        '409':
          description: Duplicate tx_blob within 30s
        '502':
          description: Outcome unknown — the transaction may still apply; resolve it by hash
      parameters: []
  /testnet/tx/{hash}:
    get:
      tags:
      - Testnet
      summary: 'A Testnet transaction and its final result, from our node: validated, the…'
      operationId: get_testnet_tx_hash
      parameters:
      - name: hash
        in: path
        required: true
        schema:
          type: string
        description: 64 hex characters
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                description: '{ hash, validated, ledger_index, result, close_time_iso, tx, meta }'
        '400':
          description: Malformed hash
        '404':
          description: Not found (the node has not seen it)
  /testnet/health:
    get:
      tags:
      - Testnet
      summary: Both collectors' head ledger against the network, and whether that is current
      operationId: get_testnet_health
      parameters: []
      responses:
        '200':
          description: Success
  /testnet/tokens:
    get:
      tags:
      - Testnet
      summary: Testnet tokens.
      operationId: get_testnet_tokens
      parameters:
      - name: sort
        in: query
        required: false
        schema:
          type: string
        description: vol24h | holders | trades24h | trustlines | tvl | firstSeen (default vol24h)
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: 1-100 (default 50)
      - name: page
        in: query
        required: false
        schema:
          type: integer
        description: from 1
      responses:
        '200':
          description: Success
  /testnet/tokens/{md5}:
    get:
      tags:
      - Testnet
      summary: A Testnet token with its AMM pool
      operationId: get_testnet_tokens_md5
      parameters:
      - name: md5
        in: path
        required: true
        schema:
          type: string
        description: md5(issuer_currency)
      responses:
        '200':
          description: Success
        '400':
          description: Malformed id
        '404':
          description: Not found
  /testnet/tokens/{md5}/holders:
    get:
      tags:
      - Testnet
      summary: Holders of a Testnet token, largest first
      operationId: get_testnet_tokens_md5_holders
      parameters:
      - name: md5
        in: path
        required: true
        schema:
          type: string
        description: md5(issuer_currency)
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: 1-200
      - name: page
        in: query
        required: false
        schema:
          type: integer
        description: from 1
      responses:
        '200':
          description: Success
        '400':
          description: Malformed id
        '404':
          description: Not found
  /testnet/tokens/{md5}/offers:
    get:
      tags:
      - Testnet
      summary: The order book of a Testnet token against XRP
      operationId: get_testnet_tokens_md5_offers
      parameters:
      - name: md5
        in: path
        required: true
        schema:
          type: string
        description: md5(issuer_currency)
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: per side, 1-100
      responses:
        '200':
          description: Success
        '400':
          description: Malformed id
        '404':
          description: Not found
  /testnet/tokens/{md5}/trades:
    get:
      tags:
      - Testnet
      summary: Fills of a Testnet token, newest first
      operationId: get_testnet_tokens_md5_trades
      parameters:
      - name: md5
        in: path
        required: true
        schema:
          type: string
        description: md5(issuer_currency)
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: 1-200
      - name: page
        in: query
        required: false
        schema:
          type: integer
        description: from 1
      responses:
        '200':
          description: Success
        '400':
          description: Malformed id
        '404':
          description: Not found
  /testnet/tokens/{md5}/ohlc:
    get:
      tags:
      - Testnet
      summary: 5-minute candles of a Testnet token
      operationId: get_testnet_tokens_md5_ohlc
      parameters:
      - name: md5
        in: path
        required: true
        schema:
          type: string
        description: md5(issuer_currency)
      - name: from
        in: query
        required: false
        schema:
          type: integer
        description: unix ms (default 7 days ago)
      - name: to
        in: query
        required: false
        schema:
          type: integer
        description: unix ms (default now)
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: 1-5000
      responses:
        '200':
          description: Success
        '400':
          description: Malformed id
        '404':
          description: Not found
  /testnet/accounts/{address}:
    get:
      tags:
      - Testnet
      summary: A Testnet account as the collector last saw it, with its trust lines, resting…
      operationId: get_testnet_accounts_address
      parameters:
      - name: address
        in: path
        required: true
        schema:
          type: string
        description: An XRPL address
      responses:
        '200':
          description: Success
        '400':
          description: Malformed id
        '404':
          description: Not found
  /testnet/amm:
    get:
      tags:
      - Testnet
      summary: Testnet AMM pools, deepest first.
      operationId: get_testnet_amm
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: 1-100
      - name: page
        in: query
        required: false
        schema:
          type: integer
        description: from 1
      responses:
        '200':
          description: Success
  /testnet/amm/{account}:
    get:
      tags:
      - Testnet
      summary: A Testnet AMM pool by its account
      operationId: get_testnet_amm_account
      parameters:
      - name: account
        in: path
        required: true
        schema:
          type: string
        description: The pool account
      responses:
        '200':
          description: Success
        '400':
          description: Malformed id
        '404':
          description: Not found
  /testnet/nft/collections:
    get:
      tags:
      - Testnet
      summary: Testnet NFT collections, by issuer and taxon.
      operationId: get_testnet_nft_collections
      parameters:
      - name: sort
        in: query
        required: false
        schema:
          type: string
        description: volume | items | sales | time | vol24h | sales24h (default volume)
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: 1-100
      - name: page
        in: query
        required: false
        schema:
          type: integer
        description: from 1
      responses:
        '200':
          description: Success
  /testnet/nft/collections/{id}:
    get:
      tags:
      - Testnet
      summary: A Testnet NFT collection
      operationId: get_testnet_nft_collections_id
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: issuer:taxon
      responses:
        '200':
          description: Success
        '400':
          description: Malformed id
        '404':
          description: Not found
  /testnet/nft/collections/{id}/nfts:
    get:
      tags:
      - Testnet
      summary: The live NFTs of a Testnet collection
      operationId: get_testnet_nft_collections_id_nfts
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: issuer:taxon
      - name: owner
        in: query
        required: false
        schema:
          type: string
        description: only this owner's
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: 1-200
      - name: page
        in: query
        required: false
        schema:
          type: integer
        description: from 1
      responses:
        '200':
          description: Success
        '400':
          description: Malformed id
        '404':
          description: Not found
  /testnet/nft/history:
    get:
      tags:
      - Testnet
      summary: Testnet NFT events, newest first
      operationId: get_testnet_nft_history
      parameters:
      - name: collection
        in: query
        required: false
        schema:
          type: string
        description: issuer:taxon
      - name: nft
        in: query
        required: false
        schema:
          type: string
        description: NFTokenID
      - name: account
        in: query
        required: false
        schema:
          type: string
        description: the sending account (one of the three is required)
      - name: type
        in: query
        required: false
        schema:
          type: string
        description: MINT | BURN | LIST | BID | CANCEL | SALE | TRANSFER | MODIFY
      - name: limit
        in: query
        required: false
        schema:
          type: integer
        description: 1-200
      - name: page
        in: query
        required: false
        schema:
          type: integer
        description: from 1
      responses:
        '200':
          description: Success
        '400':
          description: One of collection, nft or account is required
        '404':
          description: Not found
  /testnet/nft/{id}:
    get:
      tags:
      - Testnet
      summary: A Testnet NFT with the offers standing on it
      operationId: get_testnet_nft_id
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: NFTokenID
      responses:
        '200':
          description: Success
        '400':
          description: Malformed id
        '404':
          description: Not found
  /testnet/nft/{id}/offers:
    get:
      tags:
      - Testnet
      summary: The offers standing on a Testnet NFT, split by side
      operationId: get_testnet_nft_id_offers
      parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
        description: NFTokenID
      responses:
        '200':
          description: Success
        '400':
          description: Malformed id
        '404':
          description: Not found
  /testnet/fixtures:
    get:
      tags:
      - Testnet
      operationId: get_testnet_fixtures
      parameters: []
      responses:
        '200':
          description: '{ network_id, generated_at, age_seconds, population, accounts: { issuer, holders[], trader, busy[] }, tokens[], nft, objects, catalogue[] }'
      summary: 'What the simulation keeps alive on Testnet: live accounts, its tokens…'
      description: Rebuilt every few minutes by the simulation; age_seconds past a few minutes means Testnet was reset and it is catching up.
  /testnet/rpc:
    post:
      tags:
      - Testnet
      operationId: post_testnet_rpc
      parameters: []
      responses:
        '200':
          description: '{ success, took, method, result (the node''s own result, verbatim) }'
      summary: The XRP Ledger's own READ commands against our Testnet node — the half of…
      description: 'Every public read command of rippled''s own table (src/xrpld/rpc/detail/Handler.cpp, Role::USER), minus the ones that sign or submit and the ones that need a session: account_channels, account_currencies, account_info, account_lines, account_nfts, account_objects, account_offers, account_tx, amm_info, book_changes, book_offers, channel_verify, deposit_authorized, feature, fee, gateway_balances, get_aggregate_price, ledger, ledger_closed, ledger_current, ledger_data, ledger_entry, ledger_header, ledger_index, manifest, mpt_holders, nft_buy_offers, nft_history, nft_info, nft_sell_offers, nfts_by_issuer, noripple_check, owner_info, ping, random, ripple_path_find, server_definitions, server_info, server_state, simulate, transaction_entry, tx, tx_history, tx_reduce_relay, vault_info, version (the Clio-only ones answer unknownCmd on a node that is not Clio, which is itself the answer). subscribe, unsubscribe and path_find are WebSocket commands — open wss://api.xrpl.to/v1/testnet/ws (our Testnet node, no key) and send them there'
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