Skip to content
Docs

Requests and responses

Pagination patterns

Use opaque cursors for activity; do not invent page numbers.

Overview

Gray3 uses cursor pagination where lists can be large—not page numbers. Today the primary Cloud cursor surface is activity.

Activity

GET /v1/activity is single-chain. Pass cursor from the previous page's nextCursor until it is absent.

FieldRequiredDescription
chainIdYesSingle chain id
addressYesWallet address
cursorNoOpaque cursor from prior nextCursor
relatedAddressesNoComma-separated siblings (e.g. Gram) — history merged
bash
# First page
curl -sS "https://blockchain.gray3.io/v1/activity?chainId=ethereum&address=0x…" \
  -H "X-Gray-Project-Id: $GRAY_PROJECT_ID" \
  -H "Authorization: Bearer $GRAY_SECRET_KEY"

# Next page
curl -sS "https://blockchain.gray3.io/v1/activity?chainId=ethereum&address=0x…&cursor=…" \
  -H "X-Gray-Project-Id: $GRAY_PROJECT_ID" \
  -H "Authorization: Bearer $GRAY_SECRET_KEY"
json
{
  "data": {
    "chainId": "ethereum",
    "address": "0x…",
    "items": [ /* … */ ],
    "nextCursor": "eyJ…",
    "source": "…"
  }
}

No activity multi

GET /v1/activity/multi and GET /v1/nfts/multi return HTTP 501 with not_implemented. Call each endpoint once per chain and merge the results in your backend.

Other list shapes

  • GET /v1/chains — full plan-filtered catalog (no cursor)
  • Portfolio and DeFi multi return one entry per chain, each with either a result or an error string. Portfolio multi accepts up to 20 chain IDs per request.
  • Prices multi — quotes[] plus failures[] (max 50 tokens)

Endpoint detail: List activity in the Cloud API guide.