# GlianaAI Contract Scan

> GlianaAI Contract Scan is a paid API for AI agents from api.glianalabs.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-18).

Scans and analyzes a smart contract address to retrieve security, risk, and metadata information about the contract.

## Facts

- Endpoint: GET https://api.glianalabs.com/x402/tools/contract-scan?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/glianaai-contract-scan-bdb1abce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vOIlJUH-_x4-Fk_fGZNhK

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability glianaai-contract-scan-bdb1abce
```

Example prompt: Can you scan this smart contract address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 and tell me if it has any security risks or red flags before I interact with it?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call smart contract security scan without requiring API key signup. Ideal for AI agents that need to autonomously verify contract safety before executing DeFi transactions, bridging, or token swaps. Prefer this over manual block explorer lookups when you need structured, programmatic risk assessment data returned in JSON format.

## Known failure modes

- Invalid or malformed contract address returns an error response
- Contract address not found on the specified chain returns empty or error result
- Network timeout for contracts on congested chains
- Payment failure if USDC balance is insufficient (x402 payment required)
- Unsupported blockchain network returns an error

## How this service works

One endpoint for 90+ generative AI models, live market data, SEC filings and identity APIs — image, video, music, speech, LLM chat, crypto and FX rates, DEX liquidity, gas, US company fundamentals and insider trades, document OCR and face matching. Pay per request in USDC on Tempo, Base, Solana, Algorand or BNB Chain with no signup, or top up a prepaid balance in rupiah.

## Output

Returns a JSON object containing the contract scan results, including the tool identifier and analysis data such as security risk flags, contract metadata, ownership information, and any detected vulnerabilities or suspicious patterns associated with the scanned smart contract address.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": "tools/contract-scan"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/glianaai-contract-scan-bdb1abce/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.glianalabs.com](https://www.zero.xyz/host/api.glianalabs.com/llms.txt)
