---
title: "Fetch lightning onchain transactions"
method: GET
path: "/api/v2/wallet/{walletId}/lightning/transaction"
tags: ["Lightning"]
---

# Fetch lightning onchain transactions

`GET /api/v2/wallet/{walletId}/lightning/transaction`

This API call is used to fetch current lightning onchain transactions.

## Path parameters

- `walletId` string, required

## Query parameters

- `blockHeight` string, number
- `limit` string, number
- `startDate` string, date-time
- `endDate` string, date-time
- `prevId` string

## Response `200`

OK

- GetTransactionsResponse
  - `transactions` object[], required
    - `id` string, required
    - `normalizedTxHash` string, required
    - `blockHeight` number, required
    - `inputIds` unknown, required
    - `entries` unknown, required
    - `inputs` unknown, required
    - `outputs` unknown, required
    - `size` number, required
    - `date` string, date-time, required
    - `fee` number, required
    - `feeString` string, required
    - `hex` string, required
    - `confirmations` number, required
    - `blockHash` string
    - `blockPosition` number
    - `label` string
  - `nextBatchPrevId` string — This is the transaction ID from the last item in the current batch. Providing this value as the prevId in the next request will return the next batch of transactions.

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.net/bitgo/apis/bitgo-api.md) · [All operations](https://skmtc.net/bitgo/apis/bitgo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bitgo/bitgo-api/revisions/e445c15e5bee/schema)
