# List transactions

Returns the team's transaction records, newest first, with cursor pagination.

Source: https://zerocopy.sh/docs/reference/management-api/list-transactions

`GET https://console.zerocopy.sh/api/v1/transactions`

Authentication: API key, one of: `Authorization: Bearer` header.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `limit` | query | integer | no | Default `50`. |
| `cursor` | query | string | no | `next_cursor` from the previous page |
| `from` | query | string (date-time) | no | RFC 3339; defaults to 24 hours before `to` |
| `to` | query | string (date-time) | no | RFC 3339; defaults to now |
| `key_id` | query | string | no |  |
| `outcome` | query | `"landed"` or `"failed"` or `"expired"` | no |  |

## Responses

### 200

A page of transactions

Content type: `application/json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | array of object | yes |  |
| `data[].signature` | string | yes |  |
| `data[].received_at` | string (date-time) | yes | RFC 3339 time |
| `data[].key_id` | string | yes |  |
| `data[].metro` | string | yes |  |
| `data[].kind` | `"tx"` or `"bundle_tx"` | yes |  |
| `data[].bundle_id` | string or null | yes |  |
| `data[].paths` | array of `"quic"` or `"jito"` or `"harmonic"` or `"dbi"` or `"everstake"` or `"gbx"` | yes |  |
| `data[].outcome` | `"landed"` or `"failed"` or `"expired"` | yes |  |
| `data[].error` | string or null | yes |  |
| `data[].sent_slot` | integer | yes | minimum: `-9007199254740991`. maximum: `9007199254740991`. |
| `data[].landed_slot` | integer or null | yes |  |
| `data[].slots_to_land` | integer or null | yes |  |
| `data[].tip_lamports` | integer | yes | Lamports transferred to tip accounts minimum: `-9007199254740991`. maximum: `9007199254740991`. |
| `data[].token_tips` | array of object | yes | Token transfers to tip accounts' token accounts; empty when none |
| `data[].token_tips[].mint` | string | yes | Base58 mint address |
| `data[].token_tips[].symbol` | `"USDC"` or `"USDT"` or `"WSOL"` | yes |  |
| `data[].token_tips[].amount` | integer | yes | Base units of the token minimum: `-9007199254740991`. maximum: `9007199254740991`. |
| `data[].token_tip_lamports` | integer | yes | SOL value of the token tips when sent, in lamports minimum: `-9007199254740991`. maximum: `9007199254740991`. |
| `data[].priority_fee_lamports` | integer | yes | minimum: `-9007199254740991`. maximum: `9007199254740991`. |
| `next_cursor` | string or null | yes |  |

```json title="Landed transaction"
{
  "data": [
    {
      "signature": "2Zjg5PESjNfkUvSjHAS71SnAcUTs9VEqYK87QzNhyDuAgqK1fBfXfxENuV4JwPFizwFn5tWwLcWFDgGz9q66DwdD",
      "received_at": "2026-11-13T02:13:34.123Z",
      "key_id": "key_012345abcdef",
      "metro": "fra",
      "kind": "tx",
      "bundle_id": null,
      "paths": [
        "quic",
        "jito"
      ],
      "outcome": "landed",
      "error": null,
      "sent_slot": 450000123,
      "landed_slot": 450000125,
      "slots_to_land": 2,
      "tip_lamports": 2000000,
      "token_tips": [
        {
          "mint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
          "symbol": "USDC",
          "amount": 250000
        }
      ],
      "token_tip_lamports": 1250000,
      "priority_fee_lamports": 50000
    }
  ],
  "next_cursor": null
}
```

### 400

A refusal; `code` is stable

Content type: `application/problem+json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `title` | string | yes |  |
| `status` | integer | yes | minimum: `-9007199254740991`. maximum: `9007199254740991`. |
| `code` | string | yes | Stable, for programs to branch on |
| `detail` | string | yes |  |
| `request_id` | string | yes |  |
| `errors` | array of object | no |  |
| `errors[].path` | string | yes |  |
| `errors[].message` | string | yes |  |

```json title="Invalid request"
{
  "title": "Bad request",
  "status": 400,
  "code": "invalid_request",
  "detail": "The request does not match the schema.",
  "request_id": "8d4ac3b9-e451-4ca4-9a7f-b3928f0b1672"
}
```

### 401

A refusal; `code` is stable

Content type: `application/problem+json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `title` | string | yes |  |
| `status` | integer | yes | minimum: `-9007199254740991`. maximum: `9007199254740991`. |
| `code` | string | yes | Stable, for programs to branch on |
| `detail` | string | yes |  |
| `request_id` | string | yes |  |
| `errors` | array of object | no |  |
| `errors[].path` | string | yes |  |
| `errors[].message` | string | yes |  |

```json title="Unknown, revoked or expired management key"
{
  "title": "Unauthorized",
  "status": 401,
  "code": "unauthorized",
  "detail": "The management key is unknown, revoked or expired.",
  "request_id": "8d4ac3b9-e451-4ca4-9a7f-b3928f0b1672"
}
```

### 403

A refusal; `code` is stable

Content type: `application/problem+json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `title` | string | yes |  |
| `status` | integer | yes | minimum: `-9007199254740991`. maximum: `9007199254740991`. |
| `code` | string | yes | Stable, for programs to branch on |
| `detail` | string | yes |  |
| `request_id` | string | yes |  |
| `errors` | array of object | no |  |
| `errors[].path` | string | yes |  |
| `errors[].message` | string | yes |  |

```json title="IP restriction"
{
  "title": "Forbidden",
  "status": 403,
  "code": "forbidden_ip",
  "detail": "This key does not allow requests from this address.",
  "request_id": "8d4ac3b9-e451-4ca4-9a7f-b3928f0b1672"
}
```

### 404

A refusal; `code` is stable

Content type: `application/problem+json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `title` | string | yes |  |
| `status` | integer | yes | minimum: `-9007199254740991`. maximum: `9007199254740991`. |
| `code` | string | yes | Stable, for programs to branch on |
| `detail` | string | yes |  |
| `request_id` | string | yes |  |
| `errors` | array of object | no |  |
| `errors[].path` | string | yes |  |
| `errors[].message` | string | yes |  |

```json title="Unknown route"
{
  "title": "Not found",
  "status": 404,
  "code": "not_found",
  "detail": "No such route.",
  "request_id": "8d4ac3b9-e451-4ca4-9a7f-b3928f0b1672"
}
```

### 429

A refusal; `code` is stable

Content type: `application/problem+json`

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `title` | string | yes |  |
| `status` | integer | yes | minimum: `-9007199254740991`. maximum: `9007199254740991`. |
| `code` | string | yes | Stable, for programs to branch on |
| `detail` | string | yes |  |
| `request_id` | string | yes |  |
| `errors` | array of object | no |  |
| `errors[].path` | string | yes |  |
| `errors[].message` | string | yes |  |

```json title="Management read limit"
{
  "title": "Too many requests",
  "status": 429,
  "code": "rate_limited",
  "detail": "This key may make 600 such requests a minute.",
  "request_id": "8d4ac3b9-e451-4ca4-9a7f-b3928f0b1672"
}
```

```json title="Concurrent analytics limit"
{
  "title": "Too many requests",
  "status": 429,
  "code": "analytics_busy",
  "detail": "This team already has two analytics reads running.",
  "request_id": "8d4ac3b9-e451-4ca4-9a7f-b3928f0b1672"
}
```

## Code samples

```rust title="Rust"
// src/bin/management_transactions.rs
// Builds on the example project (/reference/json-rpc#example-project).
use swqos_examples::swqos::{Result, required};

#[tokio::main]
async fn main() -> Result<()> {
    let limit: u8 = 50;
    let mut endpoint = reqwest::Url::parse("https://console.zerocopy.sh/api/v1/transactions")?;
    endpoint.query_pairs_mut().append_pair("limit", &limit.to_string());
    if let Ok(cursor) = std::env::var("CURSOR") {
        endpoint.query_pairs_mut().append_pair("cursor", &cursor);
    }
    // Optional filters; FROM_TIME and TO_TIME must be RFC 3339 timestamps.
    for (parameter, variable) in [("from", "FROM_TIME"), ("to", "TO_TIME"), ("key_id", "KEY_ID"), ("outcome", "OUTCOME")] {
        if let Ok(value) = std::env::var(variable) {
            endpoint.query_pairs_mut().append_pair(parameter, &value);
        }
    }
    let request = reqwest::Client::new()
        .get(endpoint)
        .bearer_auth(required("MANAGEMENT_API_KEY")?);
    let response = request.send().await?;
    let status = response.status();
    let request_id = response.headers().get("Request-Id")
        .map(|value| value.to_str()).transpose()?.unwrap_or("<missing>").to_owned();
    if let Some(etag) = response.headers().get("ETag") {
        eprintln!("ETag: {}", etag.to_str()?);
    }
    let body = response.text().await?;
    if !status.is_success() {
        return Err(format!("HTTP {status}; Request-Id: {request_id}; {body}").into());
    }
    eprintln!("Request-Id: {request_id}");
    println!("{body}");
    Ok(())
}
```

```go title="Go"
// management_transactions/main.go
package main

import (
    "fmt"
    "io"
    "net/http"
    "net/url"
    "os"
    "strconv"
)

func required(name string) (string, error) {
    value := os.Getenv(name)
    if value == "" {
        return "", fmt.Errorf("set %s", name)
    }
    return value, nil
}

func run() error {
    apiKey, err := required("MANAGEMENT_API_KEY")
    if err != nil {
        return err
    }
    const limit uint8 = 50
    endpoint, err := url.Parse("https://console.zerocopy.sh/api/v1/transactions")
    if err != nil {
        return err
    }
    query := endpoint.Query()
    query.Set("limit", strconv.Itoa(int(limit)))
    if cursor := os.Getenv("CURSOR"); cursor != "" {
        query.Set("cursor", cursor)
    }
    // Optional filters; FROM_TIME and TO_TIME must be RFC 3339 timestamps.
    for parameter, variable := range map[string]string{"from": "FROM_TIME", "to": "TO_TIME", "key_id": "KEY_ID", "outcome": "OUTCOME"} {
        if value := os.Getenv(variable); value != "" {
            query.Set(parameter, value)
        }
    }
    endpoint.RawQuery = query.Encode()
    request, err := http.NewRequest(http.MethodGet, endpoint.String(), nil)
    if err != nil {
        return err
    }
    request.Header.Set("Authorization", "Bearer "+apiKey)
    response, err := http.DefaultClient.Do(request)
    if err != nil {
        return err
    }
    defer response.Body.Close()
    requestID := response.Header.Get("Request-Id")
    body, err := io.ReadAll(response.Body)
    if err != nil {
        return fmt.Errorf("Request-Id: %s: %w", requestID, err)
    }
    if response.StatusCode < 200 || response.StatusCode >= 300 {
        return fmt.Errorf("HTTP %d; Request-Id: %s; %s", response.StatusCode, requestID, body)
    }
    fmt.Fprintln(os.Stderr, "Request-Id:", requestID)
    if etag := response.Header.Get("ETag"); etag != "" {
        fmt.Fprintln(os.Stderr, "ETag:", etag)
    }
    fmt.Println(string(body))
    return nil
}

func main() {
    if err := run(); err != nil {
        fmt.Fprintln(os.Stderr, err)
        os.Exit(1)
    }
}
```

```ts title="TypeScript"
// management-transactions.ts
export {}

function required(name: string): string {
  const value = process.env[name]
  if (!value) throw new Error(`set ${name}`)
  return value
}

const limit: number = 50
const endpoint = new URL('https://console.zerocopy.sh/api/v1/transactions')
endpoint.searchParams.set('limit', String(limit))
const cursor: string | undefined = process.env.CURSOR
if (cursor) endpoint.searchParams.set('cursor', cursor)
// Optional filters; FROM_TIME and TO_TIME must be RFC 3339 timestamps.
const filters: Record<string, string | undefined> = {
  from: process.env.FROM_TIME, to: process.env.TO_TIME,
  key_id: process.env.KEY_ID, outcome: process.env.OUTCOME,
}
for (const [parameter, value] of Object.entries(filters)) {
  if (value) endpoint.searchParams.set(parameter, value)
}
const headers: Record<string, string> = {
  Authorization: `Bearer ${required('MANAGEMENT_API_KEY')}`,
}
const response = await fetch(endpoint, { method: 'GET', headers })
const requestId = response.headers.get('Request-Id')
const body = await response.text()
if (!response.ok) {
  throw new Error(`HTTP ${response.status}; Request-Id: ${requestId}; ${body}`)
}
console.error('Request-Id:', requestId)
const etag = response.headers.get('ETag')
if (etag) console.error('ETag:', etag)
console.log(body)
```
