Skip to main content

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 transferFrom to 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_here

Body

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

All three checks clean. No flags. Safe to proceed.

The Allowance Drain Trap

The contract calls transferFrom and routes your approved tokens to an attacker wallet. Classic approval phishing. Block immediately.

The Permit Signature Abuser

The contract consumes a 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

Any ETH sent to this contract is silently routed to an external address. Common in fake mint pages and impersonation contracts where the UI looks legitimate but funds never stay in the contract.

The Empty Contract

Nothing is deployed here. This may be a pre-deployment address used in a phishing link, a wrong chain, or a destroyed contract. Do not interact with it.

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.