Skip to main content
POST
EVM Token Security
Request fields accept both camelCase and snake_case. See Request Field Names.

Response — In Progress

This endpoint is asynchronous. On a cache miss — including the first query for an address that has never been analysed — the API returns HTTP 200 immediately with no data object:
string
required
"0" — the request succeeded. This is not an error.
string
required
"in progress" — analysis is queued, no result yet.
number
required
Seconds to wait before retrying the identical request.
Branch on status, not on the HTTP code. status: "in progress" means the analysis has been queued; wait pollAfter seconds and repeat the same request. Results are cached, so subsequent queries for the same address return immediately with status: "ok". Analysis normally completes within one or two poll cycles.

Headers

X-API-KEY
string
required

Your HashDit API key

Body

application/json

Token contract address to analyze

chainId
string
required

The network chain ID. See Supported Chains for a complete list of supported networks for this endpoint.

Example:

"56"

address
string
required

Token contract address.

Example:

"0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"

sync
boolean
default:false

When true, wait for the analysis instead of returning in progress. Increases latency; may still time out and return in progress.

Response

Successful response. On a cache miss the analysis may be queued and the body returns status: "in progress" with no data object — wait pollAfter seconds and retry the same request.

code
string

API result code. "0" indicates success.

Example:

"0"

status
string

Request status.

Example:

"ok"

data
object