Skip to content
Docs

Transaction records

Get one record

Load a single tx_… row owned by your project.

Endpoint

GET/v1/transactions/:txId

Returns one row if it belongs to the calling project. Cross-project ids look like not_found (no leak of existence).

Request
curl -sS "https://ledger.gray3.io/v1/transactions/tx_your_transaction_id" \
  -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": {
  "_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"
}
}

Fields

FieldRequiredDescription
_idYesPath id
kind / chainId / from / statusYesCore intent
to / value / tokenAddress / txHashNoOptional details
unsignedPayload / receipt / providerRefsNoStored JSON / map
confirmedAtNoISO time when 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
  }
}