> ## 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.

# Get wallet balance

> Returns the wallet balance broken down by category: spendable sats available for immediate use, sats pending in an Ark round, sats locked in outgoing or incoming Lightning payments, sats awaiting board confirmation, and sats in a pending exit. The balance is computed from local state, which the background daemon keeps reasonably fresh (Lightning syncs every second, mailbox and boards every 30 seconds). For the most up-to-date figures, call `sync` before this endpoint.



## OpenAPI

````yaml https://gitlab.com/ark-bitcoin/bark/-/raw/master/bark-rest/openapi.json get /api/v1/wallet/balance
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/wallet/balance:
    get:
      tags:
        - wallet
      summary: Get wallet balance
      description: >-
        Returns the wallet balance broken down by category: spendable sats
        available for immediate use, sats pending in an Ark round, sats locked
        in outgoing or incoming Lightning payments, sats awaiting board
        confirmation, and sats in a pending exit. The balance is computed from
        local state, which the background daemon keeps reasonably fresh
        (Lightning syncs every second, mailbox and boards every 30 seconds). For
        the most up-to-date figures, call `sync` before this endpoint.
      operationId: balance
      responses:
        '200':
          description: Returns the wallet balance
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Balance'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
components:
  schemas:
    Balance:
      type: object
      description: |-
        The different balances of a Bark wallet, broken down by state.

        All amounts are in sats.
      required:
        - spendable_sat
        - pending_lightning_send_sat
        - claimable_lightning_receive_sat
        - pending_in_round_sat
        - pending_board_sat
      properties:
        claimable_lightning_receive_sat:
          type: integer
          format: int64
          description: |-
            Sats from an incoming Lightning payment that can be claimed but
            have not yet been swept into a spendable VTXO.
          minimum: 0
        pending_board_sat:
          type: integer
          format: int64
          description: |-
            Sats in board transactions that are waiting for sufficient
            on-chain confirmations before becoming spendable.
          minimum: 0
        pending_exit_sat:
          type:
            - integer
            - 'null'
          format: int64
          description: |-
            Sats in VTXOs undergoing an emergency exit back on-chain.
            `null` if the exit subsystem is unavailable.
          minimum: 0
        pending_in_round_sat:
          type: integer
          format: int64
          description: |-
            Sats locked in VTXOs forfeited for a round that has not yet
            completed.
          minimum: 0
        pending_lightning_send_sat:
          type: integer
          format: int64
          description: |-
            Sats locked in an outgoing Lightning payment that has not yet
            settled.
          minimum: 0
        spendable_sat:
          type: integer
          format: int64
          description: |-
            Sats that are immediately spendable, either in-round or
            out-of-round.
          minimum: 0
    InternalServerError:
      type: object
      required:
        - message
      properties:
        message:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: AuthToken
      description: Base64url-encoded auth token

````