Overview
Every error response from TxShield follows this structure: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.targetContractAddress and chainId.
401 — Unauthorized
No API key was provided.Authorization: Bearer txs_your_api_key_here to your request headers.
403 — Forbidden
Your API key is invalid or has been revoked.429 — Rate Limit Exceeded
You have exceeded your tier’s request limit.| Endpoint Type | Limit |
|---|---|
/api/simulate, /api/honeypot, /api/phishing | 10 req / min |
| All other endpoints | 30 req / min |
500 — Internal Server Error
Something failed on our end — RPC node issue, simulation failure, or unexpected error.Handling Errors in Code
Authentication
How to generate and use your API key correctly.
Contact Us
Persistent errors? Reach out to the team.
