Skip to main content
POST
/
api
/
v1
/
risk
/
check-transaction
Check transaction risk
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 Index

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.

Body

application/json

Pre-signature transaction risk-check request.

chainId
integer
required

Chain ID.

Example:

8453

from
string
required

Sender address.

Example:

"0xabc1230000000000000000000000000000000000"

to
string
required

Recipient or contract address.

Example:

"0xrouter00000000000000000000000000000000000"

value
string
required

Native token value attached to the transaction.

Example:

"0"

data
string

Transaction calldata when available.

Example:

"0xa9059cbb"

origin
string

Request origin or DApp domain.

Example:

"https://app.uniswap.org"

Response

200 - application/json

Transaction risk response

Standard response envelope.

code
integer
required

Business status code. 0 means success.

Example:

0

msg
string
required

Human-readable message.

Example:

"ok"

data
object

Transaction risk-check result.