# skills.onesource.io Smart Contract Details

> skills.onesource.io Smart Contract Details is a paid API for AI agents from skills.onesource.io, paid per call via x402, $0.005000/call, status unknown (last checked 2026-10-09).

Returns on-chain details for a specific smart contract address, including token standards (ERC-20, ERC-721, ERC-1155), interfaces, and bytecode size.

## Facts

- Endpoint: GET https://skills.onesource.io/api/chain/contract/0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D?utm_source=zero.xyz
- Price: $0.005000/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-09
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/skills-onesource-io-393c4eae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AXYsAYd53WXzZHAltBlkF

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 skills-onesource-io-393c4eae
```

Example prompt: Can you look up the on-chain details for the smart contract at 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D on Ethereum — I want to know if it's an ERC-721 or ERC-1155, and what its name and symbol are?

## When to prefer this

Use this endpoint when you need to quickly identify whether an Ethereum address is a smart contract, which token standards it implements (ERC-20, ERC-721, ERC-1155), and its on-chain name/symbol — especially across multiple EVM-compatible networks including Base, Avalanche, and MegaETH. Prefer this over general block explorers when you need structured, machine-readable contract metadata in an agent pipeline.

## Known failure modes

- Invalid address format (not 0x + 40 hex chars) returns a 400 error
- Address is an EOA (externally owned account, not a contract) — is_contract returns false with minimal data
- Unsupported network value returns a validation error
- Contract not deployed on the specified network returns empty or null contract data
- Rate limiting or payment failure via x402 protocol returns 402 Payment Required

## How this service works

Returns on-chain details for a specific smart contract address.

## Output

Returns a JSON object with the contract's name, symbol, address, boolean flags for ERC-20/ERC-165/ERC-721/ERC-1155 compliance, the list of supported interfaces, bytecode length, and a boolean confirming it is a contract. Also includes request metadata such as endpoint and request ID.

## Example request

```json
{
 "network": "ethereum"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "network": {
   "enum": [
    "ethereum",
    "sepolia",
    "avax",
    "megaeth",
    "megaeth-testnet",
    "base"
   ],
   "type": "string",
   "default": "ethereum",
   "description": "The blockchain network to query. The contract address is passed in the URL path, not the body."
  }
 },
 "additionalProperties": false
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data",
  "meta"
 ],
 "properties": {
  "data": {
   "type": "object",
   "required": [
    "address",
    "is_contract",
    "code_length",
    "name",
    "symbol",
    "is_erc721",
    "is_erc1155",
    "is_erc20",
    "is_erc165",
    "interfaces"
   ],
   "properties": {
    "name": {
     "type": "string"
    },
    "symbol": {
     "type": "string"
    },
    "address": {
     "type": "string"
    },
    "is_erc20": {
     "type": "boolean"
    },
    "is_erc165": {
     "type": "boolean"
    },
    "is_erc721": {
     "type": "boolean"
    },
    "interfaces": {
     "type": "array",
     "items": {
      "type": "string"
     }
    },
    "is_erc1155": {
     "type": "boolean"
    },
    "code_length": {
     "type": "number"
    },
    "is_contract": {
     "type": "boolean"
    }
   }
  },
  "meta": {
   "type": "object",
   "required": [
    "endpoint",
    "request_id"
   ],
   "properties": {
    "endpoint": {
     "type": "string"
    },
    "request_id": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/skills-onesource-io-393c4eae/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from skills.onesource.io](https://www.zero.xyz/host/skills.onesource.io/llms.txt)
