cURL
curl --request POST \ --url https://api.example.com/api/v1/risk/check-transaction \ --header 'Content-Type: application/json' \ --data ' { "chainId": 8453, "from": "0xabc1230000000000000000000000000000000000", "to": "0xrouter00000000000000000000000000000000000", "value": "0", "data": "0x095ea7b3000000000000000000000000router000000000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff", "origin": "https://app.uniswap.org" } '
{ "code": 0, "msg": "ok", "data": { "riskLevel": "medium", "warnings": [ { "type": "approval_unlimited", "message": "Unlimited approval detected" } ], "decoded": { "method": "approve", "token": "USDC", "spender": "0xrouter00000000000000000000000000000000000" } } }
对待签名交易执行预风控检查,用于授权、合约交互和可疑转账提醒。
Documentation IndexFetch the complete documentation index at: https://docs.nexfi.robert.dpdns.org/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.nexfi.robert.dpdns.org/llms.txt
Use this file to discover all available pages before exploring further.
待签名交易风控请求。
链 ID。
8453
发起地址。
"0xabc1230000000000000000000000000000000000"
目标地址或合约地址。
"0xrouter00000000000000000000000000000000000"
交易附带的原生币金额。
"0"
交易 calldata。
"0xa9059cbb"
请求来源域名。
"https://app.uniswap.org"
成功返回交易风险
统一响应包裹结构。
业务状态码,0 表示成功。
0
可读返回消息。
"ok"
交易风控结果。
Show child attributes