{
	"openapi": "3.0.3",
	"info": {
		"title": "HashDit API",
		"description": "HashDit threat intelligence API for domain security analysis, blockchain address classification, address poisoning detection, address security assessment, transaction security, token security, Solana token security, token approval security, and EIP-712 signature security",
		"version": "2.0.0"
	},
	"servers": [
		{
			"url": "https://service.hashdit.io"
		}
	],
	"paths": {
		"/v2/hashdit/domain-security": {
			"post": {
				"summary": "Domain Security",
				"description": "Scores a domain or URL against HashDit threat intelligence. Set `liveness_check` to also report whether a visitor would see usable content; choose `liveness_policy` to control how blocked checks are interpreted without changing the risk verdict.",
				"operationId": "domainSecurity",
				"requestBody": {
					"description": "Domain or URL to analyze",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/DomainSecurityRequest"
							},
							"examples": {
								"Whitelisted Domain": {
									"summary": "Risk score only",
									"value": {
										"url": "https://pancakeswap.finance/"
									}
								},
								"Risky Domain": {
									"summary": "Suspicious domain example",
									"value": {
										"url": "https://bnb-miner.com/"
									}
								},
								"Liveness Check": {
									"summary": "Availability check with usable content",
									"value": {
										"url": "https://example.com",
										"liveness_check": true,
										"liveness_policy": "lenient"
									}
								},
								"Bot Protection (lenient)": {
									"summary": "Bot wall HTTP 403, read as accessible",
									"value": {
										"url": "https://example.com",
										"liveness_check": true,
										"liveness_policy": "lenient"
									}
								},
								"Bot Protection (strict)": {
									"summary": "Bot wall HTTP 403, read as not accessible",
									"value": {
										"url": "https://example.com",
										"liveness_check": true,
										"liveness_policy": "strict"
									}
								}
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Successful response",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/DomainSecurityResponse"
								},
								"examples": {
									"Whitelisted Domain": {
										"summary": "Safe domain response",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"request_id": "85cb060e-75cf-4d75-887f-c23f2fc45106",
												"has_result": true,
												"polling_interval": 0,
												"risk_level": 0,
												"risk_name": "Trusted",
												"risk_detail": [
													{
														"name": "is_in_wlist",
														"value": "The dApp is relatively safe based on the threat intelligence."
													}
												]
											}
										}
									},
									"Risky Domain": {
										"summary": "Risky domain response",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"request_id": "92db171f-86dg-5e86-998g-d34g3gd56217",
												"has_result": true,
												"polling_interval": 0,
												"risk_level": 3,
												"risk_name": "Medium Risk",
												"risk_detail": [
													{
														"name": "is_in_blist",
														"value": "There are potential risks in the dApp based on the threat intelligence."
													}
												]
											}
										}
									},
									"Liveness Check": {
										"summary": "Availability check with usable content",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"request_id": "85cb060e-75cf-4d75-887f-c23f2fc45106",
												"has_result": true,
												"polling_interval": 0,
												"risk_level": 1,
												"risk_name": "No Obvious Risk",
												"risk_detail": [],
												"liveness": "alive",
												"liveness_detail": {
													"status": "accessible",
													"policy": "lenient",
													"http_status": 200,
													"last_scanned_at": "2026-09-18T00:22:44.435844"
												}
											}
										}
									},
									"Bot Protection (lenient)": {
										"summary": "Bot wall: HTTP 403 with accessible liveness",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"request_id": "85cb060e-75cf-4d75-887f-c23f2fc45106",
												"has_result": true,
												"polling_interval": 0,
												"risk_level": 1,
												"risk_name": "No Obvious Risk",
												"risk_detail": [],
												"liveness": "alive",
												"liveness_detail": {
													"status": "accessible",
													"policy": "lenient",
													"http_status": 403,
													"last_scanned_at": "2026-09-18T00:22:44.435844"
												}
											}
										}
									},
									"Bot Protection (strict)": {
										"summary": "Bot wall: HTTP 403 with not_accessible liveness",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"request_id": "85cb060e-75cf-4d75-887f-c23f2fc45106",
												"has_result": true,
												"polling_interval": 0,
												"risk_level": 1,
												"risk_name": "No Obvious Risk",
												"risk_detail": [],
												"liveness": "dead",
												"liveness_detail": {
													"status": "not_accessible",
													"policy": "strict",
													"http_status": 403,
													"last_scanned_at": "2026-09-18T00:22:44.435844"
												}
											}
										}
									}
								}
							}
						}
					},
				"400": {
					"$ref": "#/components/responses/BadRequest"
					},
					"401": {
						"$ref": "#/components/responses/Unauthorized"
					},
					"403": {
						"$ref": "#/components/responses/Forbidden"
					},
				"422": {
					"$ref": "#/components/responses/UnprocessableEntity"
					},
					"429": {
						"$ref": "#/components/responses/RateLimitExceeded"
					},
				"500": {
					"$ref": "#/components/responses/InternalServerError"
					}
				},
				"security": [
					{
						"apiKeyAuth": []
					}
				],
				"tags": [
					"Domain Security"
				]
			}
		},
		"/v2/hashdit/address-classify": {
			"post": {
				"summary": "Address Classification",
				"description": "Classifies a blockchain address by type and behavior. The API identifies whether an address is an externally owned account (EOA) or contract, determines contract characteristics (e.g. proxy patterns), and provides verification and token standard metadata.",
				"operationId": "addressClassify",
				"requestBody": {
					"description": "Blockchain address to classify",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/AddressClassifyRequest"
							},
							"examples": {
								"ERC-20 Token": {
									"summary": "ERC20 token example",
									"value": {
										"chain_id": "56",
										"address": "0x55d398326f99059ff775485246999027b3197955",
										"strict": false
									}
								},
								"Proxy Contract": {
									"summary": "Proxy contract example",
									"value": {
										"chain_id": "56",
										"address": "0x40af3827F39D0EAcBF4A168f8D4ee67c121D11c9"
									}
								},
								"Externally Owned Address": {
									"summary": "EOA (Externally Owned Address) example",
									"value": {
										"chain_id": "56",
										"address": "0x000000000000000000000000000000000000dead"
									}
								},
								"Unverified Contract": {
									"summary": "Unverified contract example",
									"value": {
										"chain_id": "56",
										"address": "0x6ce880bd41b0da78eb94da063e9a6b2fd5d721a9"
									}
								}
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Successful response",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/AddressClassifyResponse"
								},
								"examples": {
									"ERC-20 Token": {
										"summary": "ERC20 token response",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"address": "bsc:0x55d398326f99059ff775485246999027b3197955",
												"address_type": "Contract",
												"classification": "ERC20",
												"classification_id": 101,
												"details": {
													"is_verified": true,
													"proxy_impl_address": "",
													"proxy_impl_type": ""
												},
												"is_erc20": "1",
												"scanned_time": 1766048799,
												"status": 200,
												"timestamp": "2025-12-18T09:06:43.166765",
												"verify_status": "verified"
											}
										}
									},
									"Proxy Contract": {
										"summary": "Proxy contract response",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"address": "bsc:0x40af3827f39d0eacbf4a168f8d4ee67c121d11c9",
												"address_type": "Contract",
												"classification": "Proxy",
												"classification_id": 5,
												"details": {
													"is_verified": true,
													"proxy_impl_address": "0x0d7adc70a18a5aef0bd6ecb098e1da0244c57711",
													"proxy_impl_type": "ERC20"
												},
												"is_erc20": "1",
												"scanned_time": 1763479290,
												"status": 200,
												"timestamp": "2025-11-18T15:21:34.616086",
												"verify_status": "verified"
											}
										}
									},
									"Externally Owned Address": {
										"summary": "EOA (Externally Owned Address) response",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"address": "bsc:0x000000000000000000000000000000000000dead",
												"address_type": "EOA",
												"classification": "EOA",
												"classification_id": -1,
												"details": {
													"is_verified": false,
													"proxy_impl_address": "",
													"proxy_impl_type": ""
												},
												"is_erc20": "0",
												"scanned_time": 1763166063,
												"status": 200,
												"timestamp": "2025-11-15T00:21:08.740209"
											}
										}
									},
									"Unverified Contract": {
										"summary": "Unverified contract response",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"address": "bsc:0x6ce880bd41b0da78eb94da063e9a6b2fd5d721a9",
												"address_type": "Contract",
												"classification": "Unverified",
												"classification_id": 2,
												"details": {
													"is_verified": false,
													"proxy_impl_address": "",
													"proxy_impl_type": ""
												},
												"is_erc20": "0",
												"scanned_time": 1766103184,
												"status": 200,
												"timestamp": "2025-12-19T00:13:08.908724",
												"verify_status": "unverified"
											}
										}
									}
								}
							}
						}
					},
					"400": {
						"$ref": "#/components/responses/BadRequest"
					},
					"401": {
						"$ref": "#/components/responses/Unauthorized"
					},
					"422": {
						"$ref": "#/components/responses/UnprocessableEntity"
					},
					"429": {
						"$ref": "#/components/responses/RateLimitExceeded"
					},
					"500": {
						"$ref": "#/components/responses/InternalServerError"
					}
				},
				"security": [
					{
						"apiKeyAuth": []
					}
				],
				"tags": [
					"Address Intelligence"
				]
			},
			"get": {
				"summary": "Address Classification (GET)",
				"description": "Classifies one blockchain address by type and behavior using query parameters. This variant returns the same result contract as the POST endpoint.",
				"operationId": "addressClassifyGet",
				"parameters": [
					{
						"name": "chain_id",
						"in": "query",
						"description": "Network identifier for the address.",
						"required": true,
						"schema": {"type": "string"},
						"example": "56"
					},
					{
						"name": "address",
						"in": "query",
						"description": "Blockchain address to classify.",
						"required": true,
						"schema": {"type": "string"},
						"example": "0x55d398326f99059ff775485246999027b3197955"
					},
					{
						"name": "strict",
						"in": "query",
						"description": "Apply the strict server-side latency budget.",
						"required": false,
						"schema": {"type": "boolean", "default": false},
						"example": false
					}
				],
				"responses": {
					"200": {
						"description": "Successful response",
						"content": {
							"application/json": {
								"schema": {"$ref": "#/components/schemas/AddressClassifyResponse"},
								"examples": {
									"ERC-20 Token": {
										"summary": "ERC20 token response",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"address": "bsc:0x55d398326f99059ff775485246999027b3197955",
												"address_type": "Contract",
												"classification": "ERC20",
												"classification_id": 101,
												"details": {
													"is_verified": true,
													"proxy_impl_address": "",
													"proxy_impl_type": ""
												},
												"is_erc20": "1",
												"scanned_time": 1766048799,
												"status": 200,
												"timestamp": "2025-12-18T09:06:43.166765",
												"verify_status": "verified"
											}
										}
									}
								}
							}
						}
					},
					"400": {"$ref": "#/components/responses/BadRequest"},
					"401": {"$ref": "#/components/responses/Unauthorized"},
					"422": {"$ref": "#/components/responses/UnprocessableEntity"},
					"429": {"$ref": "#/components/responses/RateLimitExceeded"},
					"500": {"$ref": "#/components/responses/InternalServerError"}
				},
				"security": [{"apiKeyAuth": []}],
				"tags": ["Address Intelligence"]
			}
		},
		"/v2/hashdit/address-poisoning": {
			"post": {
				"summary": "Address Poisoning Detection",
				"description": "Provides contextual analysis of addresses and tokens to detect spoofing-based poisoning attacks. Evaluates whether an address or token is dangerous in the context of a specific user and asset.",
				"operationId": "addressPoisoning",
				"requestBody": {
					"description": "Address and token context for poisoning analysis",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"oneOf": [
									{
										"$ref": "#/components/schemas/AddressPoisoningSingleRequest"
									},
									{
										"$ref": "#/components/schemas/AddressPoisoningBatchRequest"
									}
								]
							},
							"examples": {
								"Single — target only": {
									"summary": "Analyze one target address",
									"value": {
										"chain_id": 56,
										"address": "0x364e5f2a4e90cbaf0a2ee58f602fa9c5d70121f5"
									}
								},
								"Single — target plus user": {
									"summary": "Enable the classic address-mimicry check",
									"value": {
										"chain_id": 56,
										"address": "0x938915fd4b7c188a21ad73ed655ae1f18c334146",
										"user_address": "0x938915fd4b7c188a211113ed655ae1f18c334146"
									}
								},
								"Single — target plus token": {
									"summary": "Check a token contract for impersonation",
									"value": {
										"chain_id": 56,
										"address": "0x364e5f2a4e90cbaf0a2ee58f602fa9c5d70121f5",
										"token_address": "0x55d39f326f99059ff775485246999027b3197956"
									}
								},
								"Batch — targets and tokens": {
									"summary": "Analyze mixed address-history and token inputs",
									"value": {
										"user_addresses": [
											{
												"chain_id": 1,
												"address": "0x938915fd4b7c188a211113ed655ae1f18c334146"
											}
										],
										"target_addresses": [
											{
												"chain_id": 56,
												"address": "0x938915fd4b7c188a21ad73ed655ae1f18c334146"
											}
										],
										"token_addresses": [
											{
												"chain_id": 56,
												"address": "0x55d39f326f99059ff775485246999027b3197956"
											}
										]
									}
								}
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Successful response",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/AddressPoisoningResponse"
								},
								"examples": {
									"Single — target mimics user": {
										"summary": "Classic address-poisoning signal",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"target_address": {
													"is_poisoning": "1",
													"mimics_user": "1",
													"mimics_exchange": "0"
												},
												"token_address": {},
												"user_address_input": "0x938915fd4b7c188a21ad73ed655ae1f18c334146",
												"target_address_input": "0x938915fd4b7c188a21ad73ed655ae1f18c334146",
												"token_address_input": ""
											}
										}
									},
									"Batch — mixed success and item error": {
										"summary": "Successful siblings are retained when one item is invalid",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"target_addresses": [
													{
														"chain_id": 56,
														"address": "0x938915fd4b7c188a21ad73ed655ae1f18c334146",
														"is_poisoning": "1",
														"mimics_user": "1",
														"mimics_exchange": "0"
													},
													{
														"chain_id": 999999,
														"address": "0x1111111111111111111111111111111111111111",
														"error": {
															"code": "unsupported_chain",
															"detail": "unsupported chainId: 999999"
														}
													}
												],
												"token_addresses": [
													{
														"chain_id": 56,
														"address": "not-an-address",
														"error": {
															"code": "invalid_address",
															"detail": "address invalid EVM address format"
														}
													}
												]
											}
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Unsupported chain or invalid address in a single-address request",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								},
								"examples": {
									"Unsupported chain": {
										"value": {
											"code": "-1",
											"status": "notok",
											"detail": "unsupported chainId: 999999"
										}
									},
									"Invalid address": {
										"value": {
											"code": "-1",
											"status": "notok",
											"detail": "address invalid EVM address format"
										}
									}
								}
							}
						}
					},
					"401": {
						"$ref": "#/components/responses/Unauthorized"
					},
					"422": {
						"description": "Request shape failed validation",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/ErrorResponse"
								},
								"examples": {
									"Empty target and token lists": {
										"value": {
											"code": "-1",
											"status": "notok",
											"detail": "body.AddressPoisoningBatchRequest: Value error, At least one target or token address is required"
										}
									},
									"More than 1000 total items": {
										"value": {
											"code": "-1",
											"status": "notok",
											"detail": "body.AddressPoisoningBatchRequest: Value error, At most 1000 addresses are allowed"
										}
									}
								}
							}
						}
					},
					"429": {
						"$ref": "#/components/responses/RateLimitExceeded"
					},
					"500": {
						"$ref": "#/components/responses/InternalServerError"
					}
				},
				"security": [
					{
						"apiKeyAuth": []
					}
				],
				"tags": [
					"Address Intelligence"
				]
			},
			"get": {
				"summary": "Address Poisoning Detection (GET)",
				"description": "Analyzes one target address for poisoning and visual-mimicry signals using query parameters. Batch requests remain available through POST only.",
				"operationId": "addressPoisoningGet",
				"parameters": [
					{
						"name": "chain_id",
						"in": "query",
						"description": "Network identifier for the target address.",
						"required": true,
						"schema": {"type": "string"},
						"example": "56"
					},
					{
						"name": "address",
						"in": "query",
						"description": "Target address to analyze.",
						"required": true,
						"schema": {"type": "string"},
						"example": "0x938915fd4b7c188a21ad73ed655ae1f18c334146"
					},
					{
						"name": "user_address",
						"in": "query",
						"description": "Connected wallet address used for lookalike comparison.",
						"required": false,
						"schema": {"type": "string"},
						"example": "0x938915fd4b7c188a211113ed655ae1f18c334146"
					},
					{
						"name": "token_address",
						"in": "query",
						"description": "Optional token contract to compare with well-known tokens.",
						"required": false,
						"schema": {"type": "string"},
						"example": "0x55d39f326f99059ff775485246999027b3197956"
					}
				],
				"responses": {
					"200": {
						"description": "Successful single-address response",
						"content": {
							"application/json": {
								"schema": {"$ref": "#/components/schemas/AddressPoisoningSingleResponse"},
								"examples": {
									"Target mimics user": {
										"summary": "Classic address-poisoning signal",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"target_address": {
													"is_poisoning": "1",
													"mimics_user": "1",
													"mimics_exchange": "0"
												},
												"token_address": {},
												"target_address_input": "0x938915fd4b7c188a21ad73ed655ae1f18c334146",
												"user_address_input": "0x938915fd4b7c188a211113ed655ae1f18c334146",
												"token_address_input": ""
											}
										}
									}
								}
							}
						}
					},
					"400": {"$ref": "#/components/responses/BadRequest"},
					"401": {"$ref": "#/components/responses/Unauthorized"},
					"422": {"$ref": "#/components/responses/UnprocessableEntity"},
					"429": {"$ref": "#/components/responses/RateLimitExceeded"},
					"500": {"$ref": "#/components/responses/InternalServerError"}
				},
				"security": [{"apiKeyAuth": []}],
				"tags": ["Address Intelligence"]
			}
		},
		"/v2/hashdit/address-security-v2": {
			"post": {
				"summary": "Address Security v2",
				"description": "Returns stable overall security decision fields for addresses on supported EVM networks, TRON, and Solana. Completed responses may also contain chain-specific analysis objects that clients should treat as optional context.",
				"operationId": "addressSecurityV2",
				"requestBody": {
					"description": "Blockchain address to analyze",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/AddressSecurityV2Request"
							},
							"examples": {
								"Contract": {
									"summary": "Contract address example",
									"value": {
										"chain_id": "56",
										"address": "0x73feaa1ee314f8c655e354234017be2193c9e24e"
									}
								},
								"Externally Owned Address": {
									"summary": "EOA (Externally Owned Address) example",
									"value": {
										"chain_id": "56",
										"address": "0x56306851238d7aee9fac8cdd6877e92f83d5924c"
									}
								},
								"ERC-20": {
									"summary": "ERC-20 token example",
									"value": {
										"chain_id": "56",
										"address": "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"
									}
								}
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "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.",
						"content": {
							"application/json": {
								"schema": {
									"oneOf": [
										{
											"$ref": "#/components/schemas/AddressSecurityV2Response"
										},
										{
											"$ref": "#/components/schemas/InProgressResponse"
										}
									]
								},
								"examples": {
									"Success": {
										"summary": "Stable decision fields from a completed analysis",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"status": 200,
												"address": "bsc:0x73feaa1ee314f8c655e354234017be2193c9e24e",
												"address_type": "MasterChef",
												"overall_score": "90",
												"overall_risk_level": "No Obvious Risk",
												"scanned_time": 1764270688,
												"result_stage": "complete"
											}
										}
									},
									"In progress": {
										"summary": "Analysis queued — poll again",
										"value": {
											"code": "0",
											"status": "in progress",
											"pollAfter": 10
										}
									}
								}
							}
						}
					},
					"400": {
						"$ref": "#/components/responses/BadRequest"
					},
					"401": {
						"$ref": "#/components/responses/Unauthorized"
					},
					"422": {
						"$ref": "#/components/responses/UnprocessableEntity"
					},
					"429": {
						"$ref": "#/components/responses/RateLimitExceeded"
					},
					"500": {
						"$ref": "#/components/responses/InternalServerError"
					}
				},
				"security": [
					{
						"apiKeyAuth": []
					}
				],
				"tags": [
					"Address Intelligence"
				]
			}
		},
		"/v2/hashdit/solana-emulate": {
			"post": {
				"x-hidden": true,
				"summary": "Solana Transaction Simulation",
				"description": "Simulates serialized or structured Solana transactions before broadcast and reports execution status, balance changes, involved addresses, and known address risk. Per-transaction simulation failures are returned in `results[].error` inside a successful API envelope.",
				"operationId": "solanaEmulate",
				"requestBody": {
					"description": "Solana transactions to simulate",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/SolanaEmulateRequest"
							},
							"examples": {
								"Serialized transaction": {
									"summary": "Most common — serialized tx (base64 or base58)",
									"value": {
										"sol_transactions": [
											{
												"transaction": "AfgyfPp6V8GhP...base64...==",
												"encoding": "base64",
												"name": "user-swap"
											}
										],
										"requested_items": {
											"balance_changes": true,
											"involved_address_risks": true
										}
									}
								},
								"Structured transaction": {
									"summary": "HashDit assembles the transaction from instructions",
									"value": {
										"sol_transactions": [
											{
												"feePayer": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
												"name": "user-swap",
												"instructions": [
													{
														"programId": "11111111111111111111111111111111",
														"keys": [
															{
																"pubkey": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
																"isSigner": true,
																"isWritable": true
															},
															{
																"pubkey": "DRpbCBMxVnDK7maPM5tGv6MvB3v1sRMC86PZ8okm21hy",
																"isSigner": false,
																"isWritable": true
															}
														],
														"data": "AQIDBA=="
													}
												]
											}
										],
										"requested_items": {
											"balance_changes": true,
											"involved_address_risks": true
										}
									}
								}
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Successful API call. A failed simulation still returns `code: \"0\"` and `status: \"ok\"` — read `exec_summary.result_code` and `results[i].error`.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/SolanaEmulateResponse"
								},
								"examples": {
									"Successful simulation": {
										"summary": "Simulation completed",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"exec_summary": {
													"result_code": "000000000",
													"result_description": "Successful simulation.",
													"error_data": null
												},
												"results": [
													{
														"from": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
														"to": "11111111111111111111111111111111",
														"compute_units_consumed": 12345,
														"called_addresses": [
															"11111111111111111111111111111111"
														],
														"involved_addresses": [
															"11111111111111111111111111111111",
															"DRpbCBMxVnDK7maPM5tGv6MvB3v1sRMC86PZ8okm21hy",
															"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
														],
														"involved_addresses_risks": [
															{
																"address": "DRpbCBMxVnDK7maPM5tGv6MvB3v1sRMC86PZ8okm21hy",
																"risk_level": 1
															}
														],
														"balance_changes": [
															{
																"token_address": "native",
																"tokenName": "Solana",
																"symbol": "SOL",
																"divisor": "9",
																"change_list": [
																	{
																		"address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
																		"amount_change": "-1.000005",
																		"delta_value": "-1000005000"
																	},
																	{
																		"address": "DRpbCBMxVnDK7maPM5tGv6MvB3v1sRMC86PZ8okm21hy",
																		"amount_change": "1.0",
																		"delta_value": "1000000000"
																	}
																]
															}
														],
														"error": null,
														"name": "user-swap",
														"block_height": 355123456,
														"request_id": "a4883040-96fe-4192-ad34-99ff9cdf0e5e"
													}
												]
											}
										}
									},
									"Simulation error": {
										"summary": "Envelope still `code: \"0\"`; failure is in `error`",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"exec_summary": {
													"result_code": "<non-zero>",
													"result_description": "Simulation did not complete normally.",
													"error_data": "BlockhashNotFound"
												},
												"results": [
													{
														"from": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
														"to": "11111111111111111111111111111111",
														"compute_units_consumed": 0,
														"called_addresses": [],
														"involved_addresses": [],
														"balance_changes": [],
														"error": "BlockhashNotFound",
														"name": "user-swap",
														"request_id": "a4883040-96fe-4192-ad34-99ff9cdf0e5e"
													}
												]
											}
										}
									}
								}
							}
						}
					},
					"400": {
						"$ref": "#/components/responses/BadRequest"
					},
					"401": {
						"$ref": "#/components/responses/Unauthorized"
					},
					"422": {
						"$ref": "#/components/responses/UnprocessableEntity"
					},
					"429": {
						"$ref": "#/components/responses/RateLimitExceeded"
					},
					"500": {
						"$ref": "#/components/responses/InternalServerError"
					},
					"502": {
						"$ref": "#/components/responses/BadGateway"
					},
					"504": {
						"$ref": "#/components/responses/GatewayTimeout"
					}
				},
				"security": [
					{
						"apiKeyAuth": []
					}
				],
				"tags": [
					"Simulation"
				]
			}
		},
		"/v2/hashdit/token-approval-security": {
			"post": {
				"summary": "Token Approval Security",
				"description": "Returns a synchronous, risk-scored view of outstanding token approvals, including current and potential USD exposure, optional entity-risk enrichment, summary totals, and `has_more` pagination state.",
				"operationId": "tokenApprovalSecurity",
				"requestBody": {
					"description": "Approval query. At least one of `owner` or `spender` is required. `token` cannot be sent on its own.",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/TokenApprovalSecurityRequest"
							},
							"examples": {
								"Owner with balance and spender risk": {
									"summary": "BSC owner — typical approval-manager query",
									"value": {
										"chain_id": "56",
										"owner": "0x26d61f23bbc94d7b2139f9c581722bf4e8b64b87",
										"include_balance": true,
										"include_spender_risk": true
									}
								},
								"TRON": {
									"summary": "TRON — `chain_id` as `\"tron\"`",
									"value": {
										"chain_id": "tron",
										"owner": "TUAEpR16Th4pLbjECPVYTgvPyStNKyB54h",
										"include_balance": true
									}
								}
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Successful response. Envelope is `{code, status, data}`.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/TokenApprovalSecurityResponse"
								},
								"examples": {
									"Approvals with balance cap": {
										"summary": "Row 1: $4.50 at risk today, unlimited going forward. Row 2: risky spender.",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"count": 2,
												"has_more": false,
												"approval_status": [
													{
														"token": "0x55d398326f99059ff775485246999027b3197955",
														"owner": "0x26d61f23bbc94d7b2139f9c581722bf4e8b64b87",
														"spender": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
														"amount_raw": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
														"valid_allowance": "4500000000000000000",
														"token_decimal": 18,
														"affected_usd_amount": 4.5,
														"potential_affected_usd_amount": "Unlimited",
														"token_name": "Binance-Peg BSC-USD",
														"balance": "4500000000000000000",
														"spender_risk": {
															"is_risky": false,
															"risk_level": 0,
															"risk_details": [],
															"risk_level_display": "Trusted"
														}
													},
													{
														"token": "0xd8a2ae43fd061d24acd538e3866ffc2c05151b41",
														"owner": "0x26d61f23bbc94d7b2139f9c581722bf4e8b64b87",
														"spender": "0xb0b195aefa3650a6908f15cdac7d92f8a5791b0b",
														"amount_raw": "9999999999999999999999",
														"valid_allowance": "9999999999999999999999",
														"token_decimal": 18,
														"affected_usd_amount": 0.02,
														"potential_affected_usd_amount": 0.02,
														"token_name": null,
														"balance": "9999999999999999999999",
														"spender_risk": {
															"is_risky": true,
															"risk_level": 5,
															"risk_details": [
																"blacklist_manual"
															],
															"risk_level_display": "High Risk"
														}
													}
												],
												"valid_approved_tokens": [
													{
														"token_name": "Binance-Peg BSC-USD",
														"token_address": "0x55d398326f99059ff775485246999027b3197955",
														"token_price": 1,
														"token_decimal": 18
													}
												],
												"summary": {
													"total_affected_usd_amount": 4.52,
													"total_potential_affected_usd_amount": 4.52,
													"risky_approval_count": 1,
													"total_risky_usd_amount": 0.02,
													"risky_approval_indices": [
														1
													]
												}
											}
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "Bad request — malformed or missing field, unsupported chain, invalid address, `token` alone, or an invalid `filter`.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CurrentServiceError"
								},
								"examples": {
									"Invalid request": {
										"summary": "Malformed or missing field",
										"value": {
											"code": "-1",
											"status": "invalid request",
											"detail": "…"
										}
									},
									"Token alone": {
										"summary": "`token` without `owner` or `spender`",
										"value": {
											"code": "-1",
											"status": "invalid request",
											"detail": "…"
										}
									},
									"Unsupported chain": {
										"summary": "Chain not enabled for this endpoint (only `1`, `56`, TRON)",
										"value": {
											"code": "-1",
											"status": "unsupported chain",
											"detail": "unsupported chainId: 137"
										}
									},
									"Invalid address": {
										"summary": "Address fails the format check for that chain",
										"value": {
											"code": "-1",
											"status": "invalid address",
											"detail": "…"
										}
									},
									"Invalid filter": {
										"summary": "`filter` must be `\"only-valid\"` if sent",
										"value": {
											"code": "-1",
											"status": "invalid request",
											"detail": "…"
										}
									}
								}
							}
						}
					},
					"401": {
						"$ref": "#/components/responses/Unauthorized"
					},
					"422": {
						"$ref": "#/components/responses/UnprocessableEntity"
					},
					"429": {
						"$ref": "#/components/responses/RateLimitExceeded"
					},
					"500": {
						"$ref": "#/components/responses/InternalServerError"
					}
				},
				"security": [
					{
						"apiKeyAuth": []
					}
				],
				"tags": [
					"Token Security"
				]
			}
		},
		"/v2/hashdit/eip712-security": {
			"post": {
				"summary": "EIP-712 Signature Security",
				"description": "Analyze an EIP-712 typed-data signing request before the user signs it. Returns a risk assessment with `recommended_action` (`ALLOW`, `WARN`, or `BLOCK`).",
				"operationId": "eip712Security",
				"requestBody": {
					"description": "EIP-712 typed-data payload. Pass `eip712Message` through as the dApp sent it to the wallet.",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/Eip712SecurityRequest"
							},
							"examples": {
								"Unlimited permit": {
									"summary": "Permit on a dApp URL — typical wallet pre-sign check",
									"value": {
										"address": "0x1d99c0ac928f58595b9d060c79f799fa38d171f4",
										"chain_id": 1,
										"url": "https://app.uniswap.org",
										"eip712_message": {
											"primaryType": "Permit",
											"types": {
												"EIP712Domain": [
													{
														"name": "name",
														"type": "string"
													},
													{
														"name": "chainId",
														"type": "uint256"
													},
													{
														"name": "verifyingContract",
														"type": "address"
													}
												],
												"Permit": [
													{
														"name": "owner",
														"type": "address"
													},
													{
														"name": "spender",
														"type": "address"
													},
													{
														"name": "value",
														"type": "uint256"
													},
													{
														"name": "nonce",
														"type": "uint256"
													},
													{
														"name": "deadline",
														"type": "uint256"
													}
												]
											},
											"domain": {
												"chainId": 1,
												"name": "USD Coin",
												"verifyingContract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"
											},
											"message": {
												"owner": "0x1d99c0ac928f58595b9d060c79f799fa38d171f4",
												"spender": "0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45",
												"value": 1000000,
												"nonce": 5,
												"deadline": 1775000000
											}
										}
									}
								}
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Successful response. Envelope is `{code, status, data}`. Use `data.recommended_action` as the decision.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/Eip712SecurityResponse"
								},
								"examples": {
									"Unlimited permit": {
										"summary": "`BLOCK` — blacklisted URL and unlimited permit",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"overall_score": 5,
												"overall_risk_level": "Significant Risk",
												"intent": "TOKEN_APPROVAL",
												"recommended_action": "BLOCK",
												"risk_details": [
													{
														"name": "eip712_url_blacklisted",
														"value": {
															"url": "https://malicious-dapp.com"
														},
														"score": 5,
														"risk_level": "Significant Risk",
														"description": "There are potential risks in the dApp url based on the threat intelligence."
													},
													{
														"name": "eip712_permit_max_uint_allowance",
														"value": {
															"max_value": "115792089237316195423570985008687907853269984665640564039457584007913129639935",
															"threshold": "extreme"
														},
														"score": 4,
														"risk_level": "High Risk",
														"description": "Permit-like signature contains near-unlimited allowance."
													}
												],
												"entities": {
													"addresses": {
														"0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45": {
															"score": 0,
															"risk_level": "No Obvious Risk"
														},
														"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48": {
															"score": 0,
															"risk_level": "No Obvious Risk"
														}
													},
													"url": {
														"score": 5,
														"risk_level": "Significant Risk"
													},
													"verifyingContract": {
														"score": 0,
														"risk_level": "No Obvious Risk"
													}
												}
											}
										}
									},
									"Clean": {
										"summary": "`ALLOW` — no checkpoints fired",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"overall_score": 0,
												"overall_risk_level": "No Obvious Risk",
												"intent": "TOKEN_APPROVAL",
												"recommended_action": "ALLOW",
												"risk_details": [],
												"entities": {
													"addresses": {
														"0x68b3465833fb72a70ecdf485e0e4c7bd8665fc45": {
															"score": 0,
															"risk_level": "No Obvious Risk"
														}
													},
													"verifyingContract": {
														"score": 0,
														"risk_level": "No Obvious Risk"
													}
												}
											}
										}
									}
								}
							}
						}
					},
					"400": {
						"$ref": "#/components/responses/BadRequest"
					},
					"401": {
						"$ref": "#/components/responses/Unauthorized"
					},
					"422": {
						"$ref": "#/components/responses/UnprocessableEntity"
					},
					"429": {
						"$ref": "#/components/responses/RateLimitExceeded"
					},
					"500": {
						"$ref": "#/components/responses/InternalServerError"
					}
				},
				"security": [
					{
						"apiKeyAuth": []
					}
				],
				"tags": [
					"Signature Security"
				]
			}
		},
		"/v2/hashdit/solana-token-security": {
			"post": {
				"summary": "Solana Token Security",
				"description": "Returns stable overall security decision fields for a Solana token mint. Completed responses may also contain Solana-specific analysis objects that clients should treat as optional context.",
				"operationId": "solanaTokenSecurity",
				"requestBody": {
					"description": "Solana token mint address to analyze",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/SolanaTokenSecurityRequest"
							},
							"examples": {
								"Solana token": {
									"summary": "Analyze a Solana token mint",
									"value": {
										"address": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
										"sync": false
									}
								}
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "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.",
						"content": {
							"application/json": {
								"schema": {
									"oneOf": [
										{
											"$ref": "#/components/schemas/SolanaTokenSecurityResponse"
										},
										{
											"$ref": "#/components/schemas/InProgressResponse"
										}
									]
								},
								"examples": {
									"Success": {
										"summary": "Stable decision fields from a completed analysis",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"status": 200,
												"address": "sol:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
												"address_type": "Solana",
												"overall_score": "80",
												"overall_risk_level": "Low Risk",
												"scanned_time": 1790617277,
												"result_stage": "complete"
											}
										}
									},
									"In progress": {
										"summary": "Analysis queued — poll again",
										"value": {
											"code": "0",
											"status": "in progress",
											"pollAfter": 10
										}
									}
								}
							}
						}
					},
					"400": {
						"$ref": "#/components/responses/BadRequest"
					},
					"401": {
						"$ref": "#/components/responses/Unauthorized"
					},
					"422": {
						"$ref": "#/components/responses/UnprocessableEntity"
					},
					"429": {
						"$ref": "#/components/responses/RateLimitExceeded"
					},
					"500": {
						"$ref": "#/components/responses/InternalServerError"
					}
				},
				"security": [
					{
						"apiKeyAuth": []
					}
				],
				"tags": [
					"Token Security"
				]
			}
		},
		"/v2/hashdit/token-security": {
			"post": {
				"summary": "Token Security",
				"description": "Returns stable overall security decision fields for tokens on supported EVM networks and TRON. Completed responses may also contain chain-specific analysis objects that clients should treat as optional context.",
				"operationId": "tokenSecurity",
				"requestBody": {
					"description": "Token contract address to analyze",
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/TokenSecurityRequest"
							},
							"examples": {
								"BSC token": {
									"summary": "Analyze a BSC token contract",
									"value": {
										"chain_id": 56,
										"address": "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
										"sync": false
									}
								},
								"TRON token": {
									"summary": "Analyze a TRON token contract",
									"value": {
										"chain_id": "tron",
										"address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
										"sync": false
									}
								}
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "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.",
						"content": {
							"application/json": {
								"schema": {
									"oneOf": [
										{
											"$ref": "#/components/schemas/TokenSecurityResponse"
										},
										{
											"$ref": "#/components/schemas/InProgressResponse"
										}
									]
								},
								"examples": {
									"BNB Smart Chain": {
										"summary": "Stable decision fields from a completed BSC analysis",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"status": 200,
												"address": "bsc:0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82",
												"address_type": "ERC20",
												"overall_score": "90",
												"overall_risk_level": "No Obvious Risk",
												"scanned_time": 1790594185,
												"result_stage": "complete"
											}
										}
									},
									"TRON": {
										"summary": "Stable decision fields from a TRON fallback result",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"status": 200,
												"address": "tron:TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
												"address_type": "unknown",
												"overall_score": "100",
												"overall_risk_level": "No Obvious Risk",
												"scanned_time": 1790617185,
												"result_stage": "fallback"
											}
										}
									},
									"In progress": {
										"summary": "Analysis queued — poll again",
										"value": {
											"code": "0",
											"status": "in progress",
											"pollAfter": 10
										}
									}
								}
							}
						}
					},
					"400": {
						"$ref": "#/components/responses/BadRequest"
					},
					"401": {
						"$ref": "#/components/responses/Unauthorized"
					},
					"422": {
						"$ref": "#/components/responses/UnprocessableEntity"
					},
					"429": {
						"$ref": "#/components/responses/RateLimitExceeded"
					},
					"500": {
						"$ref": "#/components/responses/InternalServerError"
					}
				},
				"security": [
					{
						"apiKeyAuth": []
					}
				],
				"tags": [
					"Token Security"
				]
			}
		},
		"/v2/hashdit/transaction-security": {
			"post": {
				"summary": "Transaction Security",
				"description": "Understand the action a transaction requests **before the user signs it**, then decide whether to allow, warn, or block the request. HashDit returns decoded transaction intent alongside its security recommendation and, when requested, predicted execution effects.",
				"operationId": "transactionSecurity",
				"requestBody": {
					"required": true,
					"content": {
						"application/json": {
							"schema": {
								"$ref": "#/components/schemas/TransactionSecurityRequest"
							},
							"examples": {
								"Unlimited Approval (EVM)": {
									"summary": "WARN — uncapped BSC-USD allowance to the PancakeSwap router",
									"value": {
										"dapp_url": "https://pancakeswap.finance/swap",
										"evm_transactions": [
											{
												"chain_id": 56,
												"from": "0x8894E0a0c962CB723c1976a4421c95949bE2D4E3",
												"to": "0x55d398326f99059ff775485246999027b3197955",
												"value": "0",
												"data": "0x095ea7b300000000000000000000000010ed43c718714eb63d5aa57b78b54704e256024effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
											}
										]
									}
								},
								"Native Transfer (EVM)": {
									"summary": "BSC native 1 BNB — ALLOW",
									"value": {
										"evm_transactions": [
											{
												"name": "Native Transfer of 1 BNB",
												"chain_id": "56",
												"from": "0x000000000000000000000000000000000000dead",
												"to": "0x6ad549e6312114e646f30cDDde75e15a96d86233",
												"value": "1000000000000000000",
												"data": "0x",
												"gasLimit": 21000
											}
										]
									}
								},
								"ERC-20 Transfer (High Portion) (EVM)": {
									"summary": "BSC ERC-20 transfer of most of the wallet's BSC-USD — WARN",
									"value": {
										"evm_transactions": [
											{
												"name": "ERC20 Transfer 1 BUSD",
												"chain_id": "56",
												"from": "0xD920d10d29Ea69F91859Af3C495F25F7E7acD953",
												"to": "0x55d398326f99059ff775485246999027b3197955",
												"value": "0x0",
												"block_height": "79151135",
												"data": "0xa9059cbb0000000000000000000000006ad549e6312114e646f30cddde75e15a96d862330000000000000000000000000000000000000000000000000de0b6b3a7640000",
												"gasLimit": "60000"
											}
										]
									}
								},
								"Tron Flattened": {
									"summary": "ALLOW — USDT transfer sent as evm_transactions",
									"value": {
										"dapp_url": "https://app.tronlink.org/send",
										"evm_transactions": [
											{
												"chain_id": "tron",
												"from": "TRYtrEkTFiZbuuzt7o7ac7TVeEC5PLsnQa",
												"to": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
												"value": "0",
												"data": "0xa9059cbb000000000000000000000000aae8e079b632f89a3591a3c2264076a8e1536f570000000000000000000000000000000000000000000000000000000000989680",
												"gas": "65000"
											}
										]
									}
								},
								"Tron Unsigned Transaction": {
									"summary": "WARN — unmodified tronWeb.transactionBuilder object",
									"value": {
										"dapp_url": "https://app.example.com",
										"tron_transactions": [
											{
												"visible": false,
												"txID": "9d2f0c3e1c6e8b1e0e1f1b3a5c7d9e0f1a2b3c4d5e6f708192a3b4c5d6e7f809",
												"raw_data": {
													"contract": [
														{
															"type": "TriggerSmartContract",
															"parameter": {
																"type_url": "type.googleapis.com/protocol.TriggerSmartContract",
																"value": {
																	"owner_address": "41aae8e079b632f89a3591a3c2264076a8e1536f57",
																	"contract_address": "41a614f803b6fd780986a42c78ec9c7f77e6ded13c",
																	"data": "095ea7b3000000000000000000000000e28b3cfd4e0e909077821478e9fcb86b84be786effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
																}
															}
														}
													],
													"ref_block_bytes": "b4c1",
													"expiration": 1758000000000,
													"timestamp": 1757999940000,
													"fee_limit": 15000000
												},
												"raw_data_hex": "0a02b4c1"
											}
										]
									}
								},
								"Tron Permission Change": {
									"summary": "WARN — AccountPermissionUpdateContract, no execution preview",
									"value": {
										"dapp_url": "https://trust-wallet-verify.net",
										"tron_transactions": [
											{
												"raw_data": {
													"contract": [
														{
															"type": "AccountPermissionUpdateContract",
															"parameter": {
																"value": {
																	"owner_address": "41aae8e079b632f89a3591a3c2264076a8e1536f57",
																	"owner": {
																		"type": 0,
																		"permission_name": "owner",
																		"threshold": 1,
																		"keys": [
																			{
																				"address": "418840e6c55b9ada326d211d818c34a994aeced808",
																				"weight": 1
																			}
																		]
																	}
																}
															}
														}
													],
													"timestamp": 1757999940000
												}
											}
										]
									}
								}
							}
						}
					}
				},
				"responses": {
					"200": {
						"description": "Successful response.\n\n`transaction_info` describes the requested action and decoded top-level call; it is not a security verdict or proof of execution. `code: \"0\"` means the API request succeeded; it does not mean the transaction would. Check `security.recommended_action` for the signing decision and, when simulation is enabled, `exec_summary.result_code` plus `results[0].revert` for the predicted execution outcome.\n\nA revert is served at HTTP `200`. `simulation_error` is `null` when execution produced a result — including a revert.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/TransactionSecurityResponse"
								},
								"examples": {
									"Unlimited Approval (EVM)": {
										"summary": "WARN — tx_unlimited_approval",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"exec_summary": {
													"result_code": "000000000",
													"result_description": "Successful simulation.",
													"error_data": null
												},
												"simulation_error": null,
												"results": [
													{
														"revert": false,
														"platform": "bsc",
														"tx_gas_used": 46284,
														"approve_changes": [
															{
																"token_address": "0x55d398326f99059ff775485246999027b3197955",
																"tokenName": "Binance-Peg BSC-USD",
																"symbol": "BSC-USD",
																"approve_list": [
																	{
																		"approver_address": "0x8894e0a0c962cb723c1976a4421c95949be2d4e3",
																		"spender_address": "0x10ed43c718714eb63d5aa57b78b54704e256024e",
																		"begin_value": "0",
																		"end_value": "115792089237316195423570985008687907853269984665640564039457584007913129639935"
																	}
																]
															}
														],
														"balance_changes": []
													}
												],
											"transaction_info": {
												"transaction_type": "approve",
												"primary_action": "approve",
												"actions": [
													"approve"
												],
												"decoded_call": {
													"selector": "0x095ea7b3",
													"function_name": "approve",
													"function_signature": "approve(address,uint256)",
													"params": [
														{
															"name": "spender",
															"type": "address",
															"value": "0x10ed43c718714eb63d5aa57b78b54704e256024e"
														},
														{
															"name": "amount",
															"type": "uint256",
															"value": "115792089237316195423570985008687907853269984665640564039457584007913129639935"
														}
													]
												}
											},
											"security": {
													"overall_score": 3,
													"overall_risk_level": "Medium Risk",
													"recommended_action": "WARN",
													"risk_details": [
														{
															"name": "tx_unlimited_approval",
															"score": 3,
															"risk_level": "Medium Risk",
															"description": "Grants 0x10ed43c718714eb63d5aa57b78b54704e256024e an unlimited BSC-USD allowance, spendable at any time until revoked"
														}
													]
												}
											}
										}
									},
									"Native Transfer (EVM)": {
										"summary": "ALLOW — empty risk_details, native BNB balance_changes",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"exec_summary": {
													"result_code": "000000000",
													"result_description": "Successful simulation.",
													"error_data": null,
													"emulator_type": "node_trace_js"
												},
												"results": [
													{
														"approve_changes": [],
														"balance_changes": [
															{
																"change_list": [
																	{
																		"address": "0x000000000000000000000000000000000000dead",
																		"amount_change": "-1",
																		"begin_value": "16497346614528819889359821",
																		"delta_value": "-1000000000000000000",
																		"end_value": "16497345614528819889359821",
																		"value_usd": "-603.1765"
																	},
																	{
																		"address": "0x6ad549e6312114e646f30cddde75e15a96d86233",
																		"amount_change": "1",
																		"begin_value": "100000000000",
																		"delta_value": "1000000000000000000",
																		"end_value": "1000000100000000000",
																		"value_usd": "603.1765"
																	}
																],
																"divisor": "18",
																"symbol": "BNB",
																"tokenName": "Native BNB",
																"tokenPriceUSD": "603.1765",
																"token_address": "native"
															}
														],
														"block_height": 121927159,
														"called_addresses": [
															"0x6ad549e6312114e646f30cddde75e15a96d86233"
														],
														"involved_addresses": [
															"0x000000000000000000000000000000000000dead",
															"0x6ad549e6312114e646f30cddde75e15a96d86233"
														],
														"name": "Native Transfer of 1 BNB",
														"ownership_changes": [],
														"platform": "bsc",
														"request_id": "25ebdc9c-b999-4d51-82b8-c5d31fea7c7e",
														"revert": false,
														"sender_on_chain_balance": "16497346614528819889359821",
														"tx_gas_price": 108151670367,
														"tx_gas_used": 21000
													}
												],
											"transaction_info": {
												"transaction_type": "transfer",
												"primary_action": "transfer",
												"actions": [
													"transfer"
												],
												"decoded_call": null
											},
											"security": {
													"overall_score": 0,
													"overall_risk_level": "No Obvious Risk",
													"recommended_action": "ALLOW",
													"risk_details": []
												}
											}
										}
									},
									"ERC-20 Transfer (High Portion) (EVM)": {
										"summary": "WARN — tx_high_portion_transfer",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"exec_summary": {
													"result_code": "000000000",
													"result_description": "Successful simulation.",
													"error_data": null,
													"emulator_type": "node_trace_js"
												},
												"results": [
													{
														"approve_changes": [],
														"balance_changes": [
															{
																"change_list": [
																	{
																		"address": "0xd920d10d29ea69f91859af3c495f25f7e7acd953",
																		"amount_change": "-1",
																		"begin_value": "1067643346464128148",
																		"delta_value": "-1000000000000000000",
																		"end_value": "67643346464128148",
																		"value_usd": "-0.9992"
																	},
																	{
																		"address": "0x6ad549e6312114e646f30cddde75e15a96d86233",
																		"amount_change": "1",
																		"begin_value": "0",
																		"delta_value": "1000000000000000000",
																		"end_value": "1000000000000000000",
																		"value_usd": "0.9992"
																	}
																],
																"divisor": "18",
																"symbol": "BSC-USD",
																"tokenName": "Binance-Peg BSC-USD",
																"tokenPriceUSD": "0.9992",
																"token_address": "0x55d398326f99059ff775485246999027b3197955"
															}
														],
														"block_height": 79151135,
														"called_addresses": [
															"0x55d398326f99059ff775485246999027b3197955"
														],
														"involved_addresses": [
															"0x55d398326f99059ff775485246999027b3197955",
															"0x6ad549e6312114e646f30cddde75e15a96d86233",
															"0xd920d10d29ea69f91859af3c495f25f7e7acd953"
														],
														"name": "ERC20 Transfer 1 BUSD",
														"ownership_changes": [],
														"platform": "bsc",
														"request_id": "359192e7-c11f-4592-957d-b5fd19f90745",
														"revert": false,
														"sender_on_chain_balance": "4779161409962589",
														"tx_gas_price": 109957839177,
														"tx_gas_used": 51603
													}
												],
											"transaction_info": {
												"transaction_type": "transfer",
												"primary_action": "transfer",
												"actions": [
													"transfer"
												],
												"decoded_call": {
													"selector": "0xa9059cbb",
													"function_name": "transfer",
													"function_signature": "transfer(address,uint256)",
													"params": [
														{
															"name": "to",
															"type": "address",
															"value": "0x6ad549e6312114e646f30cddde75e15a96d86233"
														},
														{
															"name": "amount",
															"type": "uint256",
															"value": "1000000000000000000"
														}
													]
												}
											},
											"security": {
													"overall_score": 3,
													"overall_risk_level": "Medium Risk",
													"recommended_action": "WARN",
													"risk_details": [
														{
															"name": "tx_high_portion_transfer",
															"score": 3,
															"risk_level": "Medium Risk",
															"description": "Moves 93% of the BSC-USD held by this wallet"
														}
													]
												}
											}
										}
									},
									"Tron Flattened": {
										"summary": "ALLOW — tron_fee instead of EVM gas figures",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"exec_summary": {
													"result_code": "000000000",
													"result_description": "Successful simulation.",
													"error_data": null,
													"emulator_type": "local_emulator"
												},
												"simulation_error": null,
												"results": [
													{
														"revert": false,
														"platform": "tron",
														"block_height": 86121019,
														"sender_on_chain_balance": "149399306369",
														"called_addresses": [
															"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"
														],
														"involved_addresses": [
															"TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
															"TRYtrEkTFiZbuuzt7o7ac7TVeEC5PLsnQa"
														],
														"balance_changes": [],
														"approve_changes": [],
														"tron_fee": {
															"bandwidth_consumed": 345,
															"bandwidth_fee_sun": 0,
															"energy_consumed": 64285,
															"energy_fee_sun": 0,
															"total_fee_sun": 0
														}
													}
												],
											"transaction_info": {
												"transaction_type": "transfer",
												"primary_action": "transfer",
												"actions": [
													"transfer"
												],
												"decoded_call": {
													"selector": "0xa9059cbb",
													"function_name": "transfer",
													"function_signature": "transfer(address,uint256)",
													"params": [
														{
															"name": "to",
															"type": "address",
															"value": "TRYtrEkTFiZbuuzt7o7ac7TVeEC5PLsnQa"
														},
														{
															"name": "amount",
															"type": "uint256",
															"value": "10000000"
														}
													]
												}
											},
											"security": {
													"overall_score": 0,
													"overall_risk_level": "No Obvious Risk",
													"recommended_action": "ALLOW",
													"risk_details": []
												}
											}
										}
									},
									"Tron Unsigned Transaction": {
										"summary": "WARN — Base58 addresses and insufficient fee_limit",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"exec_summary": {
													"result_code": "000000000",
													"result_description": "Successful simulation.",
													"error_data": null,
													"emulator_type": "local_emulator"
												},
												"simulation_error": null,
												"results": [
													{
														"revert": false,
														"platform": "tron",
														"block_height": 86301898,
														"approve_changes": [
															{
																"token_address": "TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t",
																"tokenName": "Tether USD",
																"symbol": "USDT",
																"approve_list": [
																	{
																		"approver_address": "TRYtrEkTFiZbuuzt7o7ac7TVeEC5PLsnQa",
																		"spender_address": "TWd4WrZ9wn84f5x1hZhL4DHvk738ns5jwb",
																		"begin_value": "0",
																		"end_value": "115792089237316195423570985008687907853269984665640564039457584007913129639935"
																	}
																]
															}
														],
														"tron_fee": {
															"energy_consumed": 99764,
															"energy_fee_sun": 21000000,
															"total_fee_sun": 21000000
														}
													}
												],
												"tron_fee_limit": {
													"fee_limit_sun": 15000000,
													"estimated_fee_sun": 21000000,
													"sufficient": false
												},
											"transaction_info": {
												"transaction_type": "approve",
												"primary_action": "approve",
												"actions": [
													"approve"
												],
												"decoded_call": {
													"selector": "0x095ea7b3",
													"function_name": "approve",
													"function_signature": "approve(address,uint256)",
													"params": [
														{
															"name": "spender",
															"type": "address",
															"value": "TWd4WrZ9wn84f5x1hZhL4DHvk738ns5jwb"
														},
														{
															"name": "amount",
															"type": "uint256",
															"value": "115792089237316195423570985008687907853269984665640564039457584007913129639935"
														}
													]
												}
											},
											"security": {
													"overall_score": 3,
													"overall_risk_level": "Medium Risk",
													"recommended_action": "WARN",
													"risk_details": [
														{
															"name": "tx_unlimited_approval",
															"score": 3,
															"risk_level": "Medium Risk",
															"description": "Grants TWd4WrZ9wn84f5x1hZhL4DHvk738ns5jwb an unlimited USDT allowance, spendable at any time until revoked"
														}
													]
												}
											}
										}
									},
									"Tron Permission Change": {
										"summary": "WARN — empty results, tx_tron_permission_transfer",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"exec_summary": {
													"result_code": null,
													"result_description": null,
													"error_data": null,
													"emulator_type": null
												},
												"simulation_error": "AccountPermissionUpdateContract cannot be previewed; security assessment still applies.",
												"results": [],
											"transaction_info": {
												"transaction_type": "other",
												"primary_action": "permission_update",
												"actions": [
													"permission_update"
												],
												"decoded_call": null
											},
											"security": {
													"overall_score": 3,
													"overall_risk_level": "Medium Risk",
													"recommended_action": "WARN",
													"risk_details": [
														{
															"name": "tx_tron_permission_transfer",
															"score": 3,
															"risk_level": "Medium Risk",
															"description": "Grants TNPeeaaFB7K9cmo4uQpcU32zGK8G1NYqeL control of this account — they can move any of its assets without another signature from you, and revoking it needs a further permission change. You would keep no key to this account at all."
														}
													]
												}
											}
										}
									},
									"Skip Simulation": {
										"summary": "`data` contains `security` and `transaction_info`",
										"value": {
											"code": "0",
											"status": "ok",
											"data": {
												"transaction_info": {
													"transaction_type": "approve",
													"primary_action": "approve",
													"actions": [
														"approve"
													],
													"decoded_call": {
														"selector": "0x095ea7b3",
														"function_name": "approve",
														"function_signature": "approve(address,uint256)",
														"params": [
															{
																"name": "spender",
																"type": "address",
																"value": "0x10ed43c718714eb63d5aa57b78b54704e256024e"
															},
															{
																"name": "amount",
																"type": "uint256",
																"value": "115792089237316195423570985008687907853269984665640564039457584007913129639935"
															}
														]
													}
												},
												"security": {
													"overall_score": 3,
													"overall_risk_level": "Medium Risk",
													"recommended_action": "WARN",
													"risk_details": [
														{
															"name": "tx_unlimited_approval",
															"score": 3,
															"risk_level": "Medium Risk",
															"description": "Grants 0x10ed43c718714eb63d5aa57b78b54704e256024e an unlimited BSC-USD allowance, spendable at any time until revoked"
														}
													]
												}
											}
										}
									}
								}
							}
						}
					},
					"400": {
						"description": "A required field is missing, a value cannot be read, two aliases of one field disagree, both request shapes were sent, more than one transaction was sent, or the chain is unsupported.\n\nError responses include a `detail` or `message` explaining the failure.",
						"content": {
							"application/json": {
								"schema": {
									"$ref": "#/components/schemas/CurrentServiceError"
								},
								"examples": {
									"Batch not supported": {
										"summary": "More than one transaction was sent",
										"value": {
											"code": "-1",
											"status": "invalid request",
											"detail": "send exactly one transaction; batch analysis is not supported"
										}
									},
									"Both request shapes": {
										"summary": "`evm_transactions` and `tron_transactions` sent together",
										"value": {
											"code": "-1",
											"status": "invalid request",
											"detail": "send either 'tron_transactions' or 'evm_transactions', not both: they describe the same request two different ways and only one of them can be the one the user is signing"
										}
									},
									"Hex amount in tron_transactions": {
										"summary": "`0x`-prefixed amount inside a Tron envelope",
										"value": {
											"code": "-1",
											"status": "invalid request",
											"detail": "tron_transactions[0]: could not read 'amount' as a number: '0xf4240'. Tron writes these in decimal; a 0x-prefixed value is not a Tron amount"
										}
									}
								}
							}
						}
					},
					"401": {
						"$ref": "#/components/responses/Unauthorized"
					},
					"429": {
						"$ref": "#/components/responses/RateLimitExceeded"
					},
					"500": {
						"$ref": "#/components/responses/InternalServerError"
					}
				},
				"security": [
					{
						"apiKeyAuth": []
					}
				],
				"tags": [
					"Transaction Security"
				]
			}
		}
	},
	"components": {
		"schemas": {
			"DomainSecurityRequest": {
				"type": "object",
				"required": [
					"url"
				],
				"properties": {
					"url": {
						"type": "string",
						"description": "The domain or URL to analyze. A scheme, path and query string are accepted and normalized.",
						"example": "https://pancakeswap.finance/"
					},
					"liveness_check": {
						"type": "boolean",
						"default": false,
						"description": "When `true`, also report whether a visitor opening this URL would see usable content. Adds latency. A healthy server answering a request is not sufficient. Also accepts `liveness_check`."
					},
					"liveness_policy": {
						"type": "string",
						"enum": [
							"lenient",
							"strict",
							"evidence"
						],
						"default": "lenient",
						"description": "How to resolve the case where the check was blocked and cannot tell whether a visitor would have been. Only meaningful when `liveness_check` is `true`. Any other value is rejected with HTTP 422. Also accepts `liveness_policy`. Switching policy never changes `risk_level`.\n\n- `lenient` (default) — blocked check is `accessible`. Use when warning users: a site that only blocks automation still works for the person about to click it.\n- `strict` — blocked check is `not_accessible`. Use when vetting a submitted site; expect some manual review.\n- `evidence` — returns no verdict; `status` is `null` and you decide from `http_status`"
					}
				}
			},
			"DomainSecurityResponse": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string",
						"description": "API status code. \"0\" indicates success.",
						"example": "0"
					},
					"status": {
						"type": "string",
						"description": "Request status (ok or error).",
						"example": "ok"
					},
					"data": {
						"$ref": "#/components/schemas/DomainSecurityData"
					}
				},
				"required": [
					"code",
					"status",
					"data"
				]
			},
			"DomainSecurityData": {
				"type": "object",
				"properties": {
					"request_id": {
						"type": "string",
						"description": "Unique identifier for this request. Quote it in support requests.",
						"example": "85cb060e-75cf-4d75-887f-c23f2fc45106"
					},
					"has_result": {
						"type": "boolean",
						"description": "Whether the analysis was immediately available.",
						"example": true
					},
					"polling_interval": {
						"type": "number",
						"description": "Seconds to wait before retrying when `has_result` is `false`. `0` when not applicable.",
						"example": 0
					},
					"risk_level": {
						"type": "number",
						"description": "`-1`, or `0`–`5`. Higher is riskier. `-1` means no verdict could be formed.",
						"minimum": -1,
						"maximum": 5,
						"example": 0
					},
					"risk_name": {
						"type": "string",
						"description": "Human-readable name for `risk_level`.\n\n- `-1` — `Unknown`\n- `0` — `Trusted`\n- `1` — `No Obvious Risk`\n- `2` — `Low Risk`\n- `3` — `Medium Risk`\n- `4` — `High Risk`\n- `5` — `Significant Risk`",
						"example": "Medium Risk"
					},
					"risk_detail": {
						"type": "array",
						"description": "Indicators behind the score. Empty when none matched.",
						"items": {
							"$ref": "#/components/schemas/RiskDetail"
						}
					},
					"liveness": {
						"type": "string",
						"enum": [
							"alive",
							"dead",
							"unknown"
						],
						"description": "Present only when `liveness_check` is `true` and the check ran. Omitted entirely when the check could not run — treat absence as no answer, not a negative. Maps from `liveness_detail.status`: `accessible` → `alive`, `not_accessible` → `dead`, and `unknown` when the result could not be determined or `liveness_policy` is `evidence`."
					},
					"liveness_detail": {
						"allOf": [
							{
								"$ref": "#/components/schemas/LivenessDetail"
							}
						],
						"description": "Present only when `liveness_check` is `true` and the check ran. Omitted entirely when the check could not run — treat absence as no answer, not a negative."
					}
				}
			},
			"LivenessDetail": {
				"type": "object",
				"description": "Present only when `liveness_check` is `true` and the check ran. Omitted entirely when the check could not run — treat absence as no answer, not a negative.",
				"properties": {
					"status": {
						"type": "string",
						"nullable": true,
						"enum": [
							"accessible",
							"not_accessible",
							null
						],
						"description": "`accessible` or `not_accessible`. `null` under `liveness_policy: \"evidence\"`."
					},
					"policy": {
						"type": "string",
						"enum": [
							"lenient",
							"strict",
							"evidence"
						],
						"description": "Echo of the policy applied."
					},
					"http_status": {
						"type": "integer",
						"nullable": true,
						"description": "The status code the site returned. `null` when the check did not reach an HTTP response."
					},
					"last_scanned_at": {
						"type": "string",
						"nullable": true,
						"description": "When the check ran — not when this response was generated. ISO 8601, UTC, microsecond precision, no timezone suffix.",
						"example": "2026-09-18T00:22:44.435844"
					}
				}
			},
			"RiskDetail": {
				"type": "object",
				"properties": {
					"name": {
						"type": "string",
						"description": "Risk category identifier.\n\n- `is_in_wlist` — whitelist\n- `is_in_blist` — blacklist\n- `is_in_mlist` — monitoring list\n- `red_alarm` — high-severity override",
						"enum": [
							"is_in_wlist",
							"is_in_blist",
							"is_in_mlist",
							"red_alarm"
						]
					},
					"value": {
						"type": "string",
						"description": "Human-readable explanation of the indicator."
					}
				}
			},
			"AddressClassifyRequest": {
				"type": "object",
				"required": [
					"chain_id",
					"address"
				],
				"properties": {
					"chain_id": {
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						],
						"description": "The network chain ID. See [Supported Chains](/api-reference/supported-chains) for current public API network coverage.",
						"example": "56"
					},
					"address": {
						"type": "string",
						"description": "The blockchain address to classify.",
						"example": "0x01bff41798a0bcf287b996046ca68b395dbc1071"
					},
					"strict": {
						"type": "boolean",
						"default": false,
						"description": "Bounds classification to the server-side latency budget. If the budget is exceeded, the API returns `code: -4` with `status: notok` instead of a classification result."
					}
				}
			},
			"AddressClassifyResponse": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string",
						"description": "API status code. \"0\" indicates success.",
						"example": "0"
					},
					"status": {
						"type": "string",
						"description": "Request status.",
						"example": "ok"
					},
					"data": {
						"$ref": "#/components/schemas/AddressClassifyData"
					}
				},
				"required": [
					"code",
					"status"
				]
			},
			"AddressClassifyData": {
				"type": "object",
				"properties": {
					"address": {
						"type": "string",
						"description": "Fully qualified address with chain prefix.",
						"example": "bsc:0x01bff41798a0bcf287b996046ca68b395dbc1071"
					},
					"address_type": {
						"type": "string",
						"description": "Address category.",
						"enum": [
							"Contract",
							"EOA"
						]
					},
					"classification": {
						"type": "string",
						"description": "High-level contract classification.",
						"enum": [
							"ERC20",
							"Proxy",
							"EOA",
							"Verified",
							"Unverified"
						]
					},
					"classification_id": {
						"type": "number",
						"description": "Internal classification identifier."
					},
					"details": {
						"$ref": "#/components/schemas/AddressClassifyDetails"
					},
					"is_erc20": {
						"type": "string",
						"description": "Indicates whether the contract follows the ERC-20 standard (1 = yes).",
						"enum": [
							"1",
							"0"
						]
					},
					"scanned_time": {
						"type": "number",
						"description": "Unix timestamp when the address was last analyzed."
					},
					"status": {
						"type": "number",
						"description": "HTTP-style status code for the classification result."
					},
					"timestamp": {
						"type": "string",
						"description": "ISO 8601 timestamp of the last time when the result was updated.",
						"example": "2025-12-18T09:08:44.067312"
					},
					"verify_status": {
						"type": "string",
						"description": "Verification status of the contract (e.g. verified).",
						"enum": [
							"verified",
							"unverified"
						]
					}
				}
			},
			"AddressClassifyDetails": {
				"type": "object",
				"properties": {
					"is_verified": {
						"type": "boolean",
						"description": "Whether the contract source code is verified.",
						"example": true
					},
					"proxy_impl_address": {
						"type": "string",
						"description": "Implementation contract address if the contract is a proxy.",
						"example": "0xb8ce59fc3717ada4c02eadf9682a9e934f625ebb"
					},
					"proxy_impl_type": {
						"type": "string",
						"description": "Token or contract standard of the proxy implementation.",
						"example": "ERC20"
					}
				}
			},
			"AddressPoisoningResponse": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string",
						"description": "Response code. `0` indicates success.",
						"example": "0"
					},
					"status": {
						"type": "string",
						"description": "Response status. `ok` indicates successful operation.",
						"example": "ok"
					},
					"data": {
						"oneOf": [
							{
								"$ref": "#/components/schemas/AddressPoisoningSingleData"
							},
							{
								"$ref": "#/components/schemas/AddressPoisoningBatchData"
							}
						]
					}
				},
				"required": [
					"code",
					"status",
					"data"
				]
			},
			"AddressPoisoningSingleResponse": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string",
						"description": "Response code. `0` indicates success.",
						"example": "0"
					},
					"status": {
						"type": "string",
						"description": "Response status. `ok` indicates successful operation.",
						"example": "ok"
					},
					"data": {
						"$ref": "#/components/schemas/AddressPoisoningSingleData"
					}
				},
				"required": [
					"code",
					"status",
					"data"
				]
			},
			"AddressSecurityV2Request": {
				"type": "object",
				"required": [
					"chain_id",
					"address"
				],
				"properties": {
					"chain_id": {
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						],
						"description": "Network identifier. Use a numeric ID for EVM networks, `tron` / `728126428` for TRON, or `sol` / `solana` for Solana. See [Supported Chains](/api-reference/supported-chains).",
						"example": "56"
					},
					"address": {
						"type": "string",
						"description": "The blockchain address to analyze.",
						"example": "0x73feaa1ee314f8c655e354234017be2193c9e24e"
					},
					"sync": {
						"type": "boolean",
						"default": false,
						"description": "When `true`, wait for the analysis instead of returning `in progress`. Increases latency; may still time out and return `in progress`."
					}
				}
			},
			"AddressSecurityV2Response": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string",
						"description": "API status code. \"0\" indicates success.",
						"example": "0"
					},
					"status": {
						"type": "string",
						"description": "Request status.",
						"example": "ok"
					},
					"data": {
						"$ref": "#/components/schemas/AddressSecurityV2Data"
					}
				},
				"required": [
					"code",
					"status",
					"data"
				]
			},
			"AddressSecurityV2Data": {
				"type": "object",
				"description": "Stable decision fields returned by completed address analysis. The service may include additional chain-specific analysis objects; clients should treat those as optional context.",
				"properties": {
					"status": {
						"type": "integer",
						"description": "Analysis status. 200 indicates that a result was produced successfully.",
						"example": 200
					},
					"address": {
						"type": "string",
						"description": "Fully qualified address with chain prefix.",
						"example": "bsc:0x73feaa1ee314f8c655e354234017be2193c9e24e"
					},
					"address_type": {
						"type": "string",
						"description": "Detected contract type.",
						"example": "MasterChef"
					},
					"overall_risk_level": {
						"type": "string",
						"description": "Human-readable risk summary.",
						"enum": [
							"No Obvious Risk",
							"Low Risk",
							"Medium Risk",
							"High Risk",
							"Significant Risk"
						]
					},
					"overall_score": {
						"type": "string",
						"description": "Overall security score encoded as a string from 0 to 100. Lower values indicate higher risk.",
						"pattern": "^(100|[1-9]?[0-9])$"
					},
					"scanned_time": {
						"type": "integer",
						"description": "Unix timestamp of the latest scan.",
						"example": 1764270688
					},
					"result_stage": {
						"type": "string",
						"description": "How the result was produced.",
						"enum": [
							"complete",
							"fallback",
							"degraded"
						]
					}
				},
				"required": [
					"status",
					"address",
					"address_type",
					"overall_score",
					"overall_risk_level",
					"scanned_time",
					"result_stage"
				]
			},
			"MarketIndicators": {
				"type": "object",
				"properties": {
					"days_deployed": {
						"type": "string",
						"description": "Number of days since deployment."
					},
					"low_activity": {
						"type": "string",
						"description": "Indicates whether the address shows low on-chain activity.",
						"enum": [
							"0",
							"1"
						]
					},
					"newly_deployed": {
						"type": "string",
						"description": "Indicates whether the contract was recently deployed.",
						"enum": [
							"0",
							"1"
						]
					}
				}
			},
			"PrivilegeAnalysis": {
				"type": "object",
				"properties": {
					"has_hidden_owner": {
						"type": "string",
						"description": "Whether ownership is obscured.",
						"enum": [
							"0",
							"1"
						]
					},
					"has_trade_limitation": {
						"type": "string",
						"description": "Indicates trade restrictions.",
						"enum": [
							"0",
							"1"
						]
					},
					"overpowered_function": {
						"type": "string",
						"description": "Presence of privileged or dangerous functions.",
						"enum": [
							"0",
							"1"
						]
					},
					"owner_type": {
						"type": "string",
						"description": "Owner type.",
						"enum": [
							"contract",
							"EOA"
						]
					}
				}
			},
			"RugPullIndicators": {
				"type": "object",
				"properties": {
					"code_obfuscation": {
						"type": "string",
						"description": "Whether contract code is obfuscated.",
						"enum": [
							"0",
							"1"
						]
					},
					"has_backdoor": {
						"type": "string",
						"description": "Indicates hidden backdoor logic.",
						"enum": [
							"0",
							"1"
						]
					},
					"has_migrator": {
						"type": "string",
						"description": "Presence of migrator functionality.",
						"enum": [
							"0",
							"1"
						]
					},
					"is_honeypot": {
						"type": "string",
						"description": "Whether the contract behaves as a honeypot.",
						"enum": [
							"0",
							"1",
							""
						]
					},
					"is_known_rugpull": {
						"type": "string",
						"description": "Known rug pull classification.",
						"enum": [
							"0",
							"1",
							""
						]
					},
					"is_metamorphic": {
						"type": "string",
						"description": "Indicates metamorphic contract behavior.",
						"enum": [
							"0",
							"1"
						]
					},
					"is_ponzi": {
						"type": "string",
						"description": "Ponzi scheme indicators.",
						"enum": [
							"0",
							"1"
						]
					}
				}
			},
			"SecurityAnalysis": {
				"type": "object",
				"properties": {
					"has_external_calls": {
						"type": "string",
						"description": "Contract performs external calls.",
						"enum": [
							"0",
							"1"
						]
					},
					"has_insecure_code_practice": {
						"type": "string",
						"description": "Indicates insecure coding patterns.",
						"enum": [
							"0",
							"1"
						]
					},
					"has_known_vulnerability": {
						"type": "string",
						"description": "Known vulnerabilities detected.",
						"enum": [
							"0",
							"1"
						]
					},
					"malicious_activity": {
						"type": "string",
						"description": "Evidence of malicious behavior.",
						"enum": [
							"0",
							"1"
						]
					},
					"risky_external_calls": {
						"type": "string",
						"description": "Risky external call patterns detected.",
						"enum": [
							"0",
							"1"
						]
					}
				}
			},
			"ThreatIntelligence": {
				"type": "object",
				"properties": {
					"risk_level": {
						"type": "string",
						"description": "Threat intelligence risk score. 3 is the highest risk level.",
						"enum": [
							"0",
							"1",
							"2",
							"3"
						]
					},
					"trust_level": {
						"type": "string",
						"description": "Trust confidence level. 3 is the highest trust level.",
						"enum": [
							"0",
							"1",
							"2",
							"3"
						]
					}
				}
			},
			"Transparency": {
				"type": "object",
				"properties": {
					"can_self_destruct": {
						"type": "string",
						"description": "Contract can self-destruct.",
						"enum": [
							"0",
							"1"
						]
					},
					"dependency_unverified": {
						"type": "string",
						"description": "Dependencies are not verified.",
						"enum": [
							"0",
							"1"
						]
					},
					"is_proxy": {
						"type": "string",
						"description": "Indicates proxy usage.",
						"enum": [
							"0",
							"1"
						]
					},
					"proxy_implementation_verified": {
						"type": "string",
						"description": "Proxy implementation verification status.",
						"enum": [
							"0",
							"1",
							""
						]
					},
					"verified": {
						"type": "string",
						"description": "Contract verification status.",
						"enum": [
							"0",
							"1"
						]
					}
				}
			},
			"EmulateRequest": {
				"type": "object",
				"required": [
					"evm_transactions",
					"requested_items"
				],
				"properties": {
					"evm_transactions": {
						"type": "array",
						"minItems": 1,
						"description": "Transactions to simulate, executed in order. Minimum 1. Alias `transactions` also accepted.",
						"items": {
							"$ref": "#/components/schemas/EmulateEvmTransaction"
						}
					},
					"requested_items": {
						"allOf": [
							{
								"$ref": "#/components/schemas/EmulateRequestedItems"
							}
						],
						"description": "Selects which sections appear in each result. Effectively required: omitting the key is rejected with `400 invalid request`. Any object is accepted, including `{}`. `{\"balance_changes\": true}` is the normal minimum. Unset flags are off."
					}
				}
			},
			"EmulateEvmTransaction": {
				"type": "object",
				"required": [
					"chain_id",
					"from",
					"to"
				],
				"properties": {
					"chain_id": {
						"type": "string",
						"description": "`int` or `string`: `56`, `\"56\"`, `\"0x38\"`, or `\"tron\"`. Per transaction, not a top-level field.",
						"example": "56"
					},
					"from": {
						"type": "string",
						"description": "Sender address. `0x` hex on EVM; base58 (`T…`) on TRON.",
						"example": "0x18e226459CCf0Eec276514a4fd3b226D8961e4d1"
					},
					"to": {
						"type": "string",
						"description": "Target contract or recipient. `0x` hex on EVM; base58 (`T…`) on TRON.",
						"example": "0x55d398326f99059fF775485246999027B3197955"
					},
					"data": {
						"type": "string",
						"description": "Calldata (hex). Alias `input` — send one, not both. Defaults to `\"0x\"` — a plain transfer of `value` with no contract call.",
						"example": "0xa9059cbb000000000000000000000000cde5d48fca07f9c52300d2e65632dd71ed169b9000000000000000000000000000000000000000000003d4ff765e3ef19e953000"
					},
					"value": {
						"type": "string",
						"description": "`int`, decimal string, or `0x` hex. Native value in wei. Defaults to `0`.",
						"example": "0x0"
					},
					"gas": {
						"type": "string",
						"description": "`int`, decimal string, or `0x` hex. Gas limit. Alias `gasLimit`.",
						"example": "83000"
					},
					"gas_price": {
						"type": "string",
						"description": "`int`, decimal string, or `0x` hex. Gas price. Alias `gasPrice`.",
						"example": "70000"
					},
					"block_height": {
						"type": "string",
						"description": "`\"latest\"` (default), `int`, decimal string, or `0x`. Block to simulate against. Has no effect on TRON because TRON only supports simulating on the latest block.",
						"example": "latest"
					},
					"force": {
						"type": "boolean",
						"default": false,
						"description": "Optional per-transaction flag. Defaults to `false`. Strict boolean — `\"true\"` and `1` are rejected.\n\nWhen `true`, `from` is funded in the simulated state with enough native token to cover `value` plus gas, plus a 100-token buffer: `max(100e18, value + gas * gasPrice + 100e18)`. Use this when you care about contract logic — calls, approvals, token moves — and do not want the run to fail because `from` is empty on the forked chain. `false` is the realistic “would this send from this wallet right now?” check, including gas.\n\n`force` only tops up native balance. It does not mint ERC-20/TRC-20 tokens or change storage. Funding uses `from`, `value`, `gas`/`gasLimit`, and `gasPrice`/`gas_price` on the same transaction."
					},
					"name": {
						"type": "string",
						"description": "Your own label, echoed back in the result."
					},
					"token_id": {
						"type": "string",
						"x-mint": {
							"post": [
								"Tron only"
							]
						},
						"description": "**Tron only.** TRC-10 asset id. `int` or `string`. Must be > 1,000,000 and sent together with `token_value`."
					},
					"token_value": {
						"type": "string",
						"x-mint": {
							"post": [
								"Tron only"
							]
						},
						"description": "**Tron only.** TRC-10 amount. `int` or `string`. Alias `call_token_value`."
					},
					"freeze_balance": {
						"allOf": [
							{
								"$ref": "#/components/schemas/EmulateTronFreezeBalance"
							}
						],
						"x-mint": {
							"post": [
								"Tron only"
							]
						},
						"description": "**Tron only.** Stake 2.0 freeze / unfreeze. Owner is `from`. At most one stake input per transaction, and every stake input requires empty calldata (`\"0x\"` or omitted)."
					},
					"delegate_resource": {
						"allOf": [
							{
								"$ref": "#/components/schemas/EmulateTronDelegateResource"
							}
						],
						"x-mint": {
							"post": [
								"Tron only"
							]
						},
						"description": "**Tron only.** Stake 2.0 delegate / undelegate. Owner is `from`, receiver is `to`; the two must differ. At most one stake input per transaction; requires empty calldata (`\"0x\"` or omitted)."
					},
					"withdraw_expire_unfreeze": {
						"type": "boolean",
						"x-mint": {
							"post": [
								"Tron only"
							]
						},
						"description": "**Tron only.** `true` claims every matured unfreeze-queue entry for `from`. Strict boolean — `\"true\"` and `1` are rejected."
					}
				}
			},
			"EmulateTronFreezeBalance": {
				"type": "object",
				"x-mint": {
					"post": [
						"Tron only"
					]
				},
				"description": "**Tron only.** Stake 2.0 freeze / unfreeze. Owner is `from`.",
				"properties": {
					"action": {
						"type": "string",
						"enum": [
							"freeze",
							"unfreeze"
						]
					},
					"resource": {
						"type": "string",
						"enum": [
							"BANDWIDTH",
							"ENERGY",
							"TRON_POWER"
						]
					},
					"amount": {
						"type": "string",
						"description": "Amount in sun. `int` or `string`."
					}
				}
			},
			"EmulateTronDelegateResource": {
				"type": "object",
				"x-mint": {
					"post": [
						"Tron only"
					]
				},
				"description": "**Tron only.** Stake 2.0 delegate / undelegate. Owner is `from`, receiver is `to`; the two must differ.",
				"properties": {
					"action": {
						"type": "string",
						"enum": [
							"delegate",
							"undelegate"
						]
					},
					"resource": {
						"type": "string",
						"enum": [
							"BANDWIDTH",
							"ENERGY"
						]
					},
					"amount": {
						"type": "string",
						"description": "Amount in sun. `int` or `string`."
					}
				}
			},
			"EmulateRequestedItems": {
				"type": "object",
				"description": "Each flag turns on one section of the per-transaction output. Unset flags are off.",
				"properties": {
					"balance_changes": {
						"type": "boolean",
						"description": "Net token balance change per holder. The most commonly used section."
					},
					"approve_changes": {
						"type": "boolean",
						"description": "ERC-20/721/1155 approvals granted during execution."
					},
					"ownership_changes": {
						"type": "boolean",
						"description": "Ownership / role transitions."
					},
					"involved_address_risks": {
						"type": "boolean",
						"description": "HashDit risk level for every address in the trace."
					},
					"call_graph": {
						"type": "boolean",
						"description": "Tree of internal calls with selectors, arguments and return values."
					},
					"logs": {
						"type": "boolean",
						"description": "Emitted EVM events."
					},
					"balance_table": {
						"type": "boolean",
						"description": "Raw storage-slot balances — lower level than `balance_changes`."
					},
					"execution_trace": {
						"type": "boolean",
						"description": "Opcode-level trace. Expensive."
					}
				}
			},
			"EmulateResponse": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string",
						"description": "API status code. `\"0\"` indicates the API call succeeded, including when a transaction reverted.",
						"example": "0"
					},
					"status": {
						"type": "string",
						"description": "Request status.",
						"example": "ok"
					},
					"data": {
						"$ref": "#/components/schemas/EmulateData"
					}
				},
				"required": [
					"code",
					"status"
				]
			},
			"EmulateData": {
				"type": "object",
				"properties": {
					"exec_summary": {
						"$ref": "#/components/schemas/EmulateExecSummary"
					},
					"results": {
						"type": "array",
						"description": "One entry per input transaction, in submission order.",
						"items": {
							"$ref": "#/components/schemas/EmulateResult"
						}
					}
				}
			},
			"EmulateExecSummary": {
				"type": "object",
				"properties": {
					"result_code": {
						"type": "string",
						"description": "`\"000000000\"` when every transaction simulated normally. Any other value means the simulation did not complete normally — read `result_description` and `error_data`.",
						"example": "000000000"
					},
					"result_description": {
						"type": "string",
						"description": "Human-readable explanation of `result_code`.",
						"example": "Successful simulation."
					},
					"error_data": {
						"type": "string",
						"nullable": true,
						"description": "`null` on success. On a revert, the decoded revert reason.",
						"example": null
					},
					"emulator_type": {
						"type": "string",
						"description": "Which simulator produced the result, e.g. `node_trace_js`.",
						"example": "node_trace_js"
					}
				}
			},
			"EmulateResult": {
				"type": "object",
				"properties": {
					"revert": {
						"type": "boolean",
						"description": "Whether this transaction reverted."
					},
					"revert_reason": {
						"type": "string",
						"description": "Decoded reason. Present only when `revert` is `true`."
					},
					"platform": {
						"type": "string",
						"description": "Chain key — `\"bsc\"`, `\"eth\"`, `\"tron\"`, …",
						"example": "bsc"
					},
					"tx_gas_used": {
						"type": "integer",
						"description": "Gas consumed."
					},
					"tx_gas_price": {
						"type": "integer",
						"description": "Gas price used."
					},
					"sender_on_chain_balance": {
						"type": "string",
						"description": "Sender's native balance in wei at the simulated block."
					},
					"balance_changes": {
						"type": "array",
						"description": "Each `balance_changes[]` item identifies an asset with `token_address`, `tokenName`, `symbol`, and `divisor`, plus `tokenPriceUSD` when pricing is available.",
						"items": {
							"$ref": "#/components/schemas/EmulateBalanceChange"
						}
					},
					"approve_changes": {
						"type": "array",
						"description": "Each `approve_changes[]` item identifies a token and contains an `approve_list`. Read `approver_address`, `spender_address`, and `end_value` to answer the most important question: who can spend the asset, and how much can they spend after this transaction?",
						"items": {
							"$ref": "#/components/schemas/EmulateApproveChange"
						}
					},
					"ownership_changes": {
						"type": "array",
						"description": "Owner / role transitions.",
						"items": {
							"type": "object"
						}
					},
					"call_graph": {
						"$ref": "#/components/schemas/EmulateCallGraph"
					},
					"logs": {
						"type": "array",
						"description": "Emitted events.",
						"items": {
							"type": "object"
						}
					},
					"balance_table": {
						"type": "array",
						"description": "Raw storage-slot balances.",
						"items": {
							"type": "object"
						}
					},
					"called_addresses": {
						"type": "array",
						"description": "Contracts whose code executed.",
						"items": {
							"type": "string"
						}
					},
					"involved_addresses": {
						"type": "array",
						"description": "Every address in the trace, including EOAs.",
						"items": {
							"type": "string"
						}
					},
					"involved_addresses_risks": {
						"type": "array",
						"description": "`{address, risk_level}` per address. Only when `involved_address_risks` was requested.",
						"items": {
							"$ref": "#/components/schemas/EmulateAddressRisk"
						}
					},
					"block_height": {
						"type": "integer",
						"description": "Block actually simulated against."
					},
					"name": {
						"type": "string",
						"description": "Echoed from the input, if supplied."
					},
					"request_id": {
						"type": "string",
						"description": "Per-request UUID — quote this in support requests."
					},
					"execution_trace": {
						"description": "Opcode-level trace. Present when `execution_trace` was requested."
					},
					"tron_fee": {
						"allOf": [
							{
								"$ref": "#/components/schemas/EmulateTronFee"
							}
						],
						"x-mint": {
							"post": [
								"Tron only"
							]
						},
						"description": "**Tron only.** Estimated TRX burned, split across bandwidth and energy meters. Reporting only — never reflected in `balance_changes`. No `requested_items` flag needed. When the fee meters cannot be read, this object is omitted. Absence means the fee is unknown, not 0 — do not default a missing `tron_fee` to a zero fee."
					},
					"stake_ledger_changes": {
						"type": "array",
						"x-mint": {
							"post": [
								"Tron only"
							]
						},
						"description": "**Tron only.** Before/after diffs of Stake 2.0 scalar fields, in sun. No `requested_items` flag needed. Empty collections are omitted rather than returned as `[]`.",
						"items": {
							"$ref": "#/components/schemas/EmulateTronStakeLedgerChange"
						},
						"example": [
							{
								"address": "TUAEpR16Th4pLbjECPVYTgvPyStNKyB54h",
								"begin_value": "784127000000",
								"delta_value": "1",
								"end_value": "784127000001",
								"field": "delegated_energy"
							},
							{
								"address": "TUAEpR16Th4pLbjECPVYTgvPyStNKyB54h",
								"begin_value": "136046278017815",
								"delta_value": "-1",
								"end_value": "136046278017814",
								"field": "frozen_v2_energy"
							},
							{
								"address": "THSt2MxFt7hs68dbxiffcAiySjHbW8Hnqx",
								"begin_value": "13713000000",
								"delta_value": "1",
								"end_value": "13713000001",
								"field": "acquired_energy"
							}
						]
					},
					"resource_capacity_changes": {
						"type": "array",
						"x-mint": {
							"post": [
								"Tron only"
							]
						},
						"description": "**Tron only.** How each address's usable ENERGY / BANDWIDTH limit moved. No `requested_items` flag needed. Empty collections are omitted rather than returned as `[]`.",
						"items": {
							"$ref": "#/components/schemas/EmulateTronResourceCapacityChange"
						},
						"example": [
							{
								"address": "THSt2MxFt7hs68dbxiffcAiySjHbW8Hnqx",
								"begin_capacity": "131016",
								"begin_staked_sun": "13713000000",
								"delta_capacity": "0",
								"delta_staked_sun": "1",
								"end_capacity": "131016",
								"end_staked_sun": "13713000001",
								"resource": "ENERGY"
							},
							{
								"address": "TUAEpR16Th4pLbjECPVYTgvPyStNKyB54h",
								"begin_capacity": "1299812911",
								"begin_staked_sun": "136046278017815",
								"delta_capacity": "0",
								"delta_staked_sun": "-1",
								"end_capacity": "1299812911",
								"end_staked_sun": "136046278017814",
								"resource": "ENERGY"
							}
						]
					},
					"resource_capacity_conversion": {
						"allOf": [
							{
								"$ref": "#/components/schemas/EmulateTronResourceCapacityConversion"
							}
						],
						"x-mint": {
							"post": [
								"Tron only"
							]
						},
						"description": "**Tron only.** Network totals used for the sun → capacity conversion. No `requested_items` flag needed. Omitted when empty."
					}
				}
			},
			"EmulateTronFee": {
				"type": "object",
				"x-mint": {
					"post": [
						"Tron only"
					]
				},
				"description": "**Tron only.** Estimated TRX burned, split across bandwidth and energy meters. Reporting only — never reflected in `balance_changes`. Amounts are in sun unless noted. When the fee meters cannot be read, this object is omitted. Absence means the fee is unknown, not 0 — do not default a missing `tron_fee` to a zero fee.",
				"example": {
					"bandwidth_consumed": 345,
					"bandwidth_covered_by": "burn",
					"bandwidth_fee_sun": 345000,
					"bandwidth_price_sun": 1000,
					"energy_burned": 64285,
					"energy_consumed": 64285,
					"energy_fee_sun": 6428500,
					"total_fee_sun": 6773500
				},
				"properties": {
					"bandwidth_consumed": {
						"type": "integer",
						"description": "Bandwidth consumed, in bytes.",
						"example": 345
					},
					"bandwidth_price_sun": {
						"type": "integer",
						"description": "Sun per byte of bandwidth.",
						"example": 1000
					},
					"bandwidth_covered_by": {
						"type": "string",
						"description": "How bandwidth was paid.",
						"enum": [
							"stake",
							"free",
							"burn"
						],
						"example": "burn"
					},
					"bandwidth_fee_sun": {
						"type": "integer",
						"description": "TRX burned for bandwidth, in sun. `0` when stake or free quota covers it.",
						"example": 345000
					},
					"energy_consumed": {
						"type": "integer",
						"description": "Energy consumed.",
						"example": 64285
					},
					"energy_burned": {
						"type": "integer",
						"description": "Energy paid by burning TRX.",
						"example": 64285
					},
					"energy_fee_sun": {
						"type": "integer",
						"description": "Energy fee, in sun.",
						"example": 6428500
					},
					"total_fee_sun": {
						"type": "integer",
						"description": "Total estimated TRX burned, in sun.",
						"example": 6773500
					}
				}
			},
			"EmulateTronStakeLedgerChange": {
				"type": "object",
				"description": "Before/after diff of one Stake 2.0 scalar field, in sun.",
				"properties": {
					"address": {
						"type": "string",
						"description": "TRON base58 address.",
						"example": "TUAEpR16Th4pLbjECPVYTgvPyStNKyB54h"
					},
					"field": {
						"type": "string",
						"description": "Stake 2.0 scalar that changed. Examples: `\"delegated_energy\"`, `\"frozen_v2_energy\"`, `\"acquired_energy\"`.",
						"example": "delegated_energy"
					},
					"begin_value": {
						"type": "string",
						"description": "Value before, in sun.",
						"example": "784127000000"
					},
					"delta_value": {
						"type": "string",
						"description": "Change, in sun.",
						"example": "1"
					},
					"end_value": {
						"type": "string",
						"description": "Value after, in sun.",
						"example": "784127000001"
					}
				}
			},
			"EmulateTronResourceCapacityChange": {
				"type": "object",
				"description": "How one address's usable ENERGY or BANDWIDTH limit moved.",
				"properties": {
					"address": {
						"type": "string",
						"description": "TRON base58 address.",
						"example": "THSt2MxFt7hs68dbxiffcAiySjHbW8Hnqx"
					},
					"resource": {
						"type": "string",
						"description": "`\"ENERGY\"` or `\"BANDWIDTH\"`.",
						"enum": [
							"ENERGY",
							"BANDWIDTH"
						],
						"example": "ENERGY"
					},
					"begin_capacity": {
						"type": "string",
						"description": "Usable resource limit before.",
						"example": "131016"
					},
					"end_capacity": {
						"type": "string",
						"description": "Usable resource limit after.",
						"example": "131016"
					},
					"delta_capacity": {
						"type": "string",
						"description": "Change in usable resource limit.",
						"example": "0"
					},
					"begin_staked_sun": {
						"type": "string",
						"description": "Sun staked for this resource before.",
						"example": "13713000000"
					},
					"end_staked_sun": {
						"type": "string",
						"description": "Sun staked for this resource after.",
						"example": "13713000001"
					},
					"delta_staked_sun": {
						"type": "string",
						"description": "Change in sun staked for this resource.",
						"example": "1"
					}
				}
			},
			"EmulateTronResourceCapacityConversion": {
				"type": "object",
				"description": "Network totals used to convert staked sun into ENERGY / BANDWIDTH capacity.",
				"example": {
					"total_energy_limit": "180000000000",
					"total_energy_weight": "18839888284",
					"total_net_limit": "43200000000",
					"total_net_weight": "26895688125"
				},
				"properties": {
					"total_energy_limit": {
						"type": "string",
						"description": "Network ENERGY capacity pool.",
						"example": "180000000000"
					},
					"total_energy_weight": {
						"type": "string",
						"description": "Network ENERGY stake weight, in sun.",
						"example": "18839888284"
					},
					"total_net_limit": {
						"type": "string",
						"description": "Network BANDWIDTH (net) capacity pool.",
						"example": "43200000000"
					},
					"total_net_weight": {
						"type": "string",
						"description": "Network BANDWIDTH stake weight, in sun.",
						"example": "26895688125"
					}
				}
			},
			"EmulateBalanceChange": {
				"type": "object",
				"properties": {
					"token_address": {
						"type": "string",
						"description": "Token contract. Native SOL uses `\"native\"`. TRC-10 transfers use `\"trc10:<id>\"`.",
						"example": "0x55d398326f99059ff775485246999027b3197955"
					},
					"tokenName": {
						"type": "string",
						"example": "Binance-Peg BSC-USD"
					},
					"symbol": {
						"type": "string",
						"example": "BSC-USD"
					},
					"divisor": {
						"type": "string",
						"description": "Token decimals, as a decimal string.",
						"example": "18"
					},
					"tokenPriceUSD": {
						"type": "string",
						"description": "USD unit price used for `value_usd`."
					},
					"change_list": {
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/EmulateBalanceChangeItem"
						}
					}
				}
			},
			"EmulateBalanceChangeItem": {
				"type": "object",
				"properties": {
					"address": {
						"type": "string"
					},
					"amount_change": {
						"type": "string",
						"description": "Balance change in token units, normalized by the token's decimals (`divisor`). For an 18-decimal token, `delta_value` `\"1000000000000000000\"` is the equivalent of `amount_change` `\"1\"`. Negative means the address sent tokens. Use this for display; `delta_value` is the same change in raw smallest units."
					},
					"begin_value": {
						"type": "string",
						"description": "Balance before, raw smallest-unit decimal string."
					},
					"delta_value": {
						"type": "string",
						"description": "Change, raw smallest-unit decimal string."
					},
					"end_value": {
						"type": "string",
						"description": "Balance after, raw smallest-unit decimal string."
					},
					"value_usd": {
						"type": "string",
						"description": "The dollar amount changed, calculated as `amount_change × tokenPriceUSD`."
					}
				}
			},
			"EmulateApproveChange": {
				"type": "object",
				"description": "Per-token approval bucket. Same metadata as `balance_changes`; the row list is `approve_list`.",
				"properties": {
					"token_address": {
						"type": "string",
						"description": "Token contract. TRC-10 transfers use `\"trc10:<id>\"`.",
						"example": "0x55d398326f99059ff775485246999027b3197955"
					},
					"tokenName": {
						"type": "string",
						"example": "Binance-Peg BSC-USD"
					},
					"symbol": {
						"type": "string",
						"example": "BSC-USD"
					},
					"divisor": {
						"type": "string",
						"description": "Token decimals, as a decimal string. Used to compute `value_usd`; list amounts themselves are not divided by this.",
						"example": "18"
					},
					"tokenPriceUSD": {
						"type": "string",
						"description": "USD unit price used for `value_usd`."
					},
					"approve_list": {
						"type": "array",
						"description": "One row per approver/spender pair for this token. Not named `change_list`.",
						"items": {
							"$ref": "#/components/schemas/EmulateApproveChangeItem"
						}
					}
				}
			},
			"EmulateApproveChangeItem": {
				"type": "object",
				"properties": {
					"approver_address": {
						"type": "string",
						"description": "Token owner who granted the allowance.",
						"example": "0xd920d10d29ea69f91859af3c495f25f7e7acd953"
					},
					"spender_address": {
						"type": "string",
						"description": "Address allowed to spend.",
						"example": "0x25838042b96ab88ef3f6d9d6431a268550d5c78f"
					},
					"approve_amount": {
						"type": "string",
						"description": "Amount in the `approve()` calldata, raw smallest units. Not divided by decimals. May differ from `end_value` (the on-chain allowance after the tx).",
						"example": "1157920892373161954235709850000000000000000000000000000000000000000000"
					},
					"begin_value": {
						"type": "string",
						"description": "Allowance before the transaction, raw smallest units.",
						"example": "0"
					},
					"end_value": {
						"type": "string",
						"description": "Allowance after the transaction, raw smallest units.",
						"example": "115792089237316195423570985008687907853269984665640564039457584007913129639935"
					},
					"delta_value": {
						"type": "string",
						"description": "`end_value − begin_value`, raw smallest units.",
						"example": "115792089237316195423570985008687907853269984665640564039457584007913129639935"
					},
					"value_usd": {
						"type": "string",
						"description": "USD value of the post-approval allowance: `(end_value / 10^divisor × tokenPriceUSD)`. `\"0\"` when no price is available. Not the USD value of `delta_value`.",
						"example": "0"
					}
				}
			},
			"EmulateAddressRisk": {
				"type": "object",
				"properties": {
					"address": {
						"type": "string"
					},
					"risk_level": {
						"type": "integer",
						"description": "`0` no known risk; `1` low risk; `2`–`5` increasing risk; `-1` not in HashDit's database — unknown, not safe."
					}
				}
			},
			"EmulateCallGraph": {
				"type": "object",
				"description": "Nested call tree.",
				"properties": {
					"opcode": {
						"type": "string"
					},
					"msg_sender": {
						"type": "string"
					},
					"input_info": {
						"type": "object"
					},
					"output_info": {
						"type": "object"
					},
					"calls": {
						"type": "array",
						"description": "Nested child calls. Each item follows the same call-node shape; treated as an open object to keep the documentation schema non-recursive.",
						"items": {
							"type": "object",
							"additionalProperties": true
						}
					}
				}
			},
			"SolanaEmulateRequest": {
				"type": "object",
				"required": [
					"sol_transactions"
				],
				"properties": {
					"sol_transactions": {
						"type": "array",
						"minItems": 1,
						"description": "Transactions to simulate. Minimum 1. Alias `transactions` also accepted. Each item is either a serialized transaction or a structured transaction.",
						"items": {
							"$ref": "#/components/schemas/SolanaTransaction"
						}
					},
					"requested_items": {
						"$ref": "#/components/schemas/SolanaEmulateRequestedItems"
					}
				}
			},
			"SolanaTransaction": {
				"oneOf": [
					{
						"$ref": "#/components/schemas/SolanaSerializedTransaction"
					},
					{
						"$ref": "#/components/schemas/SolanaStructuredTransaction"
					}
				],
				"description": "Serialized (`transaction`) or structured (`feePayer` + `instructions`)."
			},
			"SolanaSerializedTransaction": {
				"title": "Serialized transaction",
				"type": "object",
				"required": [
					"transaction"
				],
				"properties": {
					"transaction": {
						"type": "string",
						"description": "Serialized transaction. Versioned (V0) and legacy both work.",
						"example": "AfgyfPp6V8GhP...base64...=="
					},
					"encoding": {
						"type": "string",
						"enum": [
							"base64",
							"base58"
						],
						"default": "base64",
						"description": "`\"base64\"` (default) or `\"base58\"`."
					},
					"name": {
						"type": "string",
						"description": "Label echoed back in the matching result."
					}
				}
			},
			"SolanaStructuredTransaction": {
				"title": "Structured transaction",
				"type": "object",
				"required": [
					"feePayer",
					"instructions"
				],
				"properties": {
					"feePayer": {
						"type": "string",
						"description": "Base58 public key paying fees.",
						"example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
					},
					"instructions": {
						"type": "array",
						"description": "Ordered instructions. Key order matters.",
						"items": {
							"$ref": "#/components/schemas/SolanaInstruction"
						}
					},
					"name": {
						"type": "string",
						"description": "Label echoed back in the matching result."
					}
				}
			},
			"SolanaInstruction": {
				"type": "object",
				"required": [
					"programId",
					"keys"
				],
				"properties": {
					"programId": {
						"type": "string",
						"description": "Program ID (base58)."
					},
					"keys": {
						"type": "array",
						"description": "Account keys. Order matters.",
						"items": {
							"$ref": "#/components/schemas/SolanaInstructionKey"
						}
					},
					"data": {
						"type": "string",
						"description": "Instruction data, base64."
					}
				}
			},
			"SolanaInstructionKey": {
				"type": "object",
				"required": [
					"pubkey"
				],
				"properties": {
					"pubkey": {
						"type": "string",
						"description": "Account public key (base58)."
					},
					"isSigner": {
						"type": "boolean",
						"default": false
					},
					"isWritable": {
						"type": "boolean",
						"default": false
					}
				}
			},
			"SolanaEmulateRequestedItems": {
				"type": "object",
				"properties": {
					"balance_changes": {
						"type": "boolean",
						"default": true,
						"description": "Net token balance change per holder."
					},
					"involved_address_risks": {
						"type": "boolean",
						"default": false,
						"description": "HashDit risk level for involved addresses."
					}
				}
			},
			"SolanaEmulateResponse": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string",
						"description": "API status code. `\"0\"` indicates the API call succeeded, including when a simulation reports `error`.",
						"example": "0"
					},
					"status": {
						"type": "string",
						"example": "ok"
					},
					"data": {
						"$ref": "#/components/schemas/SolanaEmulateData"
					}
				},
				"required": [
					"code",
					"status"
				]
			},
			"SolanaEmulateData": {
				"type": "object",
				"properties": {
					"exec_summary": {
						"$ref": "#/components/schemas/EmulateExecSummary"
					},
					"results": {
						"type": "array",
						"description": "One entry per input transaction, in submission order.",
						"items": {
							"$ref": "#/components/schemas/SolanaEmulateResult"
						}
					}
				}
			},
			"SolanaEmulateResult": {
				"type": "object",
				"properties": {
					"from": {
						"type": "string",
						"nullable": true,
						"description": "Fee payer (base58)."
					},
					"to": {
						"type": "string",
						"nullable": true,
						"description": "First program ID invoked. `null` when the transaction has no instructions."
					},
					"compute_units_consumed": {
						"type": "integer",
						"description": "Solana's analogue to gas. `0` on simulator failure."
					},
					"called_addresses": {
						"type": "array",
						"description": "Program IDs touched, in execution order.",
						"items": {
							"type": "string"
						}
					},
					"involved_addresses": {
						"type": "array",
						"description": "Fee payer + program IDs + accounts appearing in balance changes.",
						"items": {
							"type": "string"
						}
					},
					"involved_addresses_risks": {
						"type": "array",
						"description": "`{address, risk_level}`. Only when `involved_address_risks` was requested.",
						"items": {
							"$ref": "#/components/schemas/EmulateAddressRisk"
						}
					},
					"balance_changes": {
						"type": "array",
						"description": "Same shape as EVM. Native SOL uses `token_address: \"native\"`.",
						"items": {
							"$ref": "#/components/schemas/EmulateBalanceChange"
						}
					},
					"error": {
						"type": "string",
						"nullable": true,
						"description": "`null` on success; otherwise the Solana error, e.g. `\"BlockhashNotFound\"`."
					},
					"name": {
						"type": "string",
						"description": "Echoed from the input."
					},
					"block_height": {
						"type": "integer",
						"description": "Slot simulated against."
					},
					"request_id": {
						"type": "string",
						"description": "Per-request UUID — quote this in support requests."
					}
				}
			},
			"TokenApprovalSecurityRequest": {
				"type": "object",
				"required": [
					"chain_id"
				],
				"properties": {
					"chain_id": {
						"type": "string",
						"description": "`int` or `string`. Only `1` (Ethereum), `56` (BSC), or `728126428` / `\"tron\"` (TRON). Any other chain is rejected with `400`. See [Supported Chains](/api-reference/supported-chains).",
						"example": "56"
					},
					"owner": {
						"type": "string",
						"description": "Owner / approver address. At least one of `owner` or `spender` is required.",
						"example": "0x26d61f23bbc94d7b2139f9c581722bf4e8b64b87"
					},
					"spender": {
						"type": "string",
						"description": "Spender address. At least one of `owner` or `spender` is required."
					},
					"token": {
						"type": "string",
						"description": "Restrict to one token contract. Cannot be sent on its own — `token` alone returns `400`."
					},
					"page": {
						"type": "integer",
						"default": 1,
						"description": "1-based page number. Values below 1 are treated as 1."
					},
					"limit": {
						"type": "integer",
						"default": 50,
						"description": "Rows per page. Ceiling `100` — higher values are clamped, not rejected."
					},
					"filter": {
						"type": "string",
						"description": "Only `\"only-valid\"` is accepted; it drops rows whose `valid_allowance` is `0`. Any other value is a validation error."
					},
					"include_balance": {
						"type": "boolean",
						"default": false,
						"description": "Read each token's live on-chain balance for the owner."
					},
					"include_spender_risk": {
						"type": "boolean",
						"default": false,
						"description": "Add `spender_risk` to every row."
					},
					"include_token_risk": {
						"type": "boolean",
						"default": false,
						"description": "Add `token_risk` to every row."
					},
					"include_owner_risk": {
						"type": "boolean",
						"default": false,
						"description": "Add `owner_risk` to every row."
					},
					"include_address_types": {
						"type": "boolean",
						"default": false,
						"description": "Classify each spender and owner as `\"eoa\"` or `\"contract\"`."
					}
				}
			},
			"TokenApprovalSecurityResponse": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string",
						"description": "API status code. `\"0\"` indicates success.",
						"example": "0"
					},
					"status": {
						"type": "string",
						"example": "ok"
					},
					"data": {
						"$ref": "#/components/schemas/TokenApprovalSecurityData"
					}
				},
				"required": [
					"code",
					"status"
				]
			},
			"TokenApprovalSecurityData": {
				"type": "object",
				"properties": {
					"count": {
						"type": "integer",
						"description": "Rows in `approval_status`, after `filter`."
					},
					"approval_status": {
						"type": "array",
						"description": "The approval rows, most-recent on-chain activity first.",
						"items": {
							"$ref": "#/components/schemas/TokenApprovalStatusRow"
						}
					},
					"valid_approved_tokens": {
						"type": "array",
						"description": "Metadata for each unique indexed token in `approval_status`. Tokens HashDit has not indexed do not appear here, even though their approvals still appear in `approval_status`.",
						"items": {
							"$ref": "#/components/schemas/TokenApprovalValidToken"
						}
					},
					"summary": {
						"$ref": "#/components/schemas/TokenApprovalSummary"
					},
					"has_more": {
						"type": "boolean",
						"description": "`true` when this page came back full. Evaluated *before* `filter: \"only-valid\"` runs — a filtered page can have `count` well below `limit` while `has_more` is still `true`."
					}
				}
			},
			"TokenApprovalUsdAmount": {
				"oneOf": [
					{
						"type": "number"
					},
					{
						"type": "string"
					}
				],
				"description": "Never `null`. A number (including `0`), `\"Unlimited\"`, or `\"Unknown\"`. Check the type before formatting. `\"Unknown\"` is not zero — do not render it as `$0`."
			},
			"TokenApprovalRisk": {
				"type": "object",
				"properties": {
					"is_risky": {
						"type": "boolean",
						"description": "Whether this address warrants a red flag. The single boolean to branch on — do not re-derive it from `risk_level`."
					},
					"risk_level": {
						"type": "integer",
						"description": "0–5, higher is riskier. `-1` = address absent from HashDit's database."
					},
					"risk_details": {
						"type": "array",
						"description": "Opaque labels indicating what the finding was based on. Useful for support and logging; not a stable enum — do not branch on the values. Empty when `is_risky` is `false`.",
						"items": {
							"type": "string"
						}
					},
					"risk_level_display": {
						"type": "string",
						"description": "Human-readable label. Always populated."
					}
				}
			},
			"TokenApprovalStatusRow": {
				"type": "object",
				"required": [
					"token",
					"owner",
					"spender",
					"amount_raw",
					"valid_allowance",
					"token_decimal",
					"affected_usd_amount",
					"potential_affected_usd_amount",
					"token_name"
				],
				"properties": {
					"token": {
						"type": "string",
						"description": "Token contract address."
					},
					"owner": {
						"type": "string",
						"description": "Owner / approver address."
					},
					"spender": {
						"type": "string",
						"description": "The party that can move the tokens."
					},
					"amount_raw": {
						"type": "string",
						"description": "Approved allowance, raw smallest units, uint256 decimal string. Overflows `Number` — parse as big-int."
					},
					"valid_allowance": {
						"type": "string",
						"description": "Realistic exposure. `min(amount_raw, balance)` when `includeBalance` is on and the balance was readable; otherwise equals `amount_raw`."
					},
					"token_decimal": {
						"type": "integer",
						"nullable": true,
						"description": "`null` when decimals could not be resolved."
					},
					"affected_usd_amount": {
						"allOf": [
							{
								"$ref": "#/components/schemas/TokenApprovalUsdAmount"
							}
						],
						"description": "USD value of `valid_allowance` — what can be taken right now. Never `null`."
					},
					"potential_affected_usd_amount": {
						"allOf": [
							{
								"$ref": "#/components/schemas/TokenApprovalUsdAmount"
							}
						],
						"description": "USD value of `amount_raw`, never balance-capped — what could be taken if the wallet is re-funded. Never `null`."
					},
					"token_name": {
						"type": "string",
						"nullable": true,
						"description": "`null` when the token is not indexed."
					},
					"balance": {
						"type": "string",
						"nullable": true,
						"description": "Owner's current balance, raw units. Opt-in `includeBalance`: absent when the flag is `false`; present but possibly `null` when the flag is `true`."
					},
					"spender_type": {
						"type": "string",
						"nullable": true,
						"description": "`\"eoa\"` or `\"contract\"`. Opt-in `includeAddressTypes`: absent when the flag is `false`; present but possibly `null` when the flag is `true`."
					},
					"owner_type": {
						"type": "string",
						"nullable": true,
						"description": "`\"eoa\"` or `\"contract\"`. Opt-in `includeAddressTypes`: absent when the flag is `false`; present but possibly `null` when the flag is `true`."
					},
					"spender_risk": {
						"allOf": [
							{
								"$ref": "#/components/schemas/TokenApprovalRisk"
							}
						],
						"description": "Opt-in `includeSpenderRisk`: absent when the flag is `false`; present but possibly `null` when the flag is `true`."
					},
					"token_risk": {
						"allOf": [
							{
								"$ref": "#/components/schemas/TokenApprovalRisk"
							}
						],
						"description": "Opt-in `includeTokenRisk`: absent when the flag is `false`; present but possibly `null` when the flag is `true`."
					},
					"owner_risk": {
						"allOf": [
							{
								"$ref": "#/components/schemas/TokenApprovalRisk"
							}
						],
						"description": "Opt-in `includeOwnerRisk`: absent when the flag is `false`; present but possibly `null` when the flag is `true`."
					}
				}
			},
			"TokenApprovalValidToken": {
				"type": "object",
				"properties": {
					"token_name": {
						"type": "string",
						"nullable": true
					},
					"token_address": {
						"type": "string"
					},
					"token_price": {
						"type": "number",
						"nullable": true,
						"description": "USD unit price at query time."
					},
					"token_decimal": {
						"type": "integer",
						"nullable": true
					}
				}
			},
			"TokenApprovalSummary": {
				"type": "object",
				"properties": {
					"total_affected_usd_amount": {
						"type": "number",
						"description": "Total USD at risk on this page. Not the sum of every row — exposure is de-duplicated across spenders approved against the same token balance. Counts only rows with a finite figure; `\"Unlimited\"` and `\"Unknown\"` contribute nothing."
					},
					"total_potential_affected_usd_amount": {
						"type": "number",
						"description": "Same aggregation over `potential_affected_usd_amount`."
					},
					"risky_approval_count": {
						"type": "integer",
						"description": "Rows where any of the three risk objects is risky."
					},
					"total_risky_usd_amount": {
						"type": "number",
						"description": "Sum of `affected_usd_amount` across those risky rows."
					},
					"risky_approval_indices": {
						"type": "array",
						"description": "0-based positions of the risky rows in `approval_status`. Index straight in — no scan needed.",
						"items": {
							"type": "integer"
						}
					}
				}
			},
			"Eip712SecurityRequest": {
				"type": "object",
				"required": [
					"address",
					"chain_id",
					"eip712_message"
				],
				"properties": {
					"address": {
						"type": "string",
						"description": "Signer's wallet address.",
						"example": "0x1d99c0ac928f58595b9d060c79f799fa38d171f4"
					},
					"chain_id": {
						"type": "integer",
						"description": "Chain of the signing request.",
						"example": 1
					},
					"url": {
						"type": "string",
						"description": "URL of the dApp requesting the signature. Enables domain-reputation checks. Send it whenever you have it.",
						"example": "https://app.uniswap.org"
					},
					"eip712_message": {
						"$ref": "#/components/schemas/Eip712Message"
					}
				}
			},
			"Eip712Message": {
				"type": "object",
				"description": "Standard EIP-712 typed-data payload. Pass through whatever the dApp handed the wallet.",
				"required": [
					"types",
					"primaryType",
					"domain",
					"message"
				],
				"properties": {
					"types": {
						"type": "object",
						"description": "Type definitions. Must include `EIP712Domain`.",
						"additionalProperties": {
							"type": "array",
							"items": {
								"$ref": "#/components/schemas/Eip712TypeField"
							}
						}
					},
					"primaryType": {
						"type": "string",
						"description": "Primary struct name, e.g. `Permit`.",
						"example": "Permit"
					},
					"domain": {
						"type": "object",
						"description": "EIP-712 domain separator fields (`name`, `chainId`, `verifyingContract`, …).",
						"additionalProperties": true
					},
					"message": {
						"type": "object",
						"description": "The typed message body.",
						"additionalProperties": true
					}
				}
			},
			"Eip712TypeField": {
				"type": "object",
				"required": [
					"name",
					"type"
				],
				"properties": {
					"name": {
						"type": "string"
					},
					"type": {
						"type": "string"
					}
				}
			},
			"Eip712SecurityResponse": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string",
						"description": "API status code. `\"0\"` indicates success.",
						"example": "0"
					},
					"status": {
						"type": "string",
						"example": "ok"
					},
					"data": {
						"$ref": "#/components/schemas/Eip712SecurityData"
					}
				},
				"required": [
					"code",
					"status"
				]
			},
			"Eip712SecurityData": {
				"type": "object",
				"properties": {
					"overall_score": {
						"type": "integer",
						"description": "Maximum risk score across all checkpoints, 0–5."
					},
					"overall_risk_level": {
						"type": "string",
						"description": "Label for `overall_score`."
					},
					"intent": {
						"type": "string",
						"description": "What the user is actually signing. See the endpoint page for the value list."
					},
					"recommended_action": {
						"type": "string",
						"description": "`\"ALLOW\"`, `\"WARN\"`, or `\"BLOCK\"`. Use this as the decision — do not derive a cutoff from `overall_score`.",
						"enum": [
							"ALLOW",
							"WARN",
							"BLOCK"
						]
					},
					"risk_details": {
						"type": "array",
						"description": "Triggered checkpoints. Empty when nothing fired. Branch on `name`, not `description`.",
						"items": {
							"$ref": "#/components/schemas/Eip712RiskDetail"
						}
					},
					"entities": {
						"$ref": "#/components/schemas/Eip712Entities"
					}
				}
			},
			"Eip712RiskDetail": {
				"type": "object",
				"properties": {
					"name": {
						"type": "string",
						"description": "Stable checkpoint identifier. Branch on this, not on `description`."
					},
					"value": {
						"type": "object",
						"description": "Checkpoint-specific evidence. Shape depends on `name` — see the catalogue on the endpoint page.",
						"additionalProperties": true
					},
					"score": {
						"type": "integer",
						"description": "0–5 for this finding."
					},
					"risk_level": {
						"type": "string",
						"description": "Label for `score`."
					},
					"description": {
						"type": "string",
						"description": "Explanation of what was detected. Wording is not stable — do not parse it."
					}
				}
			},
			"Eip712Entities": {
				"type": "object",
				"properties": {
					"addresses": {
						"type": "object",
						"description": "Always present. Map of address → `{score, risk_level}` for every address extracted from the message.",
						"additionalProperties": {
							"$ref": "#/components/schemas/Eip712EntityRisk"
						}
					},
					"url": {
						"allOf": [
							{
								"$ref": "#/components/schemas/Eip712EntityRisk"
							}
						],
						"description": "Present when `url` was supplied in the request (and enrichment succeeded)."
					},
					"verifyingContract": {
						"allOf": [
							{
								"$ref": "#/components/schemas/Eip712EntityRisk"
							}
						],
						"description": "Present when the domain declares a `verifyingContract`."
					}
				}
			},
			"Eip712EntityRisk": {
				"type": "object",
				"properties": {
					"score": {
						"type": "integer",
						"description": "0–5."
					},
					"risk_level": {
						"type": "string"
					}
				}
			},
			"SolanaTokenSecurityRequest": {
				"type": "object",
				"required": [
					"address"
				],
				"properties": {
					"address": {
						"type": "string",
						"description": "Solana token mint address.",
						"example": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
					},
					"sync": {
						"type": "boolean",
						"default": false,
						"description": "When `true`, wait for the analysis instead of returning `in progress`. Increases latency; may still time out and return `in progress`."
					}
				}
			},
			"SolanaTokenSecurityResponse": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string",
						"description": "API result code. \"0\" indicates success.",
						"example": "0"
					},
					"status": {
						"type": "string",
						"description": "Request status.",
						"example": "ok"
					},
					"data": {
						"$ref": "#/components/schemas/SolanaTokenSecurityData"
					}
				},
				"required": [
					"code",
					"status",
					"data"
				]
			},
			"SolanaTokenSecurityData": {
				"type": "object",
				"description": "Stable decision fields returned by completed Solana token analysis. The service may include additional Solana analysis objects; clients should treat those as optional context.",
				"properties": {
					"status": {
						"type": "integer",
						"description": "Analysis status. 200 indicates that a result was produced successfully.",
						"example": 200
					},
					"address": {
						"type": "string",
						"description": "Fully qualified Solana token mint address.",
						"example": "sol:EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"
					},
					"address_type": {
						"type": "string",
						"description": "Blockchain type (Solana).",
						"example": "Solana"
					},
					"overall_risk_level": {
						"type": "string",
						"description": "Overall risk classification.",
						"enum": [
							"No Obvious Risk",
							"Low Risk",
							"Medium Risk",
							"High Risk",
							"Significant Risk"
						]
					},
					"overall_score": {
						"type": "string",
						"description": "Security score encoded as a string from 0 to 100. Lower values indicate higher risk.",
						"pattern": "^(100|[1-9]?[0-9])$"
					},
					"scanned_time": {
						"type": "integer",
						"description": "Unix timestamp of the latest scan.",
						"example": 1790617277
					},
					"result_stage": {
						"type": "string",
						"description": "How the result was produced.",
						"enum": [
							"complete",
							"fallback",
							"degraded"
						]
					}
				},
				"required": [
					"status",
					"address",
					"address_type",
					"overall_score",
					"overall_risk_level",
					"scanned_time",
					"result_stage"
				]
			},
			"TokenInfo": {
				"type": "object",
				"properties": {
					"name": {
						"type": "string",
						"description": "Token name.",
						"example": "USDC"
					},
					"symbol": {
						"type": "string",
						"description": "Token symbol.",
						"example": "USDC"
					},
					"decimals": {
						"type": "number",
						"description": "Token decimals.",
						"example": 6
					},
					"price": {
						"type": "number",
						"description": "Current token price in USD(if available).",
						"example": 1
					}
				}
			},
			"MintAuthority": {
				"type": "object",
				"properties": {
					"is_mintable": {
						"type": "string",
						"description": "Determines whether new tokens can be minted.",
						"enum": [
							"0",
							"1"
						]
					},
					"is_risky": {
						"type": "string",
						"description": "Indicates if mint authority poses risks.",
						"enum": [
							"0",
							"1"
						]
					},
					"authority_type": {
						"type": "string",
						"description": "Type of mint authority.",
						"enum": [
							"wallet",
							"program"
						]
					}
				}
			},
			"FreezeAuthority": {
				"type": "object",
				"properties": {
					"is_freezable": {
						"type": "string",
						"description": "Indicates whether token transfers can be frozen.",
						"enum": [
							"0",
							"1"
						]
					},
					"is_risky": {
						"type": "string",
						"description": "Indicates if freeze authority poses risks.",
						"enum": [
							"0",
							"1"
						]
					}
				}
			},
			"HoldersConcentration": {
				"type": "object",
				"properties": {
					"total_holders": {
						"type": "string",
						"description": "Total number of token holders.",
						"example": "5717115"
					},
					"top1_concentration": {
						"type": "string",
						"description": "Percentage of supply held by top 1 holder. E.g. 0.2231 means 22.31%",
						"example": "0.2231"
					},
					"top5_concentration": {
						"type": "string",
						"description": "Percentage of supply held by top 5 holders. E.g. 0.4445 means 44.45%",
						"example": "0.4445"
					},
					"top10_concentration": {
						"type": "string",
						"description": "Percentage of supply held by top 10 holders. E.g. 0.4908 means 49.08%",
						"example": "0.4908"
					}
				}
			},
			"MarketInfo": {
				"type": "object",
				"properties": {
					"has_market_info": {
						"type": "string",
						"description": "Whether market information is available.",
						"enum": [
							"0",
							"1"
						]
					},
					"total_pools": {
						"type": "string",
						"description": "Total number of liquidity pools."
					},
					"total_volume_24h": {
						"type": "string",
						"description": "Total 24-hour trading volume in USD.",
						"example": "1147949703.936499"
					}
				}
			},
			"TokenSecurityRequest": {
				"type": "object",
				"required": [
					"chain_id",
					"address"
				],
				"properties": {
					"chain_id": {
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						],
						"description": "Network identifier. Use a numeric ID for EVM networks or `tron` / `728126428` for TRON. See [Supported Chains](/api-reference/supported-chains).",
						"example": "56"
					},
					"address": {
						"type": "string",
						"description": "Token contract address.",
						"example": "0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"
					},
					"sync": {
						"type": "boolean",
						"default": false,
						"description": "When `true`, wait for the analysis instead of returning `in progress`. Increases latency; may still time out and return `in progress`."
					}
				}
			},
			"TokenSecurityResponse": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string",
						"description": "API result code. \"0\" indicates success.",
						"example": "0"
					},
					"status": {
						"type": "string",
						"description": "Request status.",
						"example": "ok"
					},
					"data": {
						"$ref": "#/components/schemas/TokenSecurityData"
					}
				},
				"required": [
					"code",
					"status",
					"data"
				]
			},
			"TokenSecurityData": {
				"type": "object",
				"description": "Stable decision fields returned by completed token analysis. The service may include additional chain-specific analysis objects; clients should treat those as optional context.",
				"properties": {
					"status": {
						"type": "integer",
						"description": "Analysis status. 200 indicates that a result was produced successfully.",
						"example": 200
					},
					"address": {
						"type": "string",
						"description": "Fully qualified token address with chain prefix.",
						"example": "bsc:0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82"
					},
					"address_type": {
						"type": "string",
						"description": "Token standard.",
						"example": "ERC20"
					},
					"overall_risk_level": {
						"type": "string",
						"description": "Overall risk summary.",
						"enum": [
							"No Obvious Risk",
							"Low Risk",
							"Medium Risk",
							"High Risk",
							"Significant Risk"
						]
					},
					"overall_score": {
						"type": "string",
						"description": "Overall security score encoded as a string from 0 to 100. Lower values indicate higher risk.",
						"pattern": "^(100|[1-9]?[0-9])$"
					},
					"scanned_time": {
						"type": "integer",
						"description": "Unix timestamp of the latest scan.",
						"example": 1790594185
					},
					"result_stage": {
						"type": "string",
						"description": "How the result was produced.",
						"enum": [
							"complete",
							"fallback",
							"degraded"
						]
					}
				},
				"required": [
					"status",
					"address",
					"address_type",
					"overall_score",
					"overall_risk_level",
					"scanned_time",
					"result_stage"
				]
			},
			"BasicTokenInfo": {
				"type": "object",
				"properties": {
					"token_name": {
						"type": "string",
						"description": "Token name.",
						"example": "PancakeSwap Token"
					},
					"token_symbol": {
						"type": "string",
						"description": "Token symbol.",
						"example": "Cake"
					},
					"token_decimals": {
						"type": "string",
						"description": "Token decimals.",
						"example": "18"
					},
					"days_deployed": {
						"type": "string",
						"description": "Number of days since deployment."
					},
					"is_mintable": {
						"type": "string",
						"description": "Indicates whether new tokens can be minted.",
						"enum": [
							"0",
							"1"
						]
					},
					"is_in_dex": {
						"type": "string",
						"description": "Token is listed on a DEX.",
						"enum": [
							"0",
							"1"
						]
					},
					"verified": {
						"type": "string",
						"description": "Contract verification status.",
						"enum": [
							"0",
							"1"
						]
					}
				}
			},
			"TokenPrivileges": {
				"type": "object",
				"properties": {
					"owner_address": {
						"type": "string",
						"description": "Contract owner address.",
						"example": "0x73feaa1eE314F8c655E354234017bE2193C9E24E"
					},
					"owner_type": {
						"type": "string",
						"description": "Owner type.",
						"enum": [
							"contract",
							"EOA"
						]
					},
					"dev_malicious": {
						"type": "string",
						"description": "Developer risk indicator.",
						"enum": [
							"0",
							"1"
						]
					}
				}
			},
			"SecurityRisks": {
				"type": "object",
				"properties": {
					"is_honeypot": {
						"type": "string",
						"description": "Indicates honeypot behaviour. A honeypot is a type of malicious smart contract designed to lure users into interacting with it under false pretenses. It appears to allow certain profitable actions (like buying or withdrawing tokens), but when users try to perform other actions (such as selling or transferring tokens), they are blocked or lose their funds.",
						"enum": [
							"0",
							"1"
						]
					},
					"hidden_owner": {
						"type": "string",
						"description": "Ownership obfuscation detection. Hidden owner means the identity of the owner (or priviledged addresses) is not easily identifiable, in order to deceive users.",
						"enum": [
							"0",
							"1"
						]
					},
					"self_destruct": {
						"type": "string",
						"description": "Contract self-destruct capability. A self-destruct feature allows the contract owner to permanently delete the contract and its associated funds, rendering it permanently inactive.",
						"enum": [
							"0",
							"1"
						]
					},
					"unlimited_mintable": {
						"type": "string",
						"description": "Unlimited minting capability. An unlimited minting feature allows the contract owner to mint an unlimited number of tokens, regardless of the total supply.",
						"enum": [
							"0",
							"1"
						]
					}
				}
			},
			"TokenMarket": {
				"type": "object",
				"properties": {
					"holders_count": {
						"type": "string",
						"description": "Total number of token holders.",
						"example": "1870482"
					},
					"owner_token_percent": {
						"type": "string",
						"description": "Percentage of tokens owned by the contract owner. E.g. 0.17 means 17%",
						"example": "0.17"
					},
					"holders_concentration": {
						"$ref": "#/components/schemas/HoldersConcentrationEVM"
					}
				}
			},
			"HoldersConcentrationEVM": {
				"type": "object",
				"properties": {
					"top1_eoa_concentration": {
						"type": "string",
						"description": "Percentage of supply held by top 1 EOA holder. E.g. 0.17 means 17%",
						"example": "0.17"
					},
					"top5_eoa_concentration": {
						"type": "string",
						"description": "Percentage of supply held by top 5 EOA holders. E.g. 0.17 means 17%",
						"example": "0.17"
					}
				}
			},
			"TradeAnalysis": {
				"type": "object",
				"properties": {
					"sell_tax": {
						"type": "string",
						"description": "The amount of percentage tax charged when selling tokens. E.g. 0.01 means 1%",
						"example": "0.01"
					},
					"buy_tax": {
						"type": "string",
						"description": "The amount of percentage tax charged when buying tokens. E.g. 0.01 means 1%",
						"example": "0.01"
					},
					"transfer_tax": {
						"type": "string",
						"description": "The amount of percentage tax charged when transferring tokens. E.g. 0.01 means 1%",
						"example": "0.01"
					}
				}
			},
			"TransferRestrictions": {
				"type": "object",
				"properties": {
					"is_anti_whale": {
						"type": "string",
						"description": "Indicates whether anti-whale restrictions are in place. Anti-whale restrictions are designed to prevent large holders from dominating the market and manipulating prices.",
						"enum": [
							"0",
							"1"
						]
					},
					"transfer_pausable": {
						"type": "string",
						"description": "Indicates whether a privileged address can pause token transfers.",
						"enum": [
							"0",
							"1"
						]
					},
					"transfer_blacklist": {
						"type": "string",
						"description": "Indicates whether a privileged address can blacklist other addresses from transferring tokens.",
						"enum": [
							"0",
							"1"
						]
					}
				}
			},
			"TransactionSecurityFreezeBalance": {
				"type": "object",
				"required": [
					"action",
					"resource",
					"amount"
				],
				"x-mint": {
					"post": [
						"Tron only"
					]
				},
				"description": "**Tron only.** Stake 2.0 freeze or unfreeze operation. Alias: `freezeBalance`.\n\nTakes `action`, `resource`, and `amount`. `amount` is in sun.",
				"properties": {
					"action": {
						"type": "string",
						"enum": [
							"freeze",
							"unfreeze"
						],
						"description": "`freeze` or `unfreeze`."
					},
					"resource": {
						"oneOf": [
							{
								"type": "string"
							},
							{
								"type": "integer"
							}
						],
						"description": "`BANDWIDTH`, `ENERGY`, or `TRON_POWER` (or `0` / `1` / `2`)."
					},
					"amount": {
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						],
						"description": "Amount in sun.\n\nSee [Numeric Fields](#numeric-fields)."
					}
				}
			},
			"TransactionSecurityDelegateResource": {
				"type": "object",
				"required": [
					"action",
					"resource",
					"amount"
				],
				"x-mint": {
					"post": [
						"Tron only"
					]
				},
				"description": "**Tron only.** Stake 2.0 delegate or undelegate operation. Alias: `delegateResource`.\n\nTakes `action`, `resource`, and `amount`. `amount` is in sun.",
				"properties": {
					"action": {
						"type": "string",
						"enum": [
							"delegate",
							"undelegate"
						],
						"description": "`delegate` or `undelegate`."
					},
					"resource": {
						"oneOf": [
							{
								"type": "string"
							},
							{
								"type": "integer"
							}
						],
						"description": "`BANDWIDTH` or `ENERGY` (or `0` / `1`)."
					},
					"amount": {
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						],
						"description": "Amount in sun.\n\nSee [Numeric Fields](#numeric-fields)."
					}
				}
			},
			"TransactionSecurityEvmTransaction": {
				"type": "object",
				"required": [
					"chain_id",
					"from",
					"to"
				],
				"description": "Only `chain_id`, `from`, and `to` are required.\n\nIn production, send the complete transaction object available to the wallet so the simulation matches what the user is being asked to sign.\n\n`nonce`, `type`, `maxFeePerGas` and `maxPriorityFeePerGas` are recommended context but do not change the simulation result. `gas` and `gasPrice` are passed to the simulator and can affect execution.",
				"example": {
					"chain_id": "56",
					"from": "0x000000000000000000000000000000000000dead",
					"to": "0x6ad549e6312114e646f30cDDde75e15a96d86233",
					"value": "1000000000000000000",
					"data": "0x"
				},
				"properties": {
					"chain_id": {
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						],
						"description": "**Required.** Network chain ID, such as `1` or `\"56\"`.\n\nUse `\"tron\"` or `728126428` for TRON.\n\nSee [Supported Chains](/api-reference/supported-chains).\n\nAlias: `chainId`.",
						"example": "56"
					},
					"from": {
						"type": "string",
						"description": "**Required.** Signer's address.\n\nA `0x` address on EVM chains, a Base58 `T...` address on Tron.",
						"example": "0x000000000000000000000000000000000000dead"
					},
					"to": {
						"type": "string",
						"description": "**Required.** Target contract or recipient address.",
						"example": "0x6ad549e6312114e646f30cDDde75e15a96d86233"
					},
					"value": {
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						],
						"description": "Native asset amount — wei on EVM, sun on Tron. Defaults to `0`.\n\nSee [Numeric Fields](#numeric-fields).",
						"example": "1000000000000000000"
					},
					"data": {
						"type": "string",
						"description": "Hex-encoded calldata. Alias: `input`. Defaults to `\"0x\"` for a plain transfer.\n\nSend either `data` or `input`, **not both**.",
						"example": "0x"
					},
					"gas": {
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						],
						"description": "Gas limit. Alias: `gasLimit`.\n\nPassed to the simulator and can affect execution.\n\nSee [Numeric Fields](#numeric-fields)."
					},
					"gas_price": {
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						],
						"description": "Gas price for legacy (`type: 0`) transactions. Alias: `gasPrice`.\n\nPassed to the simulator and can affect execution.\n\nSee [Numeric Fields](#numeric-fields)."
					},
					"max_fee_per_gas": {
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						],
						"description": "EIP-1559 maximum fee per gas. Use with `type: 2`. Alias: `maxFeePerGas`.\n\nRecommended context. Does not change the simulation result.\n\nSee [Numeric Fields](#numeric-fields)."
					},
					"max_priority_fee_per_gas": {
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						],
						"description": "EIP-1559 priority fee per gas. Alias: `maxPriorityFeePerGas`.\n\nRecommended context. Does not change the simulation result.\n\nSee [Numeric Fields](#numeric-fields)."
					},
					"nonce": {
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						],
						"description": "Sender nonce.\n\nRecommended context. Does not change the simulation result.\n\nSee [Numeric Fields](#numeric-fields)."
					},
					"type": {
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						],
						"description": "EIP-2718 transaction type, usually `0` or `2`.\n\nRecommended context. Does not change the simulation result.\n\nSee [Numeric Fields](#numeric-fields)."
					},
					"block_height": {
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						],
						"description": "Block to simulate against. Defaults to `latest`.\n\nTron always uses current state.\n\nAlias: `blockHeight`.\n\nSee [Numeric Fields](#numeric-fields)."
					},
					"name": {
						"type": "string",
						"description": "Your own label for this transaction. Echoed back, never interpreted."
					},
					"token_id": {
						"x-mint": {
						"post": [
								"Tron only"
							]
						},
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						],
						"description": "**Tron only.** TRC-10 asset ID. Send together with `token_value`. Alias: `tokenId`.\n\nSee [Numeric Fields](#numeric-fields)."
					},
					"token_value": {
						"x-mint": {
						"post": [
								"Tron only"
							]
						},
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						],
						"description": "**Tron only.** TRC-10 amount. Alias: `tokenValue` or `call_token_value`.\n\nSee [Numeric Fields](#numeric-fields)."
					},
					"freeze_balance": {
						"x-mint": {
							"post": [
								"Tron only"
							]
						},
						"allOf": [
							{
								"$ref": "#/components/schemas/TransactionSecurityFreezeBalance"
							}
						],
						"description": "**Tron only.** Stake 2.0 freeze or unfreeze operation. Alias: `freezeBalance`.\n\nSending `tron_transactions` instead fills these in from the unsigned transaction."
					},
					"delegate_resource": {
						"x-mint": {
							"post": [
								"Tron only"
							]
						},
						"allOf": [
							{
								"$ref": "#/components/schemas/TransactionSecurityDelegateResource"
							}
						],
						"description": "**Tron only.** Stake 2.0 delegate or undelegate operation. Alias: `delegateResource`.\n\nSending `tron_transactions` instead fills these in from the unsigned transaction."
					},
					"withdraw_expire_unfreeze": {
						"type": "boolean",
						"x-mint": {
							"post": [
								"Tron only"
							]
						},
						"description": "**Tron only.** Claims matured unfreeze entries. Alias: `withdrawExpireUnfreeze`."
					}
				}
			},
			"TransactionSecurityCommonRequest": {
				"type": "object",
				"properties": {
					"dapp_url": {
						"type": "string",
						"description": "Full URL of the dApp that initiated the transaction. Alias: `dappUrl`.\n\nOptional, **recommended**."
					},
					"simulate": {
						"type": "boolean",
						"default": true,
						"description": "Defaults to `true`.\n\nSet to `false` to return the security verdict without simulation output. `exec_summary`, `results` and `simulation_error` are omitted. Checks that depend on execution evidence — an approval created inside a nested call, the proportion of a balance transferred — are unavailable in this mode."
					}
				}
			},
			"TransactionSecurityFlattenedRequest": {
				"title": "EVM / TRON Flattened",
				"description": "Use the common flattened transaction shape for EVM, or for TRON after conversion.",
				"allOf": [
					{
						"$ref": "#/components/schemas/TransactionSecurityCommonRequest"
					},
					{
						"type": "object",
						"required": [
							"evm_transactions"
						],
						"properties": {
							"evm_transactions": {
								"type": "array",
								"minItems": 1,
								"maxItems": 1,
								"description": "Exactly one flattened EVM or TRON transaction. Alias: `transactions`.",
								"example": [
									{
										"chain_id": "56",
										"from": "0x000000000000000000000000000000000000dead",
										"to": "0x6ad549e6312114e646f30cDDde75e15a96d86233",
										"value": "1000000000000000000",
										"data": "0x"
									}
								],
								"items": {
									"$ref": "#/components/schemas/TransactionSecurityEvmTransaction"
								}
							}
						}
					}
				]
			},
			"TransactionSecurityTronRawRequest": {
				"title": "TRON Raw",
				"description": "Forward one unsigned transaction returned by `tronWeb.transactionBuilder.*` without flattening it.",
				"allOf": [
					{
						"$ref": "#/components/schemas/TransactionSecurityCommonRequest"
					},
					{
						"type": "object",
						"required": [
							"tron_transactions"
						],
						"properties": {
							"tron_transactions": {
								"type": "array",
								"minItems": 1,
								"maxItems": 1,
								"description": "Exactly one unsigned transaction returned by `tronWeb.transactionBuilder.*`. Alias: `tronTransactions`. No `chain_id` is required.",
								"items": {
									"type": "object",
									"description": "The unsigned object returned by TronWeb. Send it unchanged.",
									"additionalProperties": true
								}
							}
						}
					}
				]
			},
			"TransactionSecurityRequest": {
				"description": "Choose one request form and send exactly one transaction. Sending both shapes, or more than one transaction, returns `400`.",
				"oneOf": [
					{
						"$ref": "#/components/schemas/TransactionSecurityFlattenedRequest"
					},
					{
						"$ref": "#/components/schemas/TransactionSecurityTronRawRequest"
					}
				]
			},
			"TransactionSecurityBalanceChangeItem": {
				"type": "object",
				"description": "One address's movement for the parent asset.",
				"properties": {
					"address": {
						"type": "string",
						"description": "The address whose balance moved."
					},
					"amount_change": {
						"type": "string",
						"description": "Human-readable balance change after applying token decimals."
					},
					"begin_value": {
						"type": "string",
						"description": "Raw balance before execution."
					},
					"end_value": {
						"type": "string",
						"description": "Raw balance after execution."
					},
					"delta_value": {
						"type": "string",
						"description": "Raw change in the asset's smallest unit."
					},
					"value_usd": {
						"type": "string",
						"description": "Estimated USD value of the change, when pricing is available."
					}
				}
			},
			"TransactionSecurityBalanceChange": {
				"type": "object",
				"description": "Native or token balance movements grouped by asset.\n\nIdentifies the asset with `token_address`, `tokenName`, `symbol` and `divisor`, plus `tokenPriceUSD` when pricing is available.\n\nTRX and TRC-20 transfers appear here. TRC-10 assets use `\"trc10:<token_id>\"` as `token_address`.",
				"properties": {
					"token_address": {
						"type": "string",
						"description": "Asset identifier. Native assets use a chain-specific sentinel. TRC-10 assets use `\"trc10:<token_id>\"`."
					},
					"tokenName": {
						"type": "string",
						"description": "Human-readable token name."
					},
					"symbol": {
						"type": "string",
						"description": "Token symbol."
					},
					"divisor": {
						"type": "string",
						"description": "Token decimals used to produce `amount_change`."
					},
					"tokenPriceUSD": {
						"type": "string",
						"description": "Token price in USD, when pricing is available."
					},
					"change_list": {
						"type": "array",
						"description": "Per-address balance movements for this asset.",
						"items": {
							"$ref": "#/components/schemas/TransactionSecurityBalanceChangeItem"
						}
					}
				}
			},
			"TransactionSecurityApproveChangeItem": {
				"type": "object",
				"description": "Read `approver_address`, `spender_address` and `end_value` to answer the question that matters: who can spend this asset, and how much, after the transaction?\n\n`begin_value` and `delta_value` give the previous allowance and the change.",
				"properties": {
					"approver_address": {
						"type": "string",
						"description": "Address that granted the allowance."
					},
					"spender_address": {
						"type": "string",
						"description": "Address that can spend the asset after the transaction."
					},
					"begin_value": {
						"type": "string",
						"description": "Raw allowance before execution."
					},
					"end_value": {
						"type": "string",
						"description": "Raw allowance after execution."
					},
					"delta_value": {
						"type": "string",
						"description": "Raw change in the allowance."
					}
				}
			},
			"TransactionSecurityApproveChange": {
				"type": "object",
				"description": "Token or NFT approvals created or updated by the transaction.",
				"properties": {
					"token_address": {
						"type": "string",
						"description": "Token whose allowance changed."
					},
					"tokenName": {
						"type": "string",
						"description": "Human-readable token name."
					},
					"symbol": {
						"type": "string",
						"description": "Token symbol."
					},
					"approve_list": {
						"type": "array",
						"description": "Allowance changes for this token.",
						"items": {
							"$ref": "#/components/schemas/TransactionSecurityApproveChangeItem"
						}
					}
				}
			},
			"TransactionSecurityTronFee": {
				"type": "object",
				"x-mint": {
					"post": [
						"Tron only"
					]
				},
				"description": "**Tron only.** Estimated bandwidth and energy usage and the resulting fee in sun.\n\nRead `bandwidth_fee_sun`, `energy_fee_sun` and `total_fee_sun`.\n\n`tron_fee` is absent when no authoritative fee estimate was available — in particular when execution reverted, and when the transaction moves nothing at all. Do **not** read its absence as a zero fee.",
				"properties": {
					"bandwidth_consumed": {
						"type": "integer",
						"description": "Bandwidth consumed."
					},
					"bandwidth_fee_sun": {
						"type": "integer",
						"description": "Bandwidth fee in sun."
					},
					"energy_consumed": {
						"type": "integer",
						"description": "Energy consumed."
					},
					"energy_fee_sun": {
						"type": "integer",
						"description": "Energy fee in sun."
					},
					"total_fee_sun": {
						"type": "integer",
						"description": "Total fee in sun."
					}
				}
			},
			"TransactionSecurityTronFeeLimit": {
				"type": "object",
				"x-mint": {
					"post": [
						"Tron only"
					]
				},
				"description": "**Tron only.** Whether the signer's fee cap covers the fee.\n\nPresent when the Tron transaction carried a `raw_data.fee_limit` **and** the simulation returned a fee estimate. Absent for a reverting transaction.\n\n`sufficient: false` is a transaction that will fail against its own cap. Read `estimated_fee_sun` for the fee it actually needs.",
				"properties": {
					"fee_limit_sun": {
						"type": "integer",
						"description": "The cap the signer set, from `raw_data.fee_limit`."
					},
					"estimated_fee_sun": {
						"type": "integer",
						"description": "What the simulation says the transaction will actually cost."
					},
					"sufficient": {
						"type": "boolean",
						"description": "`false` means the transaction cannot succeed as submitted."
					}
				}
			},
			"TransactionSecurityExecSummary": {
				"type": "object",
				"description": "Overall simulation status. Omitted when `simulate` is `false`.",
				"properties": {
					"result_code": {
						"type": "string",
						"nullable": true,
						"description": "`\"000000000\"` when simulation succeeds. Another value means the transaction reverted or the simulator hit a problem. `null` when no result was produced."
					},
					"result_description": {
						"type": "string",
						"nullable": true,
						"description": "Human-readable description of the result code."
					},
					"error_data": {
						"type": "string",
						"nullable": true,
						"description": "The simulator's own error or revert reason; `null` on success.\n\nNot to be confused with `simulation_error`, which says why there is no preview at all."
					},
					"emulator_type": {
						"type": "string",
						"nullable": true,
						"description": "Which engine ran. Informational."
					}
				}
			},
			"TransactionSecurityResult": {
				"type": "object",
				"description": "On-chain effects of the simulated transaction.\n\nSimulated past the balance and nonce preconditions, so an underfunded sender still returns a full result.\n\nTron returns the same balance, approval, address and execution fields, using Base58 `T...` addresses.",
				"properties": {
					"revert": {
						"type": "boolean",
						"description": "Whether contract execution reverted. A revert is served at HTTP `200`."
					},
					"revert_reason": {
						"type": "string",
						"description": "Decoded revert reason, when available."
					},
					"platform": {
						"type": "string",
						"description": "Chain used for simulation, such as `bsc`, `eth`, or `tron`."
					},
					"tx_gas_used": {
						"type": "integer",
						"description": "Gas consumed on EVM. For Tron fee information, use `tron_fee`."
					},
					"tx_gas_price": {
						"type": "integer",
						"description": "Gas price used by the simulation."
					},
					"sender_on_chain_balance": {
						"type": "string",
						"description": "Sender's native balance at the simulated block, in the smallest unit."
					},
					"balance_changes": {
						"type": "array",
						"description": "Native and token balance changes grouped by asset.",
						"items": {
							"$ref": "#/components/schemas/TransactionSecurityBalanceChange"
						}
					},
					"approve_changes": {
						"type": "array",
						"description": "Token or NFT approvals created or updated by the transaction.",
						"items": {
							"$ref": "#/components/schemas/TransactionSecurityApproveChange"
						}
					},
					"ownership_changes": {
						"type": "array",
						"description": "Contract ownership or role changes.",
						"items": {
							"type": "object",
							"additionalProperties": true
						}
					},
					"called_addresses": {
						"type": "array",
						"description": "Contracts whose code was executed.",
						"items": {
							"type": "string"
						}
					},
					"involved_addresses": {
						"type": "array",
						"description": "All contract and wallet addresses observed during execution.",
						"items": {
							"type": "string"
						}
					},
					"block_height": {
						"type": "integer",
						"description": "Block height actually used for simulation."
					},
					"request_id": {
						"type": "string",
						"description": "Quote this when asking about a specific simulation."
					},
					"name": {
						"type": "string",
						"description": "Echoed from the request `name`, if supplied."
					},
					"balance_table": {
						"type": "array",
						"description": "Full pre/post balance table when available.",
						"items": {
							"type": "object",
							"additionalProperties": true
						}
					},
					"execution_trace": {
						"description": "Opcode-level execution trace when available."
					},
					"logs": {
						"type": "array",
						"description": "Raw event logs when available.",
						"items": {
							"type": "object",
							"additionalProperties": true
						}
					},
					"tron_fee": {
						"x-mint": {
							"post": [
								"Tron only"
							]
						},
						"allOf": [
							{
								"$ref": "#/components/schemas/TransactionSecurityTronFee"
							}
						],
						"description": "**Tron only.** Estimated bandwidth and energy usage and the resulting fee in sun.\n\nAbsent when no authoritative fee estimate was available — in particular when execution reverted, and when the transaction moves nothing at all. Do **not** read its absence as a zero fee."
					},
					"stake_ledger_changes": {
						"type": "array",
						"x-mint": {
							"post": [
								"Tron only"
							]
						},
						"description": "**Tron only.** Changes to frozen, delegated or acquired Stake 2.0 balances, in sun.",
						"items": {
							"type": "object",
							"additionalProperties": true
						}
					},
					"resource_capacity_changes": {
						"type": "array",
						"x-mint": {
							"post": [
								"Tron only"
							]
						},
						"description": "**Tron only.** Changes to the address's usable `ENERGY` or `BANDWIDTH` capacity.",
						"items": {
							"type": "object",
							"additionalProperties": true
						}
					},
					"resource_capacity_conversion": {
						"type": "object",
						"x-mint": {
							"post": [
								"Tron only"
							]
						},
						"additionalProperties": true,
						"description": "**Tron only.** Network totals used to convert staked sun into resource capacity."
					}
				}
			},
			"TransactionSecurityDecodedParameter": {
				"type": "object",
				"description": "One decoded top-level function parameter. Parameter order is preserved.",
				"properties": {
					"name": {
						"type": "string",
						"description": "Parameter name from the resolved ABI or supported standard schema. An unnamed ABI parameter uses an empty string."
					},
					"type": {
						"type": "string",
						"description": "Canonical ABI type, including array and tuple notation."
					},
					"value": {
						"oneOf": [
							{
								"type": "string"
							},
							{
								"type": "boolean"
							},
							{
								"type": "array",
								"items": {}
							}
						],
						"description": "Decoded value. Integers and fixed-point values are decimal strings, booleans remain JSON booleans, bytes are `0x` hex strings, and arrays preserve order. Tuple values are arrays of parameter objects with the same `name`, `type`, and `value` shape."
					}
				},
				"required": [
					"name",
					"type",
					"value"
				]
			},
			"TransactionSecurityDecodedCall": {
				"type": "object",
				"description": "Top-level ABI function decoded from the requested transaction.",
				"properties": {
					"selector": {
						"type": "string",
						"nullable": true,
						"description": "Four-byte function selector when available, for example `0x095ea7b3`."
					},
					"function_name": {
						"type": "string",
						"nullable": true,
						"description": "Decoded top-level function name, or `null` when it could not be identified."
					},
					"function_signature": {
						"type": "string",
						"nullable": true,
						"description": "Canonical function signature, or `null` when it could not be identified."
					},
					"params": {
						"type": "array",
						"nullable": true,
						"description": "Ordered decoded parameters. An empty array means the function has no parameters; `null` means parameters could not be decoded.",
						"items": {
							"$ref": "#/components/schemas/TransactionSecurityDecodedParameter"
						}
					}
				},
				"required": [
					"selector",
					"function_name",
					"function_signature",
					"params"
				]
			},
			"TransactionSecurityTransactionInfo": {
				"type": "object",
				"description": "Requested transaction intent. Use `transaction_type` as the canonical business category for titles and client flows. This object is not a security verdict or proof that execution succeeded.",
				"properties": {
					"transaction_type": {
						"type": "string",
						"enum": [
							"transfer",
							"swap",
							"approve",
							"revoke",
							"contract_deployment",
							"mint",
							"sale",
							"listing",
							"make_offer",
							"place_bid",
							"signature_request",
							"other"
						],
						"description": "Canonical business category for the transaction title and primary client flow. Use `other` for a recognized request that does not map to a more specific category."
					},
					"primary_action": {
						"type": "string",
						"description": "Main recognized action, such as `approve`, `transfer`, `swap`, `batch`, `contract_call`, or `unknown`. Clients should support additional values as coverage expands."
					},
					"actions": {
						"type": "array",
						"description": "Recognized actions in first-seen order with duplicates removed. Execution wrappers appear before their recognized command actions.",
						"items": {
							"type": "string"
						}
					},
					"decoded_call": {
						"nullable": true,
						"allOf": [
							{
								"$ref": "#/components/schemas/TransactionSecurityDecodedCall"
							}
						],
						"description": "Top-level function details, or `null` when the request does not contain an ABI function call."
					}
				},
				"required": [
					"transaction_type",
					"primary_action",
					"actions",
					"decoded_call"
				]
			},
			"TransactionSecurityRiskDetail": {
				"type": "object",
				"description": "A triggered security finding.\n\nUse `name` for application logic and `description` for user-facing copy. **Key off `name`, not `description`:** identifiers are stable, while wording improves over time.\n\n`description` states what the transaction does and why that is risky, in one or two sentences. If you write your own copy, build it from `name` and the simulation output rather than by parsing this string.\n\nFor the full list of checks, contact the HashDit team.",
				"properties": {
					"name": {
						"type": "string",
						"description": "Stable identifier for programmatic handling."
					},
					"score": {
						"type": "integer",
						"minimum": 0,
						"maximum": 5,
						"description": "Risk score for this individual finding, from `0` to `5`."
					},
					"risk_level": {
						"type": "string",
						"description": "Human-readable severity for the finding."
					},
					"description": {
						"type": "string",
						"description": "Plain-language explanation suitable for a confirmation screen."
					}
				}
			},
			"TransactionSecurityAssessment": {
				"type": "object",
				"description": "Security assessment and signing recommendation. Always present on success.\n\nA response can contain multiple findings. Show all of them: each describes a different part of the risk — the dApp domain, the spender, the destination, the asset exposure.",
				"properties": {
					"overall_score": {
						"type": "integer",
						"minimum": 0,
						"maximum": 5,
						"description": "Highest risk score among all findings, from `0` to `5`."
					},
					"overall_risk_level": {
						"type": "string",
						"description": "Human-readable label for `overall_score`."
					},
					"recommended_action": {
						"type": "string",
						"enum": [
							"ALLOW",
							"WARN",
							"BLOCK"
						],
						"description": "`ALLOW`, `WARN`, or `BLOCK`."
					},
					"risk_details": {
						"type": "array",
						"description": "Triggered security findings. Empty when no risk is detected.",
						"items": {
							"$ref": "#/components/schemas/TransactionSecurityRiskDetail"
						}
					}
				}
			},
			"TransactionSecurityData": {
				"type": "object",
				"required": [
					"security",
					"transaction_info"
				],
				"description": "Successful payload.\n\n`security` and `transaction_info` are always present for the documented v2 list request formats.\n\n`exec_summary`, `results` and `simulation_error` are omitted when `simulate` is `false`.\n\n`tron_fee_limit` is Tron only, and present only when both inputs are available.",
				"properties": {
					"security": {
						"allOf": [
							{
								"$ref": "#/components/schemas/TransactionSecurityAssessment"
							}
						],
						"description": "Security assessment and signing recommendation. Always present on success."
					},
					"transaction_info": {
						"$ref": "#/components/schemas/TransactionSecurityTransactionInfo"
					},
					"exec_summary": {
						"allOf": [
							{
								"$ref": "#/components/schemas/TransactionSecurityExecSummary"
							}
						],
						"description": "Overall simulation status. Omitted when `simulate` is `false`."
					},
					"results": {
						"type": "array",
						"description": "On-chain effects of the simulated transaction. Omitted when `simulate` is `false`.\n\nWhen `simulation_error` is non-null, `results` is empty and `security` still carries a full assessment — but checks that need execution evidence did not contribute, so treat the verdict as less complete rather than as a clean result.",
						"items": {
							"$ref": "#/components/schemas/TransactionSecurityResult"
						}
					},
					"simulation_error": {
						"type": "string",
						"nullable": true,
						"description": "Why there is no execution preview, or `null` when there is one. Omitted when `simulate` is `false`.\n\n`null` when the simulation produced a result — including when execution **reverted**, which is an answer rather than a failure. A string when no execution preview could be produced at all.\n\n- Simulated, including a revert — `null`\n- A simulation was attempted and none came back — `Execution preview failed; security assessment still applies.`\n- The operation has no execution to preview — `<Operation> cannot be previewed; security assessment still applies.`\n\nWhen it is non-null, `results` is empty and `security` still carries a full assessment — but checks that need execution evidence did not contribute, so treat the verdict as less complete rather than as a clean result."
					},
					"tron_fee_limit": {
						"x-mint": {
							"post": [
								"Tron only"
							]
						},
						"allOf": [
							{
								"$ref": "#/components/schemas/TransactionSecurityTronFeeLimit"
							}
						],
						"description": "**Tron only.** Whether the signer's fee cap covers the fee. Present only when both inputs are available."
					}
				}
			},
			"TransactionSecurityResponse": {
				"type": "object",
				"description": "Every successful call uses the standard envelope: `code`, `status`, `data`.",
				"properties": {
					"code": {
						"type": "string",
						"description": "`\"0\"` when the API request succeeded.",
						"example": "0"
					},
					"status": {
						"type": "string",
						"description": "`\"ok\"` on success; otherwise an error label.",
						"example": "ok"
					},
					"data": {
						"$ref": "#/components/schemas/TransactionSecurityData"
					}
				},
				"required": [
					"code",
					"status"
				]
			},
			"ErrorResponse": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string"
					},
					"status": {
						"type": "string"
					},
					"detail": {
						"type": "string"
					}
				},
				"required": [
					"code",
					"status"
				]
			},
			"RateLimitExceededErrorResponse": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string",
						"description": "`429`",
						"example": "429"
					},
					"status": {
						"type": "string",
						"description": "`error`",
						"example": "error"
					},
					"message": {
						"type": "string",
						"description": "Rate limit exceeded",
						"example": "Rate limit exceeded"
					}
				},
				"required": [
					"code",
					"status"
				]
			},
			"InvalidAPIKeyErrorResponse": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string",
						"description": "`403`",
						"example": "403"
					},
					"status": {
						"type": "string",
						"description": "Authentication error",
						"example": "error"
					},
					"message": {
						"type": "string",
						"description": "invalid apiKey: apiKey invalid",
						"example": "invalid apiKey: apiKey invalid"
					},
					"apiKey": {
						"type": "string",
						"description": "API key",
						"example": ""
					}
				},
				"required": [
					"code",
					"status"
				]
			},
			"CurrentServiceError": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string",
						"description": "Error code. Typically `-1` for client errors, `-2` for server errors, or `401` / `429` for auth and rate limits."
					},
					"status": {
						"type": "string",
						"description": "Short error status string."
					},
					"detail": {
						"type": "string",
						"description": "Human-readable explanation of the error. Names the field that was rejected when the request is invalid."
					}
				},
				"required": [
					"code",
					"status"
				]
			},
			"MissingAPIKeyErrorResponse": {
				"type": "object",
				"properties": {
					"code": {
						"type": "string",
						"description": "`401`",
						"example": "401"
					},
					"status": {
						"type": "string",
						"description": "Missing API key",
						"example": "Missing API key"
					},
					"detail": {
						"type": "string",
						"description": "Missing API key",
						"example": "Missing API key"
					}
				},
				"required": [
					"code",
					"status",
					"detail"
				]
			},
			"InProgressResponse": {
				"type": "object",
				"description": "Returned when analysis is queued. There is no `data` object in this response.",
				"properties": {
					"code": {
						"type": "string",
						"description": "`\"0\"` — the request succeeded. This is **not** an error.",
						"example": "0"
					},
					"status": {
						"type": "string",
						"description": "`\"in progress\"` — analysis is queued, no result yet.",
						"example": "in progress"
					},
					"pollAfter": {
						"type": "number",
						"description": "Seconds to wait before retrying the identical request.",
						"example": 10
					}
				},
				"required": [
					"code",
					"status",
					"pollAfter"
				]
			},
			"AddressPoisoningSingleRequest": {
				"type": "object",
				"required": [
					"chain_id",
					"address"
				],
				"properties": {
					"chain_id": {
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						],
						"description": "The network chain ID. EVM numeric IDs, or for TRON any of `\"tron\"`, `\"trx\"`, `\"ct_195\"`, or `\"728126428\"`. See [Supported Chains](/api-reference/supported-chains) for current public API network coverage.",
						"example": "56"
					},
					"address": {
						"type": "string",
						"description": "The address to analyze. `0x` hex on EVM chains; base58 (`T…`, 34 characters) on TRON.",
						"example": "0x938915fd4b7c188a211113ed655ae1f18c334146"
					},
					"user_address": {
						"type": "string",
						"description": "Optional. The connected wallet address. When omitted, the mimicry-against-the-user check is skipped.",
						"example": "0x938915fd4b7c188a21ad73ed655ae1f18c334146"
					},
					"token_address": {
						"type": "string",
						"description": "Optional. Token contract to check for impersonation. When omitted, the token-mimicry check is skipped.",
						"example": "0x55d39f326f99059ff775485246999027b3197956"
					}
				},
				"description": "Analyze one target address. HashDit-owned fields use snake_case; Atlas also accepts equivalent camelCase spellings for compatibility."
			},
			"AddressPoisoningBatchAddress": {
				"type": "object",
				"required": [
					"chain_id",
					"address"
				],
				"properties": {
					"chain_id": {
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						],
						"description": "Chain ID for this item. Each address is explicitly chain-scoped.",
						"example": 56
					},
					"address": {
						"type": "string",
						"description": "Address on the specified chain.",
						"example": "0x938915fd4b7c188a211113ed655ae1f18c334146"
					}
				}
			},
			"AddressPoisoningBatchRequest": {
				"type": "object",
				"description": "Analyze address-history targets and token contracts. user_addresses must contain at least one item; target_addresses plus token_addresses must contain at least one item; all three arrays together may contain at most 1000 items.",
				"required": [
					"user_addresses"
				],
				"properties": {
					"user_addresses": {
						"type": "array",
						"minItems": 1,
						"items": {
							"$ref": "#/components/schemas/AddressPoisoningBatchAddress"
						},
						"description": "Connected wallet addresses used for mimicry comparisons."
					},
					"target_addresses": {
						"type": "array",
						"default": [],
						"items": {
							"$ref": "#/components/schemas/AddressPoisoningBatchAddress"
						},
						"description": "Transaction-history addresses to analyze."
					},
					"token_addresses": {
						"type": "array",
						"default": [],
						"items": {
							"$ref": "#/components/schemas/AddressPoisoningBatchAddress"
						},
						"description": "Token contracts to compare with well-known tokens."
					}
				}
			},
			"AddressPoisoningItemError": {
				"type": "object",
				"required": [
					"code",
					"detail"
				],
				"properties": {
					"code": {
						"type": "string",
						"enum": [
							"unsupported_chain",
							"invalid_address"
						]
					},
					"detail": {
						"type": "string"
					}
				}
			},
			"AddressPoisoningBatchTargetResult": {
				"type": "object",
				"required": [
					"chain_id",
					"address"
				],
				"properties": {
					"chain_id": {
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						]
					},
					"address": {
						"type": "string"
					},
					"is_poisoning": {
						"type": "string",
						"enum": [
							"0",
							"1"
						],
						"description": "Aggregate verdict. Compare with the string \"1\"."
					},
					"mimics_user": {
						"type": "string",
						"enum": [
							"0",
							"1"
						],
						"description": "Whether the target visually mimics a user address."
					},
					"mimics_exchange": {
						"type": "string",
						"enum": [
							"0",
							"1"
						],
						"description": "Whether the target visually mimics a known exchange or bridge address."
					},
					"error": {
						"$ref": "#/components/schemas/AddressPoisoningItemError"
					}
				}
			},
			"AddressPoisoningBatchTokenResult": {
				"type": "object",
				"required": [
					"chain_id",
					"address"
				],
				"properties": {
					"chain_id": {
						"oneOf": [
							{
								"type": "integer"
							},
							{
								"type": "string"
							}
						]
					},
					"address": {
						"type": "string"
					},
					"is_poisoning": {
						"type": "string",
						"enum": [
							"0",
							"1"
						],
						"description": "Aggregate verdict. Compare with the string \"1\"."
					},
					"mimics_top_token": {
						"type": "string",
						"enum": [
							"0",
							"1"
						],
						"description": "Whether the contract visually mimics a well-known token on its chain."
					},
					"matched_token": {
						"type": "string",
						"description": "Matched well-known token, or an empty string when none matched."
					},
					"error": {
						"$ref": "#/components/schemas/AddressPoisoningItemError"
					}
				}
			},
			"AddressPoisoningSingleData": {
				"type": "object",
				"required": [
					"target_address",
					"token_address",
					"target_address_input",
					"user_address_input",
					"token_address_input"
				],
				"properties": {
					"target_address": {
						"type": "object",
						"description": "Detection result for the address under `address`. Flag values are the strings `\"0\"` and `\"1\"`, not booleans.",
						"required": [
							"is_poisoning",
							"mimics_user",
							"mimics_exchange"
						],
						"properties": {
							"is_poisoning": {
								"type": "string",
								"description": "The overall verdict for this address, combining HashDit threat intelligence with the mimicry checks below. This is the single field to branch on.",
								"enum": [
									"0",
									"1"
								]
							},
							"mimics_user": {
								"type": "string",
								"description": "The address is confusable with `userAddress` — the classic address-poisoning pattern, where an attacker seeds the victim's transaction history with a lookalike address. `\"0\"` when `userAddress` was not supplied, or when it is identical to `address`.",
								"enum": [
									"0",
									"1"
								]
							},
							"mimics_exchange": {
								"type": "string",
								"description": "The address is confusable with a known exchange or bridge deposit address. Evaluated on every request — `userAddress` is not needed for this check.",
								"enum": [
									"0",
									"1"
								]
							}
						}
					},
					"token_address": {
						"type": "object",
						"description": "Detection result for `tokenAddress`. An empty object `{}` when `tokenAddress` was not supplied — not `null` and not absent. Flag values are the strings `\"0\"` and `\"1\"`, not booleans.",
						"properties": {
							"is_poisoning": {
								"type": "string",
								"description": "The overall verdict for this token, combining HashDit threat intelligence with the impersonation check below.",
								"enum": [
									"0",
									"1"
								]
							},
							"mimics_top_token": {
								"type": "string",
								"description": "The token impersonates a well-known token on that chain — the fake-USDT / fake-WBNB pattern.",
								"enum": [
									"0",
									"1"
								]
							},
							"matched_token": {
								"type": "string",
								"description": "Which token is being impersonated, when `mimics_top_token` is `\"1\"`. Formatted `\"SYMBOL (Name)\"`, e.g. `\"USDT (Tether USD)\"`; falls back to whichever of symbol/name is available. `\"\"` when there is no match."
							}
						}
					},
					"target_address_input": {
						"type": "string",
						"description": "Echo of the `address` you sent, lowercased."
					},
					"user_address_input": {
						"type": "string",
						"description": "Echo of `userAddress`, lowercased. `\"\"` when not supplied."
					},
					"token_address_input": {
						"type": "string",
						"description": "Echo of `tokenAddress`, lowercased. `\"\"` when not supplied."
					}
				}
			},
			"AddressPoisoningBatchData": {
				"type": "object",
				"required": [
					"target_addresses",
					"token_addresses"
				],
				"properties": {
					"target_addresses": {
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/AddressPoisoningBatchTargetResult"
						},
						"description": "Results in target input order. An item-level error does not erase successful siblings."
					},
					"token_addresses": {
						"type": "array",
						"items": {
							"$ref": "#/components/schemas/AddressPoisoningBatchTokenResult"
						},
						"description": "Results in token input order. An item-level error does not erase successful siblings."
					},
					"errors": {
						"type": "array",
						"description": "Optional validation errors for user_addresses entries.",
						"items": {
							"type": "object",
							"properties": {
								"input": {
									"type": "string",
									"enum": [
										"user_addresses"
									]
								},
								"index": {
									"type": "integer"
								},
								"chain_id": {
									"oneOf": [
										{
											"type": "integer"
										},
										{
											"type": "string"
										}
									]
								},
								"address": {
									"type": "string"
								},
								"error": {
									"$ref": "#/components/schemas/AddressPoisoningItemError"
								}
							}
						}
					}
				}
			}
		},
		"securitySchemes": {
			"apiKeyAuth": {
				"type": "apiKey",
				"in": "header",
				"name": "X-API-KEY"
			}
		},
		"responses": {
			"BadRequest": {
				"description": "Bad request — malformed or missing field, unsupported chain, or invalid address. `detail` names the field that was rejected.",
				"content": {
					"application/json": {
						"schema": {
							"$ref": "#/components/schemas/CurrentServiceError"
						},
						"examples": {
							"Invalid request": {
								"summary": "Malformed or missing field",
								"value": {
									"code": "-1",
									"status": "invalid request",
									"detail": "…"
								}
							},
							"Unsupported chain": {
								"summary": "Chain not enabled for this endpoint",
								"value": {
									"code": "-1",
									"status": "unsupported chain",
									"detail": "unsupported chainId: 137"
								}
							},
							"Invalid address": {
								"summary": "Address fails the format check for that chain",
								"value": {
									"code": "-1",
									"status": "invalid address",
									"detail": "…"
								}
							}
						}
					}
				}
			},
			"Unauthorized": {
				"description": "Missing or invalid `X-API-KEY`. This is the response customers see on current-service endpoints.",
				"content": {
					"application/json": {
						"schema": {
							"$ref": "#/components/schemas/MissingAPIKeyErrorResponse"
						},
						"examples": {
							"Missing API key": {
								"summary": "Missing or invalid API key",
								"value": {
									"code": "401",
									"status": "Missing API key",
									"detail": "Missing API key"
								}
							}
						}
					}
				}
			},
			"Forbidden": {
				"description": "Missing or invalid `X-API-KEY`.",
				"content": {
					"application/json": {
						"schema": {
							"$ref": "#/components/schemas/CurrentServiceError"
						},
						"examples": {
							"Invalid API key": {
								"summary": "Invalid API key",
								"value": {
									"code": "403",
									"status": "error",
									"detail": "Invalid API key"
								}
							}
						}
					}
				}
			},
			"UnprocessableEntity": {
				"description": "Schema validation failed. `detail` names the failing field path.",
				"content": {
					"application/json": {
						"schema": {
							"$ref": "#/components/schemas/CurrentServiceError"
						},
						"examples": {
							"Field required": {
								"summary": "Schema validation",
								"value": {
									"code": "-1",
									"status": "invalid request",
									"detail": "chainId: field required"
								}
							},
							"Field path": {
								"summary": "detail names the failing field path",
								"value": {
									"code": "-1",
									"status": "invalid request",
									"detail": "evm_transactions[0].from"
								}
							}
						}
					}
				}
			},
			"RateLimitExceeded": {
				"description": "Rate limit exceeded",
				"content": {
					"application/json": {
						"schema": {
							"$ref": "#/components/schemas/RateLimitExceededErrorResponse"
						},
						"examples": {
							"Rate limit exceeded": {
								"summary": "Rate limit exceeded error",
								"value": {
									"code": "429",
									"status": "error",
									"message": "Rate limit exceeded"
								}
							}
						}
					}
				}
			},
			"InternalServerError": {
				"description": "Server-side failure",
				"content": {
					"application/json": {
						"schema": {
							"$ref": "#/components/schemas/CurrentServiceError"
						},
						"examples": {
							"Internal server error": {
								"summary": "Internal server error",
								"value": {
									"code": "-2",
									"status": "internal server error",
									"detail": "internal server error"
								}
							}
						}
					}
				}
			},
			"BadGateway": {
				"description": "Upstream analysis service failed. Simulation endpoints only.",
				"content": {
					"application/json": {
						"schema": {
							"$ref": "#/components/schemas/CurrentServiceError"
						},
						"examples": {
							"Bad gateway": {
								"summary": "Upstream failure",
								"value": {
									"code": "-2",
									"status": "bad gateway",
									"detail": "…"
								}
							}
						}
					}
				}
			},
			"GatewayTimeout": {
				"description": "Upstream timed out. Simulation endpoints only.",
				"content": {
					"application/json": {
						"schema": {
							"$ref": "#/components/schemas/CurrentServiceError"
						},
						"examples": {
							"Gateway timeout": {
								"summary": "Upstream timeout",
								"value": {
									"code": "-2",
									"status": "gateway timeout",
									"detail": "upstream service timed out"
								}
							}
						}
					}
				}
			},
			"LegacyForbidden": {
				"description": "Unauthorized — invalid API key (legacy backend).",
				"content": {
					"application/json": {
						"schema": {
							"$ref": "#/components/schemas/InvalidAPIKeyErrorResponse"
						},
						"examples": {
							"Invalid API key": {
								"summary": "Invalid API key error",
							"value": {
								"code": "403",
								"status": "error",
								"message": "invalid apiKey: apiKey invalid"
								}
							}
						}
					}
				}
			}
		}
	}
}
