Overview
Most phishing attacks don’t look like phishing — they look like normal contracts. TxShield’s phishing endpoint simulates what a contract actually does when interacted with, not just what it claims to do. Three attack vectors are checked in every scan:- Allowance Drain Traps — contracts that call
transferFromto silently sweep your approved ERC20 tokens to an attacker wallet - Permit Signature Abuse — contracts that consume a signed
permit()to grant unlimited allowance to a malicious address without a second transaction - Native ETH Forwarding — contracts that silently forward any ETH you send to an external address instead of doing what they claim
Endpoint
POST /api/phishing/phishing-checks
Request
Headers
Content-Type: application/json Authorization: Bearer txs_your_api_key_hereBody
Parameters
Supported Chain IDs
Response
Response Fields Explained
Top Level
checks[] — Each Phishing Check
raw — Extracted Attack Data
Verdict Reference
isEmpty and inconclusive override riskScore in the verdict. Always
check these flags first. An empty contract address is a common front for
phishing flows where the real attack happens one hop away.How to Read the Results
The Safe Contract
The Allowance Drain Trap
transferFrom and routes your approved tokens to an
attacker wallet. Classic approval phishing. Block immediately.
The Permit Signature Abuser
permit() signature to grant itself or a third
party unlimited token allowance — without ever asking for a second
approval transaction. The user thinks they’re signing a gasless swap.
They’re handing over their wallet.
The Silent ETH Forwarder
The Empty Contract
Code Examples
Error Responses
EVM Honeypot Detection
Detect time-delayed tax traps and blacklists alongside phishing checks.
Authentication
How to generate and use your API key.
