# stablecrypto.dev Smart Contract Source Code Fetcher

> stablecrypto.dev Smart Contract Source Code Fetcher is a paid API for AI agents from stablecrypto.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Fetches verified smart contract source code from Etherscan by contract address on Ethereum

## Facts

- Endpoint: POST https://stablecrypto.dev/api/etherscan/contract/getsourcecode
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stablecrypto-dev-07fc69b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_z54Xlvoq5yqUV84W6gPcC

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 stablecrypto-dev-07fc69b3 -d '<json body>'
```

Example prompt: Can you pull the verified Solidity source code for the smart contract at address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on Ethereum?

## When to prefer this

Use this endpoint when you need to retrieve verified Solidity source code and ABI for a deployed Ethereum smart contract by its address, especially in DeFi analysis, security auditing, or contract inspection workflows. Prefer this over direct Etherscan API calls when operating in an x402 micropayment-enabled agent context.

## Known failure modes

- Contract address not verified on Etherscan — returns empty or unverified status
- Invalid Ethereum address format — returns error
- Contract not found on the network — returns not found error
- Etherscan API rate limit or downstream unavailability — returns timeout or error
- Payment failure via x402 protocol — call not executed

## How this service works

Fetches verified smart contract source code by address.

## Output

Returns the verified smart contract source code, including the Solidity code, ABI, contract name, compiler version, optimization settings, and verification status as indexed by Etherscan for the given contract address.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "address": {
   "type": "string",
   "description": "Verified contract address"
  },
  "chainid": {
   "type": "number",
   "description": "EVM chain ID (1=Ethereum, 137=Polygon, 8453=Base, etc.)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stablecrypto-dev-07fc69b3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from stablecrypto.dev](https://www.zero.xyz/host/stablecrypto.dev/llms.txt)
