# kernelBlocks

query · in the family [Billing and the wallet](/reference/billing-and-the-wallet/)

## What it does

Your kernel blocks — each purchase you made as one block, showing whether it is queued, being consumed, spent, or moving to another group.

The caller group's kernel BLOCKS, NEWEST-first + bounded. SELF-group BY CONSTRUCTION; a block-less group answers. The transfer surface reads this list (transferable = approved | transfer_denied, settled ≥ 90 days). Requires authentication. Template class A16_BILLING (hand-derived v94).

## What happens

Reads only.

## Who may call it

Capability area: **Billing and the wallet** — Your platform bill, token purchases and the usage and cost reads.

- Owner
- Manager
- Associate Manager
- An API key whose scope allows `api:kernelBlocks`

## Arguments

| Name | Type | Required | Notes |
| --- | --- | --- | --- |
| `limit` | [Int](/types/#scalars) | no | How many records to answer at most; a page may hold fewer. |
| `before` | [ID](/types/#scalars) | no | No further notes. |

## Returns

[KernelBlock](/types/KernelBlock/) `[KernelBlock!]!` — One kernel block — a settled purchase's STOCK lifecycle. Blocks consume OLDEST-FIRST with at most ONE open at a time; a block EARMARKED for transfer freezes until the decision (it cannot be consumed — freezing most of your stock can starve the wallet, the disclosed strictness); an OPENED block can never transfer (the purity law); a transferred block records where it went.

## Example request

```graphql
query ExampleKernelBlocks($limit: Int) {
  kernelBlocks(limit: $limit) {
    id
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    tokensPurchased
    usdAmountCents
    volumeTierCode
    approvedAt
    openedAt
    consumedAt
    transferRequestedAt
    transferRequestedToOrgGroupId
    transferRequestReason
    transferDeniedAt
    transferDeniedReason
    transferredToOrgGroupId
    transferredAt
  }
}
```

Variables:

```json
{
  "limit": 1
}
```

## Example response

```json
{
  "data": {
    "kernelBlocks": [
      {
        "id": "01900000-0000-7000-8000-37386ae00000",
        "type": "<type>",
        "caption": "Blue jeans",
        "status": "<status>",
        "parentId": "01900000-0000-7000-8000-065235280000",
        "rootId": "01900000-0000-7000-8000-a093dd800000",
        "createdAt": "2027-01-31T00:00:00.000Z",
        "updatedAt": "2027-01-31T00:00:00.000Z",
        "revisionNum": 1,
        "revision": "01900000-0000-7000-8000-b7960e180000",
        "tokensPurchased": 1,
        "usdAmountCents": 1,
        "volumeTierCode": "BJ-001",
        "approvedAt": "2027-01-31T00:00:00.000Z",
        "openedAt": "2027-01-31T00:00:00.000Z",
        "consumedAt": "2027-01-31T00:00:00.000Z",
        "transferRequestedAt": "2027-01-31T00:00:00.000Z",
        "transferRequestedToOrgGroupId": "01900000-0000-7000-8000-ba2833d70000",
        "transferRequestReason": "<transfer request reason>",
        "transferDeniedAt": "2027-01-31T00:00:00.000Z",
        "transferDeniedReason": "<transfer denied reason>",
        "transferredToOrgGroupId": "01900000-0000-7000-8000-ba530d800000",
        "transferredAt": "2027-01-31T00:00:00.000Z"
      }
    ]
  },
  "extensions": {
    "at": {
      "callId": "01EXAMPLE-CALL-ID",
      "version": {
        "requested": null,
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}
```

## Errors this call can answer

- `VALIDATION/INVALID` — Something in the request is not valid. ([VALIDATION](/errors/VALIDATION/))
- `AUTHN/REQUIRED` — Sign in to do this. ([AUTHN](/errors/AUTHN/))
- `AUTHZ/FORBIDDEN` — Your role does not allow this action. ([AUTHZ](/errors/AUTHZ/))
- `RATE_LIMIT/THROTTLED` — Too many requests in a short time. ([RATE_LIMIT](/errors/RATE_LIMIT/))
- `NOT_FOUND/*` — That record could not be found. ([NOT_FOUND](/errors/NOT_FOUND/))
