Skip to main content

Proxy API responses

For endpoints proxied to a Blockscout instance, responses fall into two categories:
  1. Success — The HTTP status and body come from Blockscout (as if you called it directly). The body format depends on the path (JSON, plain text, etc.).
  2. Pro API error — JSON with error (short message) and source (internal or upstream). Pro API returns this when the request did not complete normally through the proxy or the response is normalized for clients.

The source field:

  • internal: Something went wrong inside Pro API: routing, chain configuration, or an internal failure. Check your chain identifier, URL shape, and supported networks.
  • upstream: The request reached (or should have reached) Blockscout, but the connection or upstream response failed (timeout, unavailable server, Blockscout 5xx). Retrying later or checking the chain instance status is usually appropriate.

Common errors (JSON)

Quick actions

  • source: internal + 404 — Fix chain and URL (supported network, correct path).
  • source: upstream + 5xx / 504 — Usually temporary Blockscout or network issues; retry later; if constant, check the instance status.
  • Successful responses without this JSON envelopeDirect Blockscout responses; 4xx in that case come from upstream (e.g. “not found” for a specific API method), not necessarily the table above.