Spraay Solana API

The solana API from Spraay — 6 operation(s) for solana.

GitHub OpenAPI

Operations 6

GET /api/v1/solana/jupiter/quote Jupiter v6 swap quote on Solana — $0.005 #
POST /api/v1/solana/jupiter/swap-tx Build unsigned Jupiter swap transaction — $0.01 #
GET /api/v1/solana/helius/assets-by-owner Helius DAS: list assets by Solana wallet — $0.003 #
GET /api/v1/solana/helius/asset Helius DAS: full metadata for a Solana asset — $0.002 #
GET /api/v1/solana/pyth/price Pyth latest price for one feed — $0.005 #
GET /api/v1/solana/pyth/prices Pyth batch prices (up to 50 feeds) — $0.008 #

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/spraay-app:spraay-app-solana-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

spraay-app-solana-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Spraay App Solana API
  version: 3.8.3
  contact:
    name: Spraay
    url: https://spraay.app
    email: hello@spraay.app
  license:
    name: MIT
  x-guidance: Spraay is a multi-chain payment and AI inference gateway with 160 paid endpoints. Use POST /api/v1/chat/completions for LLM chat (200+ models, OpenAI-compatible). POST /api/v1/batch/execute for batch USDC payments. GET /api/v1/oracle/prices for real-time price feeds. POST /api/v1/robots/task to dispatch robot tasks via RTP. POST /api/v1/search/qna for structured Q&A. Bittensor decentralized AI at /bittensor/v1/chat/completions. Supply chain at /api/v1/sctp/*. All endpoints accept micropayments via x402 and MPP (USDC on Base). No API keys needed — just pay per call.
  description: 'Operations tagged solana across 2 of this provider''s published API definitions: gateway.spraay.app.json, spraay-app-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://gateway.spraay.app
  description: Production (Base mainnet)
security:
- x402: []
tags:
- name: solana
paths:
  /api/v1/solana/jupiter/quote:
    get:
      operationId: solana-jupiter-quote
      summary: Jupiter v6 swap quote on Solana — $0.005
      tags:
      - solana
      description: Paid endpoint — $0.005 per call via x402/MPP. See https://gateway.spraay.app/.well-known/x402.json for full payment details.
      x-payment-info:
        price:
          mode: fixed
          amount: '0.005000'
          currency: USD
        protocols:
        - mpp: {}
        - x402: {}
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  inAmount:
                    type: string
                  outAmount:
                    type: string
                  priceImpactPct:
                    type: string
        '402':
          description: Payment Required
      parameters:
      - name: inputMint
        in: query
        required: true
        schema:
          type: string
      - name: outputMint
        in: query
        required: true
        schema:
          type: string
      - name: amount
        in: query
        required: true
        schema:
          type: string
      - name: slippageBps
        in: query
        required: false
        schema:
          type: string
    servers:
    - url: https://gateway.spraay.app
      description: Production (Base mainnet)
  /api/v1/solana/jupiter/swap-tx:
    post:
      operationId: solana-jupiter-swap-tx
      summary: Build unsigned Jupiter swap transaction — $0.01
      tags:
      - solana
      description: Paid endpoint — $0.01 per call via x402/MPP. See https://gateway.spraay.app/.well-known/x402.json for full payment details.
      x-payment-info:
        price:
          mode: fixed
          amount: '0.010000'
          currency: USD
        protocols:
        - mpp: {}
        - x402: {}
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  swapTransaction:
                    type: string
                  lastValidBlockHeight:
                    type: number
        '402':
          description: Payment Required
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                quoteResponse:
                  type: object
                userPublicKey:
                  type: string
              required:
              - quoteResponse
              - userPublicKey
    servers:
    - url: https://gateway.spraay.app
      description: Production (Base mainnet)
  /api/v1/solana/helius/assets-by-owner:
    get:
      operationId: solana-helius-assets-by-owner
      summary: 'Helius DAS: list assets by Solana wallet — $0.003'
      tags:
      - solana
      description: Paid endpoint — $0.003 per call via x402/MPP. See https://gateway.spraay.app/.well-known/x402.json for full payment details.
      x-payment-info:
        price:
          mode: fixed
          amount: '0.003000'
          currency: USD
        protocols:
        - mpp: {}
        - x402: {}
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  owner:
                    type: string
                  total:
                    type: number
                  items:
                    type: array
        '402':
          description: Payment Required
      parameters:
      - name: owner
        in: query
        required: true
        schema:
          type: string
      - name: page
        in: query
        required: false
        schema:
          type: string
      - name: limit
        in: query
        required: false
        schema:
          type: string
    servers:
    - url: https://gateway.spraay.app
      description: Production (Base mainnet)
  /api/v1/solana/helius/asset:
    get:
      operationId: solana-helius-asset
      summary: 'Helius DAS: full metadata for a Solana asset — $0.002'
      tags:
      - solana
      description: Paid endpoint — $0.002 per call via x402/MPP. See https://gateway.spraay.app/.well-known/x402.json for full payment details.
      x-payment-info:
        price:
          mode: fixed
          amount: '0.002000'
          currency: USD
        protocols:
        - mpp: {}
        - x402: {}
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                  asset:
                    type: object
        '402':
          description: Payment Required
      parameters:
      - name: id
        in: query
        required: true
        schema:
          type: string
    servers:
    - url: https://gateway.spraay.app
      description: Production (Base mainnet)
  /api/v1/solana/pyth/price:
    get:
      operationId: solana-pyth-price
      summary: Pyth latest price for one feed — $0.005
      tags:
      - solana
      description: Paid endpoint — $0.005 per call via x402/MPP. See https://gateway.spraay.app/.well-known/x402.json for full payment details.
      x-payment-info:
        price:
          mode: fixed
          amount: '0.005000'
          currency: USD
        protocols:
        - mpp: {}
        - x402: {}
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  symbol:
                    type: string
                  price:
                    type: number
                  confidence:
                    type: number
        '402':
          description: Payment Required
      parameters:
      - name: feedId
        in: query
        required: true
        schema:
          type: string
    servers:
    - url: https://gateway.spraay.app
      description: Production (Base mainnet)
  /api/v1/solana/pyth/prices:
    get:
      operationId: solana-pyth-prices
      summary: Pyth batch prices (up to 50 feeds) — $0.008
      tags:
      - solana
      description: Paid endpoint — $0.008 per call via x402/MPP. See https://gateway.spraay.app/.well-known/x402.json for full payment details.
      x-payment-info:
        price:
          mode: fixed
          amount: '0.008000'
          currency: USD
        protocols:
        - mpp: {}
        - x402: {}
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  count:
                    type: number
                  prices:
                    type: object
        '402':
          description: Payment Required
      parameters:
      - name: feedIds
        in: query
        required: true
        schema:
          type: string
    servers:
    - url: https://gateway.spraay.app
      description: Production (Base mainnet)
components:
  securitySchemes:
    x402:
      type: http
      scheme: x402
      description: Pay per-call with USDC on Base to 0x86e43BD1d94802bcF431707b67ff4c8F5B7267Ec
externalDocs:
  description: Full docs
  url: https://docs.spraay.app
x-refined-from:
- gateway.spraay.app.json
- spraay-app-openapi.json
x-discovery:
  ownershipProofs: []