Skip to main content

HTTP status codes

Error response format

All error responses return a JSON body with a message field:

Common errors

400 — Invalid address format

Fix: Ensure the address is a valid EIP-55 checksummed hex address (0x..., 40 hex characters). Use ethers.getAddress(address) to checksum an address.

404 — Address or transaction not found

Fix: The address may have no on-chain activity, or the transaction hash may be incorrect. Verify on the block explorer.

429 — Rate limited

Fix: Reduce request frequency and implement exponential backoff. See JSON-RPC rate limits for backoff strategies — the same approach applies to REST requests.

Example error handling in JavaScript