{
  "format": "delx/intent-card/v1",
  "id": "selector-extract-api",
  "intent": "Selector Extract for an agent workflow",
  "title": "Selector Extract API for agents",
  "description": "Extract the 4-byte function selector from calldata hex — call when reading the 4-byte selector from calldata. Use for chain input hygiene without live RPC—adjacent to OneSource-class small chain reads, but static/local only so rights and margin stay clear. Returns deterministic machine-readable JSON for $0.003 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, and no claim of live chain tip, web search, or media generation. Results are advisory; the caller owns authorization and production controls.",
  "keywords": [
    "Selector Extract API",
    "Selector Extract for agents",
    "pay per result API",
    "x402 API",
    "no API key"
  ],
  "updated_at": "2026-08-06",
  "canonical_url": "https://commerce.delx.ai/intents/selector-extract-api",
  "machine_url": "https://commerce.delx.ai/intents/selector-extract-api.json",
  "recommendation": {
    "tool_name": "util_selector_extract",
    "service_name": "Delx Selector Extract",
    "method": "POST",
    "resource": "https://api.delx.ai/api/v1/x402/selector-extract",
    "price_usdc": "0.003",
    "payment_protocols": [
      "x402",
      "mpp"
    ],
    "input_schema": {
      "type": "object",
      "properties": {
        "calldata": {
          "description": "Transaction calldata hex; first 4 bytes are the selector.",
          "type": "string"
        }
      },
      "required": [
        "calldata"
      ],
      "additionalProperties": true
    },
    "example_input": {
      "calldata": "0xa9059cbb0000000000000000000000000000000000000000000000000000000000000001"
    },
    "example_output": {
      "schema": "delx/util-selector-extract/v1",
      "valid": true,
      "selector": "0xa9059cbb",
      "remaining_bytes": 32
    },
    "agentcash": {
      "buy": "npx agentcash@latest fetch https://api.delx.ai/api/v1/x402/selector-extract -m POST -H 'x-delx-source: intent-card-selector-extract-api' --max-amount 0.003 -b '{\"calldata\":\"0xa9059cbb0000000000000000000000000000000000000000000000000000000000000001\"}'",
      "max_amount_usdc": "0.003"
    }
  },
  "attribution": {
    "header": "x-delx-source",
    "value": "intent-card-selector-extract-api"
  },
  "evidence": {
    "paid_openapi": "https://api.delx.ai/openapi.x402.json",
    "governed_portfolio": "https://api.delx.ai/x402-portfolio.json",
    "live_contract": "https://api.delx.ai/api/v1/x402/selector-extract"
  }
}
