{"endpoint":"/api/data/abi-decode","method":"POST","service_trust":"https://defi-shield-hazel.vercel.app/api/trust-signal","free_check":{"endpoint":"https://defi-shield-hazel.vercel.app/api/free/token-check","method":"POST","price":"FREE","note":"Try before you buy — free basic token safety check with risk math."},"also_available_on":{"virtuals_acp":{"agent":"Authensor","agent_id":18805,"offerings":["pre_trade_safety","token_deep_scan","wallet_report","batch_seal"],"marketplace":"https://app.virtuals.io/acp/scan/agents","note":"Same service, accessible to 18,000+ autonomous agents on Virtuals Protocol."},"mcp_server":{"package":"devsecure-mcp","install":"npx devsecure-mcp","tools":67,"note":"Install as MCP server in Claude, Cursor, or any MCP-compatible client for direct tool access."},"bazaar":"https://defi-shield-hazel.vercel.app/.well-known/x402","agent_card":"https://defi-shield-hazel.vercel.app/.well-known/agent-card.json"},"powered_by":"DeFi Shield by Authensor","price":"$0.10","description":"Decode ABI-encoded calldata into human-readable function name and parameters. Looks up function selectors via 4byte.directory and optionally fetches the contract ABI from BaseScan.","llm_usage_prompt":"Call this endpoint when you have raw transaction calldata (a hex string starting with 0x) and need to understand what function is being called and with what parameters. Provide the calldata hex string, optionally a to_address to auto-fetch the ABI from BaseScan, and optionally a contract ABI array for precise decoding. Returns the function selector, resolved function name, all possible matching function signatures, decoded parameters with type hints, and the ABI source used. Use this to verify transaction intent before signing, audit pending transactions, or reverse-engineer unknown contract interactions. Costs $0.10.","params":{"calldata":"string (required) - Hex-encoded calldata starting with 0x","to_address":"string (optional) - Contract address to auto-fetch ABI from BaseScan","abi":"Array (optional) - Contract ABI for precise decoding"},"exampleRequest":{"calldata":"0xa9059cbb000000000000000000000000d8da6bf26964af9d7eed9e03e53415d37aa960450000000000000000000000000000000000000000000000000de0b6b3a7640000","to_address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"},"exampleResponse":{"success":true,"function_selector":"0xa9059cbb","function_name":"transfer","possible_functions":["transfer(address,uint256)"],"decoded_params":{"param_0_address":"0xd8da6bf26964af9d7eed9e03e53415d37aa96045","param_1_uint256":"1000000000000000000"},"param_count":2,"raw_calldata":"0xa9059cbb...","abi_source":"basescan","to_address":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","response_time_ms":245}}