Skip to main content
POST
Transaction Security

Headers

X-API-KEY
string
required

Your HashDit API key

Content-Type
string
default:application/json
required

Must be set to application/json

X-DITING-API-DEBUG
enum<string>

Optional debug flag (1 enables verbose analysis)

Available options:
0,
1

Body

application/json

Transaction to analyze

chainId
string
required

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

Example:

"56"

from
string
required

Sender address.

Example:

"0xB59274D0468eA82Dc48De42488b5dfA5F7fb4A06"

to
string
required

Target contract address or recipient address.

Example:

"0x12BB890508c125661E03b09EC06E404bc9289040"

data
string
required

Hex-encoded transaction calldata.

Example:

"0x095ea7b3..."

nonce
number
required

Transaction nonce.

Example:

6

value
number
required

Native token value. Measured in wei.

Example:

0

gas
number
required

Gas limit.

Example:

340800

type
enum<number>

Transaction type. E.g. 0 for legacy transactions, 2 for EIP-1559.

Available options:
0,
2
maxFeePerGas
number

Max fee per gas (EIP-1559).

Example:

3497787365

maxPriorityFeePerGas
number

Priority fee per gas (EIP-1559).

Example:

1000000000

dappUrl
string

Originating dApp URL for domain risk analysis.

Example:

"https://mov-ai.com/eh?hello=ke"

Response

Successful response

chain
string

Blockchain identifier.

Example:

"bsc"

from
string

Sender address.

Example:

"0xb59274d0468ea82dc48de42488b5dfa5f7fb4a06"

to
string

Target contract address or recipient address.

Example:

"0x12bb890508c125661e03b09ec06e404bc9289040"

function
string

Decoded function signature.

Example:

"approve(address,uint256)"

params
object

Decoded function parameters.

Example:
value
number

Native token value. Measured in wei.

Example:

0

gas_used
number

Gas used (if simulated).

overall_risk
enum<number>

Overall risk score (0-5). Higher values indicate higher risk.

Available options:
0,
1,
2,
3,
4,
5
risk_description
string

Human-readable risk level (e.g. Critical Risk).

Example:

"Critical Risk"

risk_details
object[]

Detailed list of detected risks.

scanned_time
number

Unix timestamp of analysis.

Example:

1766097400

status
object
url
string

dApp URL used for domain analysis (if provided).

Example:

"https://mov-ai.com/eh?hello=ke"