youraitools-api / tree / public/aiax/sections/signcheck.json · raw (this view has old GitHub links rewritten for the mirror; raw is byte-exact)
{
 "aiax_version": "0.1",
 "section_id": "signcheck",
 "purpose": "SignCheck: Pre-sign safety check for agent wallets: send a transaction, EIP-712 typed data (Permit, Permit2, EIP-3009, Seaport), an EIP-7702 authorization, or an x402 402 + payment payload. Returns SAFE/CAUTION/DANGER, a plain-English summary and every risk flag (unlimited or EOA approvals, setApprovalForAll, fake USDC domains, x402 overpay, OFAC SDN) plus on-chain facts and eth_call simulation.",
 "inputs": {
  "properties": {
   "chain": {
    "type": "string",
    "description": "base (default), ethereum, base-sepolia or a chain id"
   },
   "tx": {
    "type": "object",
    "description": "Transaction to send: {\"to\":\"0x…\",\"data\":\"0x…\",\"value\":\"0\",\"from\":\"0x…\"} (from enables simulation)"
   },
   "typed_data": {
    "type": "object",
    "description": "EIP-712 request {domain, types, primaryType, message} as passed to eth_signTypedData_v4"
   },
   "authorization": {
    "type": "object",
    "description": "EIP-7702 authorization {address (delegate contract), chainId, nonce}"
   },
   "payment_required": {
    "type": [
     "object",
     "string"
    ],
    "description": "x402 402 terms: the PAYMENT-REQUIRED header (base64) or JSON {accepts:[…]}"
   },
   "payment_payload": {
    "type": [
     "object",
     "string"
    ],
    "description": "x402 payment you are about to send: PAYMENT-SIGNATURE / X-PAYMENT (base64) or JSON"
   }
  },
  "type": "object"
 },
 "outputs": {
  "type": "object",
  "properties": {
   "tier": {
    "type": "string"
   },
   "verdict": {
    "type": "string"
   },
   "risk_score": {
    "type": "integer"
   },
   "kind": {
    "type": "string"
   },
   "action": {
    "type": "string"
   },
   "summary": {
    "type": "string"
   },
   "chain": {
    "type": "object",
    "properties": {
     "id": {
      "type": "integer"
     },
     "name": {
      "type": "string"
     }
    }
   },
   "flags": {
    "type": "array",
    "items": {
     "type": "object",
     "properties": {
      "code": {
       "type": "string"
      },
      "severity": {
       "type": "string"
      },
      "message": {
       "type": "string"
      }
     }
    }
   },
   "counterparties": {
    "type": "array",
    "items": {
     "type": "object",
     "properties": {
      "address": {
       "type": "string"
      },
      "roles": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "label": {},
      "type": {
       "type": "string"
      }
     }
    }
   },
   "onchain": {
    "type": "object",
    "properties": {
     "available": {
      "type": "boolean"
     },
     "chain": {
      "type": "string"
     },
     "block": {
      "type": "integer"
     },
     "tokens": {
      "type": "array",
      "items": {
       "type": "object",
       "properties": {
        "address": {
         "type": "string"
        },
        "symbol": {
         "type": "string"
        },
        "decimals": {
         "type": "integer"
        },
        "name": {
         "type": "string"
        }
       }
      }
     },
     "simulation": {
      "type": "object",
      "properties": {
       "success": {
        "type": "boolean"
       }
      }
     }
    }
   },
   "sanctions": {
    "type": "object",
    "properties": {
     "list": {
      "type": "string"
     },
     "list_date": {
      "type": "string"
     },
     "evm_addresses": {
      "type": "integer"
     },
     "matches": {
      "type": "integer"
     }
    }
   },
   "engine": {
    "type": "string"
   }
  }
 },
 "pricing": {
  "model": "per_call",
  "amount": "0.015",
  "currency": "USDC",
  "rail": "x402"
 },
 "examples": [
  {
   "description": "POST /signcheck/v1/check, paid over x402 (USDC on Base); an unpaid call answers 402 with the terms.",
   "request": {
    "method": "POST",
    "url": "https://api.youraitools.co/signcheck/v1/check",
    "body": {
     "chain": "base",
     "tx": {
      "to": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "from": "0xE35E10429048b6F3409b0307E65e4797477Ed144",
      "value": "0",
      "data": "0x095ea7b30000000000000000000000003c1a1e01e790cd326495631b3b38bd7068f08d6fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
     }
    }
   },
   "response": {
    "tier": "full",
    "verdict": "DANGER",
    "risk_score": 75,
    "kind": "transaction",
    "action": "erc20_approve",
    "summary": "Approve 0x3c1A…8d6F to spend UNLIMITED USDC from your wallet",
    "chain": {
     "id": 8453,
     "name": "Base"
    },
    "flags": [
     {
      "code": "SPENDER_IS_EOA",
      "severity": "critical",
      "message": "The token allowance goes to 0x3c1A…8d6F, a plain wallet (no contract code). Legitimate apps approve contracts; approvals to wallets are how drainer kits steal funds."
     },
     {
      "code": "UNLIMITED_APPROVAL",
      "severity": "medium",
      "message": "Grants an UNLIMITED allowance to 0x3c1A…8d6F."
     }
    ],
    "counterparties": [
     {
      "address": "0x3c1A1E01e790Cd326495631B3b38Bd7068F08d6F",
      "roles": [
       "spender"
      ],
      "label": null,
      "type": "eoa"
     }
    ],
    "onchain": {
     "available": true,
     "chain": "Base",
     "block": 52942270,
     "tokens": [
      {
       "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
       "symbol": "USDC",
       "decimals": 6,
       "name": "USD Coin"
      }
     ],
     "simulation": {
      "success": true
     }
    },
    "sanctions": {
     "list": "US Treasury OFAC Specially Designated Nationals (SDN) list",
     "list_date": "2026-10-21",
     "evm_addresses": 124,
     "matches": 0
    },
    "engine": "signcheck-0.1"
   }
  }
 ],
 "pact_mandate_template": null,
 "extensions": {
  "youraitools": {
   "endpoint": "https://api.youraitools.co/signcheck/v1/check",
   "network": "eip155:8453",
   "x402_versions": [
    2,
    1
   ],
   "mcp": "https://api.youraitools.co/signcheck/mcp",
   "openapi": "https://api.youraitools.co/signcheck/openapi.json"
  }
 }
}

agentgate-source: code mirror on Cloudflare Pages. All repos