{
  "protocol": "a2a",
  "protocolVersion": "1.0",
  "protocolVersions": [
    "1.0",
    "0.3.0"
  ],
  "transport": "JSONRPC",
  "endpoint": "https://red-shape-1b3b.daviddelmoral79.workers.dev/a2a",
  "agentCardUrl": "https://red-shape-1b3b.daviddelmoral79.workers.dev/.well-known/agent-card.json",
  "methods": [
    "GetExtendedAgentCard",
    "SendMessage",
    "agent/authenticatedExtendedCard",
    "agent/getCard",
    "message/send",
    "tasks/send"
  ],
  "extensions": [
    "https://github.com/google-a2a/a2a-x402/v0.1"
  ],
  "x402Settlement": {
    "version": 2,
    "extensionUri": "https://github.com/google-a2a/a2a-x402/v0.1",
    "network": "eip155:8453",
    "supportedNetworks": [
      "eip155:1",
      "eip155:10",
      "eip155:137",
      "eip155:8453",
      "eip155:42161"
    ],
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "payTo": "0xAA99e12320a3db0116ef56D2e19F70f6796Bad0f",
    "baseBuilderCode": "bc_i26d7owr",
    "manifestUrl": "https://red-shape-1b3b.daviddelmoral79.workers.dev/.well-known/x402",
    "rescuePolicy": {
      "preFlightSlaRate": "0.15%",
      "safeHarborRescueBounty": "5%-10% (90%-95% to ownerTreasury)",
      "antiBypassSeal": "Active on Services 2-7 for CRITICAL/HIGH remediation & exploit coordinates",
      "fastPingTier": "Flat $0.01 USDC binary SAFE/DANGER only"
    }
  },
  "skills": [
    {
      "id": "fastPingAddressSafety",
      "name": "fastPingAddressSafety",
      "description": "Ultra-Fast Binary Address Safety Ping ($0.01 USDC Flat - Boolean SAFE/DANGER Only)",
      "tags": [
        "security",
        "base",
        "firewall",
        "fast-ping",
        "x402"
      ],
      "examples": [
        "{\"address\":\"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",\"chainId\":8453}"
      ],
      "inputModes": [
        "application/json",
        "text/plain"
      ],
      "outputModes": [
        "application/json"
      ],
      "endpoint": "https://red-shape-1b3b.daviddelmoral79.workers.dev/api/v1/fast-ping",
      "inputSchema": {
        "type": "object",
        "properties": {
          "address": {
            "type": "string",
            "description": "42-character EVM contract, token, or spender address (0x...) across Base, Arbitrum, Optimism, Polygon, or Ethereum."
          },
          "chainId": {
            "type": "integer",
            "enum": [
              8453,
              42161,
              10,
              137,
              1
            ],
            "default": 8453,
            "description": "Target EVM chain ID: 8453 (Base), 42161 (Arbitrum), 10 (Optimism), 137 (Polygon), or 1 (Ethereum). Unsupported values fall back to 8453."
          }
        },
        "required": [
          "address"
        ]
      },
      "payment": {
        "protocol": "x402",
        "version": 2,
        "network": "eip155:8453",
        "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "amountUsd": "0.01",
        "amount": "10000",
        "maxAmountRequired": "10000",
        "essentialTierUsd": null,
        "proportionalRateOverCapital": "Flat $0.01 Binary SAFE/DANGER Only (No Forensics)",
        "roiMultiplier": "50000x (Instant binary SAFE/DANGER gate for bots with <=$0.05 auto-pay limits)",
        "baseBuilderCode": "bc_i26d7owr",
        "pricingPolicy": "Hybrid M2M (Anti-Bypass Services 2-7): Low Base Micro-Floor (<$200 USD) + 0.15% Pre-Flight SLA / 5%-10% Safe-Harbor Rescue Bounty on Saved Capital, auto-capped at X-Agent-Budget",
        "payTo": "0xAA99e12320a3db0116ef56D2e19F70f6796Bad0f"
      }
    },
    {
      "id": "auditSolidityContract",
      "name": "auditSolidityContract",
      "description": "Deterministic 24-Vector Solidity Audit & Safe-Harbor Guard ($0.85 Floor / $0.35 Signal + 0.15% SLA / 5%-10% Rescue, Anti-Bypass)",
      "tags": [
        "security",
        "solidity",
        "smart-contract",
        "audit",
        "swc"
      ],
      "examples": [
        "{\"code\":\"pragma solidity ^0.8.20; contract Vault { mapping(address => uint256) public bal; function withdraw(uint256 a) external { (bool ok,) = msg.sender.call{value: a}(\\\"\\\"); require(ok); bal[msg.sender] -= a; } }\",\"contractName\":\"Vault.sol\"}"
      ],
      "inputModes": [
        "application/json",
        "text/plain"
      ],
      "outputModes": [
        "application/json"
      ],
      "endpoint": "https://red-shape-1b3b.daviddelmoral79.workers.dev/api/v1/audit-solidity",
      "inputSchema": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "description": "Raw Solidity (.sol) smart contract source code to audit across 24 SWC/DeFi rules (non-empty string required)."
          },
          "chainId": {
            "type": "integer",
            "enum": [
              8453,
              42161,
              10,
              137,
              1
            ],
            "default": 8453,
            "description": "EVM Chain ID used only when contractAddress is supplied for live TVL verification (8453 Base, 42161 Arbitrum, 10 Optimism, 137 Polygon, 1 Ethereum; unknown falls back to 8453)."
          },
          "contractName": {
            "type": "string",
            "default": "Contract.sol",
            "description": "Optional contract identifier or filename echoed in the report."
          },
          "contractAddress": {
            "type": "string",
            "description": "Optional deployed EVM contract address (0x...) on chainId to verify live TVL via RPC and generate unsigned Safe-Harbor rescue calldata."
          },
          "ownerTreasury": {
            "type": "string",
            "description": "Optional protocol owner/multisig recipient (0x...) designated to receive 90%-95% of rescued capital in generated unsigned calldata."
          },
          "tier": {
            "type": "string",
            "enum": [
              "FULL",
              "ESSENTIAL"
            ],
            "default": "FULL",
            "description": "Billing & output depth: FULL ($0.85 USDC) includes findings and Safe-Harbor calldata (subject to Anti-Bypass sealing on CRITICAL/HIGH until proportional settlement); ESSENTIAL ($0.35 USDC) returns score, grade, status, and severity counts only."
          }
        },
        "required": [
          "code"
        ]
      },
      "payment": {
        "protocol": "x402",
        "version": 2,
        "network": "eip155:8453",
        "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "amountUsd": "0.85",
        "amount": "850000",
        "maxAmountRequired": "850000",
        "essentialTierUsd": "0.35",
        "proportionalRateOverCapital": "+0.15% Pre-Flight SLA | 5%-10% Rescate Safe-Harbor sobre vulnerabilidad/TVL salvado (Anti-Bypass)",
        "roiMultiplier": "1500x (Prevents $1,000+ exploit for $0.85 USDC; includes Atomic EIP-5792 / Sequential EOA Safe-Harbor rescue split on live EVM contracts)",
        "baseBuilderCode": "bc_i26d7owr",
        "pricingPolicy": "Hybrid M2M (Anti-Bypass Services 2-7): Low Base Micro-Floor (<$200 USD) + 0.15% Pre-Flight SLA / 5%-10% Safe-Harbor Rescue Bounty on Saved Capital, auto-capped at X-Agent-Budget",
        "payTo": "0xAA99e12320a3db0116ef56D2e19F70f6796Bad0f"
      }
    },
    {
      "id": "inspectEvmTransactionFirewall",
      "name": "inspectEvmTransactionFirewall",
      "description": "Pre-Flight EVM Firewall & Live 5-EVM RPC Forensics ($0.10 Floor + 0.15% Pre-Flight / 5%-10% Safe-Harbor Rescue, Anti-Bypass)",
      "tags": [
        "security",
        "firewall",
        "anti-drainer",
        "eip1967",
        "base",
        "x402"
      ],
      "examples": [
        "{\"chainId\":8453,\"to\":\"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",\"value\":\"0\",\"data\":\"0x095ea7b3000000000000000000000000deadbeef00000000000000000000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff\"}"
      ],
      "inputModes": [
        "application/json",
        "text/plain"
      ],
      "outputModes": [
        "application/json"
      ],
      "endpoint": "https://red-shape-1b3b.daviddelmoral79.workers.dev/api/v1/tx-firewall",
      "inputSchema": {
        "type": "object",
        "properties": {
          "to": {
            "type": "string",
            "description": "Target EVM contract, token, or recipient 42-character hex address (0x...)."
          },
          "data": {
            "type": "string",
            "description": "Hexadecimal transaction calldata (0x...); pass '0x' for a plain native ETH transfer."
          },
          "from": {
            "type": "string",
            "description": "Optional sender wallet address (0x...) also matched against active ZK-EC whale exposure dossiers."
          },
          "value": {
            "type": "string",
            "default": "0",
            "description": "Optional native ETH value in wei as a decimal string."
          },
          "chainId": {
            "type": "integer",
            "enum": [
              8453,
              42161,
              10,
              137,
              1
            ],
            "default": 8453,
            "description": "Target EVM chain ID for live RPC bytecode/EIP-1967 inspection (8453 Base, 42161 Arbitrum, 10 Optimism, 137 Polygon, 1 Ethereum; unknown falls back to 8453)."
          },
          "ticketId": {
            "type": "string",
            "description": "Optional ZK-EC blinded exposure ticket ID (TICKET-8453-...) to unseal full remediation coordinates upon x402 rescue settlement."
          },
          "capitalAtRiskUsd": {
            "type": "number",
            "description": "Optional protected capital value in USD for +0.15% Pre-Flight SLA / Safe-Harbor rescue quoting."
          }
        },
        "required": [
          "to",
          "data"
        ]
      },
      "payment": {
        "protocol": "x402",
        "version": 2,
        "network": "eip155:8453",
        "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "amountUsd": "0.10",
        "amount": "100000",
        "maxAmountRequired": "100000",
        "essentialTierUsd": null,
        "proportionalRateOverCapital": "+0.15% Pre-Flight | 5%-10% Rescate Safe-Harbor sobre capital salvado (Anti-Bypass)",
        "roiMultiplier": "10000x (Blocks wallet drainers & infinite approvals before signing for $0.10 USDC)",
        "baseBuilderCode": "bc_i26d7owr",
        "pricingPolicy": "Hybrid M2M (Anti-Bypass Services 2-7): Low Base Micro-Floor (<$200 USD) + 0.15% Pre-Flight SLA / 5%-10% Safe-Harbor Rescue Bounty on Saved Capital, auto-capped at X-Agent-Budget",
        "payTo": "0xAA99e12320a3db0116ef56D2e19F70f6796Bad0f"
      }
    },
    {
      "id": "computeDefiSlippageAndLiquidation",
      "name": "computeDefiSlippageAndLiquidation",
      "description": "Exact BigInt AMM Slippage, MEV Sandwich & Liquidation Guard ($0.15 Floor / $0.10 Signal + 0.15% Swap / 5%-10% Rescue, Anti-Bypass)",
      "tags": [
        "defi",
        "amm",
        "mev",
        "slippage",
        "bigint",
        "base"
      ],
      "examples": [
        "{\"amm\":{\"reserveIn\":\"500000000000000000000\",\"reserveOut\":\"1250000000000\",\"amountIn\":\"25000000000000000000\",\"feeBps\":30,\"userSlippageBps\":100},\"leverage\":{\"entryPrice\":\"2500.00\",\"leverage\":\"10\",\"side\":\"LONG\",\"maintenanceMarginBps\":50}}"
      ],
      "inputModes": [
        "application/json",
        "text/plain"
      ],
      "outputModes": [
        "application/json"
      ],
      "endpoint": "https://red-shape-1b3b.daviddelmoral79.workers.dev/api/v1/defi-math-guard",
      "inputSchema": {
        "type": "object",
        "properties": {
          "amm": {
            "type": "object",
            "description": "Optional constant-product AMM swap parameters (reserveIn, reserveOut, amountIn required when included; evaluated independently of leverage; supply amm, leverage, or both).",
            "properties": {
              "reserveIn": {
                "type": "string",
                "description": "Pool input token reserve in atomic base units as a positive integer string (> 0)."
              },
              "reserveOut": {
                "type": "string",
                "description": "Pool output token reserve in atomic base units as a positive integer string (> 0)."
              },
              "amountIn": {
                "type": "string",
                "description": "Proposed swap input amount in atomic base units as a positive integer string (> 0)."
              },
              "feeBps": {
                "type": "integer",
                "default": 30,
                "minimum": 0,
                "maximum": 9999,
                "description": "Pool fee in basis points (0-9999; 30 = 0.30%)."
              },
              "userSlippageBps": {
                "type": "integer",
                "default": 100,
                "minimum": 0,
                "maximum": 9999,
                "description": "Proposed slippage tolerance in basis points (0-9999; 100 = 1.00%)."
              },
              "estimatedSandwichGasInTokenIn": {
                "type": "string",
                "default": "0",
                "description": "Optional attacker gas cost in input token atomic units (>= 0) used to filter unprofitable sandwich attacks."
              }
            },
            "required": [
              "reserveIn",
              "reserveOut",
              "amountIn"
            ]
          },
          "leverage": {
            "type": "object",
            "description": "Optional perpetual/margin position parameters for exact liquidation price and initial health factor (entryPrice required when included; evaluated independently of amm).",
            "properties": {
              "entryPrice": {
                "type": "string",
                "description": "Position entry price as a positive decimal string with up to 18 decimals (e.g., '2500.00')."
              },
              "leverage": {
                "type": "string",
                "default": "1",
                "description": "Leverage multiplier as a decimal string between '1' and '1000' (e.g., '10')."
              },
              "side": {
                "type": "string",
                "enum": [
                  "LONG",
                  "SHORT"
                ],
                "default": "LONG",
                "description": "Position direction: LONG or SHORT."
              },
              "maintenanceMarginBps": {
                "type": "integer",
                "default": 50,
                "minimum": 0,
                "maximum": 9999,
                "description": "Maintenance margin threshold in basis points (0-9999; 50 = 0.50%)."
              },
              "feeBufferBps": {
                "type": "integer",
                "default": 10,
                "minimum": 0,
                "maximum": 9999,
                "description": "Fee buffer in basis points deducted from initial margin (0-9999; 10 = 0.10%)."
              }
            },
            "required": [
              "entryPrice"
            ]
          },
          "tier": {
            "type": "string",
            "enum": [
              "FULL",
              "ESSENTIAL"
            ],
            "default": "FULL",
            "description": "Billing & output depth: FULL ($0.15 USDC) returns exact amm and leverage structures; ESSENTIAL ($0.10 USDC) returns top-level action, signal, and savedCapitalEstimateUsd only."
          }
        }
      },
      "payment": {
        "protocol": "x402",
        "version": 2,
        "network": "eip155:8453",
        "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "amountUsd": "0.15",
        "amount": "150000",
        "maxAmountRequired": "150000",
        "essentialTierUsd": "0.10",
        "proportionalRateOverCapital": "+0.15% Pre-Flight Swap | 5%-10% Rescate Safe-Harbor sobre liquidez salvada (Anti-Bypass)",
        "roiMultiplier": "500x (Saves 1%-5% MEV sandwich extraction on every DeFi swap)",
        "baseBuilderCode": "bc_i26d7owr",
        "pricingPolicy": "Hybrid M2M (Anti-Bypass Services 2-7): Low Base Micro-Floor (<$200 USD) + 0.15% Pre-Flight SLA / 5%-10% Safe-Harbor Rescue Bounty on Saved Capital, auto-capped at X-Agent-Budget",
        "payTo": "0xAA99e12320a3db0116ef56D2e19F70f6796Bad0f"
      }
    },
    {
      "id": "scanTokenRugpullAndHoneypot",
      "name": "scanTokenRugpullAndHoneypot",
      "description": "5-EVM Token Honeypot & Bytecode/Proxy Forensics ($0.50 Floor / $0.25 Signal + 0.15% Position / 5%-10% Rescue, Anti-Bypass)",
      "tags": [
        "security",
        "honeypot",
        "erc20",
        "rugpull",
        "base",
        "x402"
      ],
      "examples": [
        "{\"tokenAddress\":\"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\",\"chainId\":8453}"
      ],
      "inputModes": [
        "application/json",
        "text/plain"
      ],
      "outputModes": [
        "application/json"
      ],
      "endpoint": "https://red-shape-1b3b.daviddelmoral79.workers.dev/api/v1/token-rug-scanner",
      "inputSchema": {
        "type": "object",
        "properties": {
          "tokenAddress": {
            "type": "string",
            "description": "Deployed 42-char EVM ERC-20 contract address (0x...) inspected via live RPC bytecode & proxy slots (no Solidity source required). Provide tokenAddress, code, or both."
          },
          "chainId": {
            "type": "integer",
            "enum": [
              8453,
              42161,
              10,
              137,
              1
            ],
            "default": 8453,
            "description": "EVM Chain ID for RPC lookup when tokenAddress is supplied (8453 Base, 42161 Arbitrum, 10 Optimism, 137 Polygon, 1 Ethereum; unknown falls back to 8453)."
          },
          "code": {
            "type": "string",
            "description": "Optional Solidity (.sol) source code for pre-deployment 14-rule rugpull AST scan or hybrid source + bytecode analysis."
          },
          "tokenName": {
            "type": "string",
            "description": "Optional token ticker or label echoed in the report."
          },
          "tier": {
            "type": "string",
            "enum": [
              "FULL",
              "ESSENTIAL"
            ],
            "default": "FULL",
            "description": "Billing & output depth: FULL ($0.50 USDC) returns sellSimulation, liveOnChainForensics, risk pillars, and forensicEvidence; ESSENTIAL ($0.25 USDC) returns verdict, canSell, score, and action scalars only."
          }
        }
      },
      "payment": {
        "protocol": "x402",
        "version": 2,
        "network": "eip155:8453",
        "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "amountUsd": "0.50",
        "amount": "500000",
        "maxAmountRequired": "500000",
        "essentialTierUsd": "0.25",
        "proportionalRateOverCapital": "+0.15% Pre-Flight Posición | 5%-10% Rescate Safe-Harbor sobre liquidez salvada (Anti-Bypass)",
        "roiMultiplier": "2000x (Prevents buying unsellable 99%-tax honeypots for $0.50 USDC)",
        "baseBuilderCode": "bc_i26d7owr",
        "pricingPolicy": "Hybrid M2M (Anti-Bypass Services 2-7): Low Base Micro-Floor (<$200 USD) + 0.15% Pre-Flight SLA / 5%-10% Safe-Harbor Rescue Bounty on Saved Capital, auto-capped at X-Agent-Budget",
        "payTo": "0xAA99e12320a3db0116ef56D2e19F70f6796Bad0f"
      }
    },
    {
      "id": "generateMultiContractProtocolDossier",
      "name": "generateMultiContractProtocolDossier",
      "description": "Multi-Contract DeFi Protocol Dossier & Invariant Engine ($12.00 Floor / $3.50 Signal + 0.15% SLA / 5%-10% Rescue, Anti-Bypass)",
      "tags": [
        "security",
        "defi",
        "audit",
        "erc4626",
        "reentrancy"
      ],
      "examples": [
        "{\"protocolName\":\"AegisYield\",\"tvlTargetUsd\":2000000,\"contracts\":[{\"name\":\"AegisVault.sol\",\"code\":\"pragma solidity ^0.8.20; contract AegisVault { function totalAssets() public view returns (uint256) { return 1000; } function withdraw(uint256 a) external { (bool s,) = msg.sender.call{value: a}(\\\"\\\"); require(s); } }\"}]}"
      ],
      "inputModes": [
        "application/json",
        "text/plain"
      ],
      "outputModes": [
        "application/json"
      ],
      "endpoint": "https://red-shape-1b3b.daviddelmoral79.workers.dev/api/v1/protocol-dossier",
      "inputSchema": {
        "type": "object",
        "properties": {
          "protocolName": {
            "type": "string",
            "default": "DeFi Protocol",
            "description": "DeFi protocol or project name echoed in executiveSummary."
          },
          "tvlTargetUsd": {
            "type": "number",
            "default": 1000000,
            "minimum": 0,
            "description": "Target or declared TVL in USD used for bug bounty reward calibration when live RPC TVL is absent or lower."
          },
          "chainId": {
            "type": "integer",
            "enum": [
              8453,
              42161,
              10,
              137,
              1
            ],
            "default": 8453,
            "description": "EVM Chain ID used when optional contractAddress is supplied for live RPC liquidity lookup (8453 Base, 42161 Arbitrum, 10 Optimism, 137 Polygon, 1 Ethereum; unknown falls back to 8453)."
          },
          "contractAddress": {
            "type": "string",
            "description": "Optional deployed EVM vault/pool address (0x...) on chainId for live RPC TVL verification and unsigned Safe-Harbor rescue bundle generation."
          },
          "ownerTreasury": {
            "type": "string",
            "description": "Optional protocol multisig/treasury recipient (0x...) designated to receive 90%-95% of rescued funds in unsigned Safe-Harbor calldata."
          },
          "contracts": {
            "type": "array",
            "minItems": 1,
            "maxItems": 20,
            "description": "Non-empty array of Solidity contracts belonging to the protocol (1 to 20 {name, code} objects; additional items beyond 20 are ignored).",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "description": "Contract filename or identifier (e.g., AegisVault.sol)."
                },
                "code": {
                  "type": "string",
                  "description": "Non-empty Solidity (.sol) source code for this contract."
                }
              },
              "required": [
                "name",
                "code"
              ]
            }
          },
          "tier": {
            "type": "string",
            "enum": [
              "FULL",
              "ESSENTIAL"
            ],
            "default": "FULL",
            "description": "Billing & output depth: FULL ($12.00 USDC) returns callGraphEdges, per-contract findings, invariants, and Safe-Harbor rescue calldata (subject to Anti-Bypass sealing on CRITICAL/HIGH until proportional settlement); ESSENTIAL ($3.50 USDC) returns readiness score, grade, status, and severity counts only."
          }
        },
        "required": [
          "contracts"
        ]
      },
      "payment": {
        "protocol": "x402",
        "version": 2,
        "network": "eip155:8453",
        "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "amountUsd": "12.00",
        "amount": "12000000",
        "maxAmountRequired": "12000000",
        "essentialTierUsd": "3.50",
        "proportionalRateOverCapital": "+0.15% Pre-Flight SLA | 5%-10% Rescate Safe-Harbor sobre TVL salvado (Anti-Bypass)",
        "roiMultiplier": "1000x (Replaces $15,000 manual pre-audit review across 20 contracts + Live 5-EVM Safe-Harbor Rescue)",
        "baseBuilderCode": "bc_i26d7owr",
        "pricingPolicy": "Hybrid M2M (Anti-Bypass Services 2-7): Low Base Micro-Floor (<$200 USD) + 0.15% Pre-Flight SLA / 5%-10% Safe-Harbor Rescue Bounty on Saved Capital, auto-capped at X-Agent-Budget",
        "payTo": "0xAA99e12320a3db0116ef56D2e19F70f6796Bad0f"
      }
    },
    {
      "id": "simulateDeepExploitAndWhitehatBounty",
      "name": "simulateDeepExploitAndWhitehatBounty",
      "description": "Institutional Flash-Loan Simulation & Atomic Safe-Harbor Rescue ($45.00 Floor / $9.50 Triage + 5%-10% Rescue Split, Anti-Bypass)",
      "tags": [
        "security",
        "flashloan",
        "whitehat",
        "safe-harbor",
        "bounty"
      ],
      "examples": [
        "{\"protocolName\":\"BaseLendingPool\",\"poolAddress\":\"0x420DD381b31aEf6683db6B902084cB0FFECe40Da\",\"tvlUsd\":250000}"
      ],
      "inputModes": [
        "application/json",
        "text/plain"
      ],
      "outputModes": [
        "application/json"
      ],
      "endpoint": "https://red-shape-1b3b.daviddelmoral79.workers.dev/api/v1/deep-exploit-bounty",
      "inputSchema": {
        "type": "object",
        "properties": {
          "protocolName": {
            "type": "string",
            "description": "Target protocol or pool identifier (non-empty string required)."
          },
          "poolAddress": {
            "type": "string",
            "default": "0x420DD381b31aEf6683db6B902084cB0FFECe40Da",
            "description": "Target 42-char EVM pool or vault contract address (0x...) inspected via live RPC on chainId."
          },
          "chainId": {
            "type": "integer",
            "enum": [
              8453,
              42161,
              10,
              137,
              1
            ],
            "default": 8453,
            "description": "Target EVM chain ID for live RPC bytecode and TVL verification (8453 Base, 42161 Arbitrum, 10 Optimism, 137 Polygon, 1 Ethereum; unknown falls back to 8453)."
          },
          "ownerTreasury": {
            "type": "string",
            "description": "Optional protocol owner/multisig recipient (0x...) receiving 90%-95% of assets in the generated unsigned Safe-Harbor calldata."
          },
          "tvlUsd": {
            "type": "number",
            "default": 250000,
            "minimum": 0,
            "description": "Declared pool TVL in USD; automatically overridden upward if live on-chain RPC TVL exceeds it."
          },
          "code": {
            "type": "string",
            "description": "Optional Solidity (.sol) contract source code to include static exploit, honeypot, and slot0 manipulation analysis."
          },
          "tier": {
            "type": "string",
            "enum": [
              "FULL",
              "ESSENTIAL"
            ],
            "default": "FULL",
            "description": "Billing & output depth: FULL ($45.00 USDC) returns flashLoanSimulation, liveOnChainPoolForensics, and unsigned Safe-Harbor rescue bundle; ESSENTIAL ($9.50 USDC) returns vulnerabilitySeverity, exploitImmunityScore, and summary counts only."
          }
        },
        "required": [
          "protocolName"
        ]
      },
      "payment": {
        "protocol": "x402",
        "version": 2,
        "network": "eip155:8453",
        "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
        "amountUsd": "45.00",
        "amount": "45000000",
        "maxAmountRequired": "45000000",
        "essentialTierUsd": "9.50",
        "proportionalRateOverCapital": "5%-10% Atomic EIP-5792 / Sequential EOA Safe-Harbor Rescue Split on Rescued Capital (Anti-Bypass)",
        "roiMultiplier": "500x+ (Live 5-EVM RPC TVL verification + Atomic EIP-5792 / Sequential EOA Safe-Harbor Rescue Split: 90%-95% to Owner, 5%-10% Bounty)",
        "baseBuilderCode": "bc_i26d7owr",
        "pricingPolicy": "Hybrid M2M (Anti-Bypass Services 2-7): Low Base Micro-Floor (<$200 USD) + 0.15% Pre-Flight SLA / 5%-10% Safe-Harbor Rescue Bounty on Saved Capital, auto-capped at X-Agent-Budget",
        "payTo": "0xAA99e12320a3db0116ef56D2e19F70f6796Bad0f"
      }
    }
  ]
}