> ## Documentation Index
> Fetch the complete documentation index at: https://second.tech/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# List on-chain UTXOs

> Returns all UTXOs in the on-chain wallet. Each entry includes the outpoint, amount, and confirmation height (if confirmed).



## OpenAPI

````yaml https://gitlab.com/ark-bitcoin/bark/-/raw/master/bark-rest/openapi.json get /api/v1/onchain/utxos
openapi: 3.1.0
info:
  title: barkd REST API
  description: >-
    A simple REST API for barkd, a wallet daemon for integrating bitcoin
    payments into your app over HTTP. Supports self-custodial Lightning, Ark,
    and on-chain out of the box.


    barkd is a long-running daemon best suited for always-on or
    high-connectivity environments like nodes, servers, desktops, and
    point-of-sale terminals.


    All endpoints return JSON. Amounts are denominated in satoshis.
  contact:
    name: Second Team
    email: hello@second.tech
  license:
    name: MIT
    identifier: MIT
  version: 0.1.4
servers: []
security:
  - bearer: []
tags:
  - name: boards
    description: Move on-chain bitcoin onto the Ark protocol.
  - name: exits
    description: Move bitcoin back on-chain without server cooperation.
  - name: fees
    description: Estimate fees for wallet operations before executing them.
  - name: lightning
    description: Create Lightning invoices and track receives.
  - name: onchain
    description: Manage barkd's on-chain bitcoin wallet.
  - name: wallet
    description: Manage Ark balances and VTXOs, send payments via Ark, LN, and on-chain.
  - name: bitcoin
    description: Query bitcoin network data.
  - name: notifications
    description: Receive real-time notifications from barkd.
paths:
  /api/v1/onchain/utxos:
    get:
      tags:
        - onchain
      summary: List on-chain UTXOs
      description: >-
        Returns all UTXOs in the on-chain wallet. Each entry includes the
        outpoint, amount, and confirmation height (if confirmed).
      operationId: onchain_utxos
      responses:
        '200':
          description: Returns the on-chain UTXOs
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/UtxoInfo'
components:
  schemas:
    UtxoInfo:
      type: object
      description: >-
        Struct representing information about an Unspent Transaction Output
        (UTXO).


        This structure provides details about a UTXO, which includes the
        outpoint (transaction ID and

        index), the associated amount in satoshis, and the block height at which
        the transaction was

        confirmed (if available).


        # Serde Behavior


        * The `amount` field is serialized and deserialized with a custom
        function from the `bitcoin`
          crate that ensures the value is interpreted as satoshis with the name `amount_sat`.
      required:
        - outpoint
        - amount_sat
      properties:
        amount_sat:
          type: integer
          format: int64
          description: The value of the UTXO in satoshis.
          minimum: 0
        confirmation_height:
          type:
            - integer
            - 'null'
          format: int32
          description: >-
            An optional field that specifies the block height at which the
            transaction was confirmed. If

            the transaction is unconfirmed, this value will be `None`.
          minimum: 0
        outpoint:
          type: string
          description: >-
            Contains the reference to the specific transaction output via
            transaction ID and index.
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: AuthToken
      description: Base64url-encoded auth token

````