Saturn Documentation
Launch App
  • Saturn
  • Traders
    • Trading in Saturn
    • How to Swap
    • How Saturn Protects Your Trades from MEV Risks
  • Liquidity Providers
    • Open a position in a Liquidity Pool
    • Managing your Portfolio on Saturn
  • Token Creators
    • How to Create a Pool on Saturn
  • Builders
    • Saturn API
      • Pool API
        • Initialize pool
        • Add Shards
        • Open position
        • Increase Liquidity
        • Remove Liquidity
        • Swap
        • Swap Quotes
        • Boost Transaction
        • Wallet
      • Indexer API
        • Collections
        • Pools
        • Prices
        • Positions
        • Transactions
        • Charts
        • Stats
    • Liquidity Pool SDK
  • Saturn V1
    • Overview
    • How-To-Links
      • Setting up Trading Account
        • Withdrawing from Trading account
      • Swap
      • Orderbook
        • Your Profile
          • Trade History
        • How to place a sell order
        • How to place a buy order
        • Positions
      • Collect
      • Charts
      • Tutorial videos
        • Setting up a Trading Account (v3) and preparing for Rings Airdrops
        • Trading on Saturn
    • FAQs
      • What are Satoshi's, Rare SATs, and Rings?
        • More on Rare SATs
      • What is a UTXO
      • What is a PSBT
      • Why are there batch sizes?
      • Compatible Wallets
      • Why is my Available balance different than my Total balance?
Powered by GitBook
On this page
  1. Builders
  2. Saturn API
  3. Pool API

Wallet

PreviousBoost TransactionNextIndexer API

Last updated 1 month ago

Balance Endpoint

Overview

The Balance Endpoint offers comprehensive balance and transaction data for specified wallet addresses. This endpoint is specifically tailored to provide detailed insights into the runes and bitcoin associated with a given address.

Functionality

  • Address Parameter: Users must specify a wallet address to query its balance and transaction data.

  • Real-Time Data on Runes: The endpoint focuses on providing detailed information about runes and bitcoin held in the queried wallet.

  • UTXOs and UTXOsIds: Understanding the difference between utxos and utxosIds is crucial:

    • utxos: This array contains detailed information about each unspent transaction output (UTXO) that has been parsed and is available for the specified wallet address.

    • utxosIds: Represents all UTXOs associated with the wallet, including those not yet parsed. Initially, new wallet queries may show only utxosIds without corresponding utxos data, indicating that parsing is pending. Subsequent queries will reveal detailed UTXO data as parsing is completed.

Endpoint Details

  • Parameters:

    • address (string, required): The wallet address for which balance and UTXO data is requested.

Response Structure

The response from this endpoint provides a JSON object with the following key details:

  • address: The queried wallet address.

  • balance: The overall balance of the wallet.

  • utxos: An array of UTXO objects, each containing:

    • Details about its balance and associated collections.

    • Information on any inscriptions, including their content and metadata.

  • utxosIds: An array of UTXO IDs representing all UTXOs associated with the wallet.

  • Each UTXO and collection item contains additional fields such as market price, batch size, verification status, and timestamps.

Get wallet balance and UTXO data

get
Authorizations
Query parameters
addressstringRequired
Responses
200
Wallet - The wallet's balance runes, btc and UTXO data.
application/json
401
Unauthorized
application/json
500
Internal Server Error
application/json
get
GET /v0/wallet/balance HTTP/1.1
Host: api-dev.saturnbtc.io
x-api-key: YOUR_API_KEY
Accept: */*
{
  "address": "text",
  "balance": "text",
  "utxosIds": [
    "text"
  ],
  "utxos": [
    {
      "collectionStatuses": [
        {
          "type": null,
          "id": "text",
          "name": "text",
          "displayName": "text",
          "symbol": null,
          "divisibility": 1,
          "supply": "text",
          "createdAt": "text",
          "updatedAt": "text",
          "batchSize": 1,
          "isWatchedByUser": true,
          "amount": "text",
          "riskyAmount": "text"
        }
      ],
      "isUsed": true,
      "hasInscription": true,
      "inscriptionIds": [
        "text"
      ],
      "txid": "text",
      "vout": 1,
      "status": {
        "confirmed": true,
        "block_height": 1,
        "block_hash": "text",
        "block_time": 1
      },
      "value": "text"
    }
  ]
}