TriportRPC

Polygon errors

Polygon methods use the shared JSON-RPC {jsonrpc,id,error} envelope. See the shared error reference for product codes -32001 through -32005 and -32601.

Notable method-page behavior:

  • bor_*, trace, and txpool methods can return -32002 tier_insufficient when their feature or tier gate is not enabled;
  • -32003 rate_limited means the category budget and burst were exhausted; honor Retry-After and retry with backoff;
  • malformed calls, block selectors, tracer configs, and Polygon-native params return -32602;
  • an unknown or orphaned block hash can validly return result: null; handle it separately from the error envelope.