Analyzes a blockchain transaction before / after execution to identify security risks. The API inspects transaction calldata, detects dangerous patterns (e.g. unlimited approvals), evaluates dApp and domain reputation, and returns an overall risk score with detailed explanations. This endpoint is designed for wallets, signing flows, and transaction confirmation screens.
Your HashDit API key
Must be set to application/json
Optional debug flag (1 enables verbose analysis)
0, 1 Transaction to analyze
The network chain ID. See Supported Chains for a complete list of supported networks for this endpoint.
"56"
Sender address.
"0xB59274D0468eA82Dc48De42488b5dfA5F7fb4A06"
Target contract address or recipient address.
"0x12BB890508c125661E03b09EC06E404bc9289040"
Hex-encoded transaction calldata.
"0x095ea7b3..."
Transaction nonce.
6
Native token value. Measured in wei.
0
Gas limit.
340800
Transaction type. E.g. 0 for legacy transactions, 2 for EIP-1559.
0, 2 Max fee per gas (EIP-1559).
3497787365
Priority fee per gas (EIP-1559).
1000000000
Originating dApp URL for domain risk analysis.
"https://mov-ai.com/eh?hello=ke"
Successful response
Blockchain identifier.
"bsc"
Sender address.
"0xb59274d0468ea82dc48de42488b5dfa5f7fb4a06"
Target contract address or recipient address.
"0x12bb890508c125661e03b09ec06e404bc9289040"
Decoded function signature.
"approve(address,uint256)"
Decoded function parameters.
{
"0": "0x0000000000001fF3684f28c67538d4D072C22734",
"1": 1.157920892373162e+77
}Native token value. Measured in wei.
0
Gas used (if simulated).
Overall risk score (0-5). Higher values indicate higher risk.
0, 1, 2, 3, 4, 5 Human-readable risk level (e.g. Critical Risk).
"Critical Risk"
Detailed list of detected risks.
Unix timestamp of analysis.
1766097400
dApp URL used for domain analysis (if provided).
"https://mov-ai.com/eh?hello=ke"