AlmondTill/G3N API

On this page

requestKernelBlockTransfer

mutation · in the family Billing and the wallet

What it does

Ask AlmondTill to move whole kernel blocks you bought to another group. Eligible blocks: untouched, settled at least 90 days ago, never moved before.

Ask AlmondTill to move named kernel blocks to another group WHOLE. Eligible blocks: never-opened, unfrozen stock (approved | transfer_denied) settled ≥ 90 days ago and never moved before (one transfer per block, forever). ⚠ THE ASK FREEZES the blocks at once — they cannot be consumed until AlmondTill approves or denies (freezing most of your stock can starve the wallet; the answer names each block's state). An ineligible block refuses with why; the destination must be another group with a live wallet. Requires the unrestricted capability. Template class A16_BILLING (hand-derived v94).

What happens

The named blocks FREEZE the moment you ask — they cannot be consumed until AlmondTill approves or denies (usually within 7 days). Freezing most of your stock can leave the wallet with nothing to run on.

Who may call it

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

Arguments

NameTypeRequiredNotes
inputRequestKernelBlockTransferInput RequestKernelBlockTransferInput!yesNo 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

mutation ExampleRequestKernelBlockTransfer($input: RequestKernelBlockTransferInput!) {
  requestKernelBlockTransfer(input: $input) {
    id
    type
    caption
    status
    parentId
    rootId
    createdAt
    updatedAt
    revisionNum
    revision
    tokensPurchased
    usdAmountCents
    volumeTierCode
    approvedAt
    openedAt
    consumedAt
    transferRequestedAt
    transferRequestedToOrgGroupId
    transferRequestReason
    transferDeniedAt
    transferDeniedReason
    transferredToOrgGroupId
    transferredAt
  }
}

Variables:

{
  "input": {
    "blockIds": [
      "01900000-0000-7000-8000-68fb95740000"
    ],
    "toOrgGroupId": "01900000-0000-7000-8000-9e114df80000",
    "reason": "Correcting a miscount."
  }
}

Send it with the envelope naming the version: "extensions": {"at": {"version": {"name":"genesis","number":0}}}.

Example response

{
  "data": {
    "requestKernelBlockTransfer": [
      {
        "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": {
          "name": "genesis",
          "number": 0
        },
        "serviced": {
          "name": "genesis",
          "number": 0
        }
      }
    }
  }
}

Errors this call can answer