Transaction records
List records
Project-scoped history with optional chain and status filters.
Endpoint
GET/v1/transactions
Lists transactions for the authenticated project only, newest createdAt first.
Query
| Field | Required | Description |
|---|---|---|
| chainId | No | Filter to one network |
| status | No | prepared | broadcast | confirmed | failed |
| limit | No | Default 50, max 200 |
Request
curl -sS "https://ledger.gray3.io/v1/transactions?status=broadcast&limit=20" \
-H "X-Gray-Project-Id: proj_your_project_id" \
-H "Authorization: Bearer gray_sk_your_secret"Response
HTTP 200 — success envelope wraps the payload in data.
json
{
"data": {
"items": [
{
"_id": "tx_…",
"projectId": "proj_…",
"organizationId": "org_…",
"kind": "transfer",
"chainId": "ethereum-sepolia",
"from": "0xYourAddress",
"to": "0xRecipient",
"value": "1000000000000000000",
"status": "prepared",
"createdAt": "2026-03-01T10:00:00.000Z",
"updatedAt": "2026-03-01T10:00:00.000Z"
}
]
}
}Item fields
| Field | Required | Description |
|---|---|---|
| _id | Yes | tx_… id |
| projectId / organizationId | Yes | Ownership |
| kind | Yes | transfer | swap | defi | approval | other |
| chainId / from | Yes | Network and sender |
| to / value / tokenAddress | No | Intent details when set |
| status | Yes | Lifecycle status |
| txHash | No | On-chain hash after broadcast |
| unsignedPayload / receipt / providerRefs | No | Optional payloads |
| confirmedAt | No | Set when status becomes confirmed |
Errors
Errors use HTTP { "error": { "code", "message", "retryable" } }. Branch on code, not the message text.
| Code | HTTP | When |
|---|---|---|
| unauthorized | 401 | Missing or invalid project credentials |
| invalid_argument | 400 | Bad kind, chainId, status, empty from/hash, or malformed body |
| not_found | 404 | Unknown transaction ID, or a record owned by another project |
| rate_limit_exceeded | 429 | Write or project throttle (retryable) |
json
{
"error": {
"code": "unauthorized",
"message": "Human-readable detail (may be sanitized).",
"retryable": false
}
}