xpay-sh Wallet API

The Wallet API from xpay-sh — 2 operation(s) for wallet.

Operations 2

GET /wallet/balance Check wallet balance #
POST /wallet/deposit Record deposit #

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/xpay-sh:xpay-sh-wallet-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

xpay-sh-wallet-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: xpay Hub Wallet API
  description: REST API for the xpay Hub marketplace. Run AI agents, tools, and prompts (RDAs) with pay-per-use USDC pricing.
  version: 1.0.0
  contact:
    name: xpay Support
    email: support@xpay.sh
    url: https://docs.xpay.sh
  license:
    name: Proprietary
servers:
- url: https://api.xpay.sh/hub
  description: Production
security:
- bearerAuth: []
tags:
- name: Wallet
paths:
  /wallet/balance:
    get:
      summary: Check wallet balance
      description: Get your current wallet balance, available balance, and locked funds.
      operationId: getWalletBalance
      responses:
        '200':
          description: Wallet balance
          content:
            application/json:
              schema:
                type: object
                properties:
                  wallet:
                    $ref: '#/components/schemas/Wallet'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Wallet
  /wallet/deposit:
    post:
      summary: Record deposit
      description: Record a USDC deposit to your wallet. Send USDC on Base to your wallet address, then call this endpoint to update your balance.
      operationId: recordDeposit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - amount
              properties:
                amount:
                  type: number
                  description: USDC amount deposited
                  exclusiveMinimum: 0
                transactionHash:
                  type: string
                  description: On-chain transaction hash
      responses:
        '200':
          description: Deposit recorded
          content:
            application/json:
              schema:
                type: object
                properties:
                  deposited:
                    type: boolean
                  amount:
                    type: number
                  transactionHash:
                    type: string
                  newBalance:
                    type: number
        '400':
          description: Invalid amount
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Duplicate transaction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Wallet
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        code:
          type: string
        details:
          type: object
    Wallet:
      type: object
      properties:
        userId:
          type: string
        walletAddress:
          type: string
        balance:
          type: number
          description: Total USDC balance
        availableBalance:
          type: number
          description: Balance available for spending
        pendingLocks:
          type: object
          additionalProperties:
            type: number
        totalLocked:
          type: number
        totalDeposited:
          type: number
        totalSpent:
          type: number
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Privy authentication token