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

> Returns all on-chain wallet transactions, ordered from oldest to newest. Each entry includes the raw transaction, its fee (when known), the wallet's net balance change, and confirmation status. The fee is `null` for inbound or collaboratively-funded transactions whose foreign prevouts BDK has not indexed.



## OpenAPI

````yaml https://gitlab.com/ark-bitcoin/bark/-/raw/master/bark-rest/openapi.json get /api/v1/onchain/transactions
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.6.0
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: 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/transactions:
    get:
      tags:
        - onchain
      summary: List on-chain transactions
      description: >-
        Returns all on-chain wallet transactions, ordered from oldest to newest.
        Each entry includes the raw transaction, its fee (when known), the
        wallet's net balance change, and confirmation status. The fee is `null`
        for inbound or collaboratively-funded transactions whose foreign
        prevouts BDK has not indexed.
      operationId: onchain_transactions
      responses:
        '200':
          description: Returns the on-chain transactions
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WalletTxInfo'
components:
  schemas:
    WalletTxInfo:
      type: object
      description: >-
        A richer wallet-transaction summary returned by the onchain transactions
        endpoint.


        Includes the raw transaction plus its fee, the wallet's net balance
        change, and

        confirmation status.
      required:
        - txid
        - tx
        - balance_change_sat
        - is_cpfp
      properties:
        balance_change_sat:
          type: integer
          format: int64
          description: >-
            Net change to the wallet's balance: `received - sent` over
            wallet-owned outputs.

            Positive for inbound, negative for outbound, zero for self-spends
            with no net change.
        confirmation:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/BlockRef'
              description: >-
                `Some` when the transaction is mined; `None` while still in the
                mempool.
        is_cpfp:
          type: boolean
          description: >-
            `true` when this tx spends a P2A fee anchor output — i.e. it is a
            CPFP

            child bumping its parent. In bark this typically means the wallet is

            fee-bumping an exit transaction.
        onchain_fee_sat:
          type:
            - integer
            - 'null'
          format: int64
          description: >-
            Total fee paid by the transaction, when known. `None` for txs whose
            foreign

            prevouts BDK has not indexed (e.g. inbound payments observed via the

            bitcoind-rpc sync path; esplora sync always populates prevouts).
          minimum: 0
        tx:
          type: string
        txid:
          type: string
    BlockRef:
      type: object
      description: >-
        Reference to a block in the blockchain.


        Contains the block height and hash. Serializes as an object with
        `height` and `hash` fields.
      required:
        - height
        - hash
      properties:
        hash:
          type: string
        height:
          $ref: '#/components/schemas/u32'
    u32:
      type: integer
      format: int32
      minimum: 0
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      bearerFormat: AuthToken
      description: Base64url-encoded auth token

````