> ## 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 remaining exit transactions

> Lists every exit transaction of the given VTXOs not yet confirmed on-chain: per VTXO, the transaction ids it needs confirmed in broadcast order, plus each transaction exactly once with parents before children. Read-only: nothing is signed and the wallet is never touched, so this works whether or not an exit has been started. Transaction statuses reflect the last exit sync; the daemon refreshes them at the cadence of `SLOW_INTERVAL`, and `POST /exits/progress` forces a refresh. Use `POST /exits/presign` to sign CPFP children for the listed transactions.



## OpenAPI

````yaml https://gitlab.com/ark-bitcoin/bark/-/raw/master/bark-rest/openapi.json get /api/v1/exits/remaining
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.8.1
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: history
    description: Inspect and annotate wallet movement history.
  - name: lightning
    description: Create Lightning invoices and track receives.
  - name: message
    description: Sign arbitrary messages with the wallet's keys and verify signed messages.
  - 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/exits/remaining:
    get:
      tags:
        - exits
      summary: List remaining exit transactions
      description: >-
        Lists every exit transaction of the given VTXOs not yet confirmed
        on-chain: per VTXO, the transaction ids it needs confirmed in broadcast
        order, plus each transaction exactly once with parents before children.
        Read-only: nothing is signed and the wallet is never touched, so this
        works whether or not an exit has been started. Transaction statuses
        reflect the last exit sync; the daemon refreshes them at the cadence of
        `SLOW_INTERVAL`, and `POST /exits/progress` forces a refresh. Use `POST
        /exits/presign` to sign CPFP children for the listed transactions.
      operationId: remaining_exit_transactions
      parameters:
        - name: vtxo_ids
          in: query
          description: >-
            Comma-separated VTXO ids to inspect; omit to inspect the entire
            wallet
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Returns the remaining exit transactions
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RemainingExitTransactions'
        '400':
          description: >-
            A VTXO is unknown, non-standard, already exited, or already spent,
            or a parameter is invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BadRequestError'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalServerError'
components:
  schemas:
    RemainingExitTransactions:
      type: object
      description: The exit transactions of a set of VTXOs still awaiting confirmation.
      required:
        - exits
        - transactions
      properties:
        exits:
          type: object
          description: >-
            The transactions each VTXO needs confirmed to be exited, in
            broadcast order.
          additionalProperties:
            type: array
            items:
              type: string
          propertyNames:
            type: string
        transactions:
          type: array
          items:
            $ref: '#/components/schemas/TransactionInfo'
          description: >-
            Every transaction referenced by `exits` exactly once, parents before
            children.
    BadRequestError:
      type: object
      required:
        - message
      properties:
        message:
          type: string
    InternalServerError:
      type: object
      required:
        - message
      properties:
        message:
          type: string
    TransactionInfo:
      type: object
      description: >-
        An information struct used to pair the ID of a transaction with the full
        transaction for ease

        of use and readability for the user
      required:
        - txid
        - tx
      properties:
        tx:
          type: string
        txid:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: AuthToken
      description: Base64url-encoded auth token

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.