Skip to main content

Overview

Every error response from TxShield follows this structure:
Always check success first. If false, read error for the exact reason.

HTTP Status Codes

400 — Bad Request

Your request is missing required fields or has invalid values.
Fix: Check your request body includes both targetContractAddress and chainId.

401 — Unauthorized

No API key was provided.
Fix: Add Authorization: Bearer txs_your_api_key_here to your request headers.

403 — Forbidden

Your API key is invalid or has been revoked.
Fix: Verify your key at txshield.xyz/api-keys. If lost, reconnect your wallet to regenerate.

429 — Rate Limit Exceeded

You have exceeded your tier’s request limit.
Fix: Wait for the 60-second window to reset. If you need higher limits, contact us for a partner tier key.

500 — Internal Server Error

Something failed on our end — RPC node issue, simulation failure, or unexpected error.
Fix: Retry the request. If it persists, check our status on X @txshield_ or email contactcodecommunity@gmail.com.

Handling Errors in Code


Authentication

How to generate and use your API key correctly.

Contact Us

Persistent errors? Reach out to the team.