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).
Before you call
A bearer session from an API key (see Authentication and key hygiene) or a signed-in user.
Capability area: Billing and the wallet — Your platform bill, token purchases and the usage and cost reads.
Roles that may call it:
- Owner
- Manager
- Associate Manager
- An API key whose scope allows
api:kernelBlocks
What happens
Reads only.
Arguments
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-eacdfcfd0000",
"rootId": "01900000-0000-7000-8000-a1295a650000",
"createdAt": "2027-01-31T00:00:00.000Z",
"updatedAt": "2027-01-31T00:00:00.000Z",
"revisionNum": 1,
"revision": "01900000-0000-7000-8000-53c6eea90000",
"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-360c771a0000",
"transferRequestReason": "<transfer request reason>",
"transferDeniedAt": "2027-01-31T00:00:00.000Z",
"transferDeniedReason": "<transfer denied reason>",
"transferredToOrgGroupId": "01900000-0000-7000-8000-84b57f250000",
"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. Retry: no. (VALIDATION)AUTHN/REQUIRED— Sign in to do this. Retry: no. (AUTHN)AUTHZ/FORBIDDEN— Your role does not allow this action. Retry: no. (AUTHZ)RATE_LIMIT/THROTTLED— Too many requests in a short time. Retry: yes. (RATE_LIMIT)NOT_FOUND/*— That record could not be found. Retry: no. (NOT_FOUND)