---
title: "Coins the bucket can spend, by page"
method: GET
path: "/buckets/{bucket}/unspent_outputs/{page}"
tags: ["Buckets"]
---

# Coins the bucket can spend, by page

`GET /buckets/{bucket}/unspent_outputs/{page}`

## Request

- Base URL: `https://sochain.com/api/v3`
- URL: `https://sochain.com/api/v3/buckets/{bucket}/unspent_outputs/{page}`
- Auth: one of:
  - API key in header `API-KEY`
  - API key in query parameter `api_key`

The fields of /unspent_outputs.

## Path parameters

- `bucket` string, required: Letters, numbers, - and _, up to 64 characters. Unique within your account.
- `page` integer, required

## Response `200`

Success.

- object
  - `status` 'success', required
  - `data` BucketUnspentOutputs, required
    - `outputs` BucketUnspentOutput[], required: Ten a page, oldest first.
      - `hash` string, required: The transaction that created the output.
      - `index` integer, required: The output's position in that transaction.
      - `script` string, required: Locking script, hex.
      - `address` string, required
      - `value` string, required: An exact decimal amount of coins with 8 decimals. Signed amounts may start with '-'. Parse as an integer of the smallest unit, not a float.
      - `block` integer, nullable, required: Confirming block height; null while unconfirmed.
      - `p2pk` unknown
    - `total` integer: How many there are in all.
    - `page` integer
    - `next_cursor` string, nullable: null on the last page.
    - `tip_height` integer: The newest block when the answer was made.
    - `version` integer
    - `bucket` string: Letters, numbers, - and _, up to 64 characters. Unique within your account.
    - `network` 'BTC' | 'LTC' | 'DOGE' | 'ZEC' | 'BTCTEST' | 'LTCTEST' | 'DOGETEST' | 'ZECTEST'

## Other responses

- `400`: A bad parameter or body; the message says which.
- `401`: An invalid key, no key where one is needed (buckets, webhooks, /account_info), a locked account or expired plan, or both the month's requests and the keyless rate used up. Kept as 401, with this message, for v3 compatibility.
- `404`: Not found.
- `503`: Briefly unavailable; retry with backoff. May carry Retry-After.

---

[API](https://skmtc.dev/sochain/apis/sochain-api.md) · [All operations](https://skmtc.dev/sochain/apis/sochain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sochain/apis/sochain-api/revisions/80682797b38f?raw)
