safe-shield
Analyze transaction threat
Changed onPerforms real-time threat analysis for a Safe transaction.
post/v1/chains/{chainId}/security/{safeAddress}/threat-analysis
Request
- The document declares no server URL.
- Auth: none declared
Path parameters
chainIdstring required
Chain ID where the Safe is deployed
safeAddressstring required
Safe contract address
Request body
Response
Threat analysis results including threat findings and balance changes.
Example response
{
"THREAT": [
{
"severity": "OK",
"type": "NO_THREAT",
"title": "No threats detected",
"description": "Transaction analysis found no security threats"
}
],
"BALANCE_CHANGE": [
{
"asset": {
"type": "ERC20",
"symbol": "USDC",
"address": "0x0000000000000000000000000000000000000000",
"logo_url": "https://example.com/usdc-logo.png"
},
"in": [
{
"value": "1000000"
}
],
"out": [
{
"value": "500000"
}
]
}
],
"request_id": "11111111-1111-1111-1111-111111111111"
}Changes
- warning
added the new
NONERCenum value to the///////response property for the response status
- warning
- breaking
added to the
/response propertyoneOflist for the response status - info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status - info
added the optional property
//////to the response with the status - info
removed the
FAILEDenum value from the//////response property for the response status
- breaking