Skip to content
Docs

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

FieldRequiredDescription
chainIdNoFilter to one network
statusNoprepared | broadcast | confirmed | failed
limitNoDefault 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

FieldRequiredDescription
_idYestx_… id
projectId / organizationIdYesOwnership
kindYestransfer | swap | defi | approval | other
chainId / fromYesNetwork and sender
to / value / tokenAddressNoIntent details when set
statusYesLifecycle status
txHashNoOn-chain hash after broadcast
unsignedPayload / receipt / providerRefsNoOptional payloads
confirmedAtNoSet when status becomes confirmed

Errors

Errors use HTTP { "error": { "code", "message", "retryable" } }. Branch on code, not the message text.

CodeHTTPWhen
unauthorized401Missing or invalid project credentials
invalid_argument400Bad kind, chainId, status, empty from/hash, or malformed body
not_found404Unknown transaction ID, or a record owned by another project
rate_limit_exceeded429Write or project throttle (retryable)
json
{
  "error": {
    "code": "unauthorized",
    "message": "Human-readable detail (may be sanitized).",
    "retryable": false
  }
}