AlmondTill/G3N API

On this page

kernelBlocks

query · in the family 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.

Arguments

NameTypeRequiredNotes
limitIntnoHow many records to answer at most; a page may hold fewer.
beforeIDnoNo further notes.

Returns

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

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:

{
  "limit": 1
}

Example response

{
  "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