UNRENT Embed API

The Embed API from UNRENT, for embed.

GitHub OpenAPI

Operations 2

POST /embed/scan Scan a wallet inside a dApp that embeds UNRENT #
POST /embed/build Create unsigned reclaim transactions inside an embedding dApp #

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/unrent-xyz:unrent-xyz-embed-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

unrent-xyz-embed-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: UNRENT Embed API
  version: 1.0.0
  description: Reclaim overpaid rent from Solana token accounts. SIMD-0437 lowers lamports_per_byte from 6,960 to 696 in five steps; existing accounts keep their old deposit until it is withdrawn. UNRENT scans wallets and builds unsigned reclaim transactions (WithdrawExcessLamports, CloseAccount) for the wallet to sign. Non-custodial. Scans are paid per request; reclaims carry UNRENT's service fee inside the transactions and cost nothing extra.
  contact:
    url: https://unrent.xyz
servers:
- url: https://unrent.xyz/api/v1
tags:
- name: Embed
paths:
  /embed/scan:
    post:
      operationId: embedScan
      summary: Scan a wallet inside a dApp that embeds UNRENT
      description: 'For dApps (see https://unrent.xyz/developers): free, rate limited per visitor. Needs the dApp''s referral code as `partner`, which earns a share of the fee on every claim built through /embed/build. Reclaimable SOL, fee, partner share, net and the next step; no burn.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                wallet:
                  type: string
                  description: Solana wallet address (base58).
                partner:
                  type: string
                  minLength: 1
                  maxLength: 32
                  description: Referral code of the dApp that embeds UNRENT (from unrent.xyz/referral). It receives the partner share of the fee.
              required:
              - wallet
              - partner
            example:
              wallet: C569uDVow3rhCRT8GNp9xdzpU19rp6Deem4LQgCf89XZ
              partner: yourdapp
      responses:
        '200':
          description: Reclaimable SOL, fee with the partner share, net and the next step.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: 'Invalid input: `{ error }`.'
          content:
            application/json:
              schema:
                type: object
        '429':
          description: 'Rate limited: `{ error }`.'
          content:
            application/json:
              schema:
                type: object
        '503':
          description: 'Busy: the scan queue is full. Try again shortly.'
          content:
            application/json:
              schema:
                type: object
      tags:
      - Embed
  /embed/build:
    post:
      operationId: embedBuild
      summary: Create unsigned reclaim transactions inside an embedding dApp
      description: Like /reclaim/build without burns; the partner share of the fee goes to the dApp's wallet inside the same transactions. Submit the signed transactions to /reclaim/submit.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                wallet:
                  type: string
                  description: Solana wallet address (base58).
                partner:
                  type: string
                  minLength: 1
                  maxLength: 32
                  description: Referral code of the dApp that embeds UNRENT (from unrent.xyz/referral). It receives the partner share of the fee.
                accounts:
                  description: 'Only these account addresses (from a scan). Default: everything reclaimable.'
                  maxItems: 2000
                  type: array
                  items:
                    type: string
              required:
              - wallet
              - partner
            example:
              wallet: C569uDVow3rhCRT8GNp9xdzpU19rp6Deem4LQgCf89XZ
              partner: yourdapp
      responses:
        '200':
          description: claimId, base64 transactions and a summary in SOL.
          content:
            application/json:
              schema:
                type: object
        '400':
          description: 'Invalid input: `{ error }`.'
          content:
            application/json:
              schema:
                type: object
        '404':
          description: Nothing to reclaim.
          content:
            application/json:
              schema:
                type: object
        '429':
          description: 'Rate limited: `{ error }`.'
          content:
            application/json:
              schema:
                type: object
        '503':
          description: 'Busy: the scan queue is full. Try again shortly.'
          content:
            application/json:
              schema:
                type: object
      tags:
      - Embed