> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hex65.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Grant receipts

> The metering receipts in a run's evidence.

Schema: `urn:hex65:schema:grant-receipts:v1`. Every field below comes from the schema; the schema decides.

receipts/grants.json of a run's evidence (WP-140, WP-142): each segment's grant envelope (hex65.usage-grant/v1 signed by the service), its latest receipt envelope (hex65.usage-receipt/v1, or null when the service never answered a report of it) and the lap ids that receipt covers, sorted. A result is metered when its grants verify with the service's grant keys, name this run, are on the allowance meter for the run's own purpose, and their receipts cover every graded lap of the result; the run's laps are complete when the last receipt closes the run (`run_close`) and the segments and laps held are exactly the ones it names.

## Fields

| Field | Type | Required | Meaning |
| - | - | - | - |
| `format` | `"hex65.grant-receipts/v1"` | yes | |
| `run` | string | yes | |
| `segments` | list of object | yes | |
| `segments[].grant` | object | yes | |
| `segments[].grant.payload_type` | string | yes | |
| `segments[].grant.payload_b64` | string | yes | |
| `segments[].grant.signatures` | list of object | yes | |
| `segments[].grant.signatures[].key_id` | string | yes | |
| `segments[].grant.signatures[].alg` | one of `"ed25519"`, `"ecdsa-p256-sha256"` | yes | |
| `segments[].grant.signatures[].sig_b64` | string | yes | |
| `segments[].grant.signatures[].signed_at` | string | yes | |
| `segments[].receipt` | object or null | yes | |
| `segments[].laps` | list of string | yes | |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.