# Metis Chain API
> Live on-chain data for Metis (Andromeda) mainnet via Blockscout — no key. Read network stats (block height, total transactions, METIS price, market cap), a gas oracle in gwei, the most recent blocks and full block detail by height or hash, any address balance and contract info, full transaction detail, ERC-20 token detail by contract, and a universal search across addresses, tokens, blocks and transactions. Real Layer-2 chain data with the rotating proxy as automatic fallback — 9 endpoints. Ideal for wallets, explorers, portfolio trackers, analytics dashboards and on-chain monitoring on Metis.

## Authentication
All requests require your oanor API key in the `x-oanor-key` header. Get one at https://www.oanor.com/developer/keys.

```bash
curl -H "x-oanor-key: oanor_live_…" "https://api.oanor.com/metis-api/..."
```

## Pricing
- **Free** (Free) — 5,000 calls/Mo, 2 req/s
- **Basic** ($10/Mo) — 120,000 calls/Mo, 8 req/s
- **Pro** ($30/Mo) — 700,000 calls/Mo, 20 req/s
- **Mega** ($80/Mo) — 3,500,000 calls/Mo, 50 req/s

## Endpoints

### Network

#### `GET /v1/gas` — Gas oracle (gwei)

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/metis-api/v1/gas"
```

**Response:**
```json
{
    "data": {
        "fast": 22.11,
        "slow": 21.4,
        "unit": "gwei",
        "average": 21.69,
        "gas_used_today": "795797572"
    },
    "meta": {
        "timestamp": "2026-06-08T18:26:43.778Z",
        "request_id": "bef62988-025a-41f1-996b-d508c174d9f9"
    },
    "status": "ok",
    "message": "Gas retrieved successfully",
    "success": true
}
```

#### `GET /v1/stats` — Network stats

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/metis-api/v1/stats"
```

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 22.11,
            "slow": 21.4,
            "average": 21.69
        },
        "total_blocks": 22746682,
        "coin_price_usd": 2.6418308508625676,
        "gas_used_today": "795797572",
        "market_cap_usd": 19793744.19275778,
        "total_addresses": "2640598",
        "total_transactions": "46602773",
        "transactions_today": "6228",
        "network_utilization_percent": 0.023817987272727274
    },
    "meta": {
        "timestamp": "2026-06-08T18:26:44.237Z",
        "request_id": "5b8be396-35da-4ab7-a210-7f4090ddc1d9"
    },
    "status": "ok",
    "message": "Stats retrieved successfully",
    "success": true
}
```

### Blocks

#### `GET /v1/block` — Block detail by height or hash

**Parameters:**
- `height` (query, optional, string) — Block height Example: `22746000`
- `hash` (query, optional, string) — Block hash (0x + 64 hex)

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/metis-api/v1/block?height=22746000"
```

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0x706ee7f36abbdf17b5f09d496d07b4af9b11a687a9cb1fb6e932442e92cffbac",
            "size": 3070,
            "miner": "0x0000000000000000000000000000000000000000",
            "height": 22746000,
            "gas_used": 119437,
            "tx_count": 1,
            "gas_limit": 1100000000,
            "timestamp": "2026-06-08T10:22:14.000000Z",
            "burnt_fees": "0",
            "difficulty": "2",
            "base_fee_per_gas": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:26:44.660Z",
        "request_id": "00f46ede-a207-42da-b841-154792338730"
    },
    "status": "ok",
    "message": "Block retrieved successfully",
    "success": true
}
```

#### `GET /v1/blocks` — Most recent blocks

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/metis-api/v1/blocks"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0xf2970f72d838d8ed75e057c435f732e65f5aef7e38acfe38df82aa33d854d868",
                "size": 4246,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 22746750,
                "gas_used": 189933,
                "tx_count": 5,
                "gas_limit": 1100000000,
                "timestamp": "2026-06-08T18:26:44.000000Z",
                "burnt_fees": "0",
                "difficulty": "2",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xac0dd2776de7bf44cb43ad14b171852035ba1c6d3b0ba5da5bb5bf63264474cf",
                "size": 1001,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 22746749,
                "gas_used": 29770,
                "tx_count": 1,
                "gas_limit": 1100000000,
                "timestamp": "2026-06-08T18:25:32.000000Z",
                "burnt_fees": "0",
                "difficulty": "2",
                "base_fee_per_gas": null
            },
            {
                "hash": "0xa28030bfc8bb7c10a48716dec31bdd815a966f0547dce363f1b2640dd7ad4a7e",
                "size": 3454,
                "miner": "0x0000000000000000000000000000000000000000",
                "height": 22746748,
                "gas_used": 173675,
                "tx_count": 1,
                "gas_limit": 1100000000,
             
…(truncated, see openapi.json for full schema)
```

### Accounts

#### `GET /v1/address` — Address balance & contract info

**Parameters:**
- `address` (query, required, string) — Address (0x + 40 hex) Example: `0x4337001Fff419768e088Ce247456c1B892888084`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/metis-api/v1/address?address=0x4337001Fff419768e088Ce247456c1B892888084"
```

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0x4337001Fff419768e088Ce247456c1B892888084",
            "name": null,
            "token": null,
            "creator": null,
            "balance_wei": "4817321287654019300",
            "is_contract": false,
            "is_verified": null,
            "balance_metis": 4.8173212876540195
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:26:45.792Z",
        "request_id": "d6f4cca8-20b7-48ad-bb1a-7dbadf3dd6b4"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

#### `GET /v1/transaction` — Transaction detail

**Parameters:**
- `hash` (query, required, string) — Transaction hash (0x + 64 hex) Example: `0x473c8cb192b59e5f448f00151a050fd9902af2c40b8ed39431a5a04cfae69219`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/metis-api/v1/transaction?hash=0x473c8cb192b59e5f448f00151a050fd9902af2c40b8ed39431a5a04cfae69219"
```

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x0000000071727De22E5E9d8BAf0edAc6f37da032",
            "from": "0x4337001Fff419768e088Ce247456c1B892888084",
            "hash": "0x473c8cb192b59e5f448f00151a050fd9902af2c40b8ed39431a5a04cfae69219",
            "type": null,
            "block": 22746014,
            "nonce": 27376,
            "method": "handleOps",
            "status": "ok",
            "fee_wei": "2738714255350086",
            "gas_used": 118803,
            "fee_metis": 0.002738714255350086,
            "gas_price": "23052568162",
            "timestamp": "2026-06-08T10:32:33.000000Z",
            "value_wei": "0",
            "value_metis": 0,
            "confirmations": 737
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:26:46.071Z",
        "request_id": "ad0eb05e-f0bc-4f3d-8bea-e39676686bd0"
    },
    "status": "ok",
    "message": "Transaction retrieved successfully",
    "success": true
}
```

### Tokens

#### `GET /v1/token` — ERC-20 token detail

**Parameters:**
- `address` (query, required, string) — Token contract (0x + 40 hex) Example: `0x5caE1B43062c9F5eF15A7Df011C21c880571D3fb`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/metis-api/v1/token?address=0x5caE1B43062c9F5eF15A7Df011C21c880571D3fb"
```

**Response:**
```json
{
    "data": {
        "token": {
            "icon": null,
            "name": "Champs",
            "type": "ERC-20",
            "symbol": "CHAMPS",
            "address": "0x5caE1B43062c9F5eF15A7Df011C21c880571D3fb",
            "holders": 215696,
            "decimals": 18,
            "total_supply": "1000000000000000000000000000",
            "exchange_rate_usd": null,
            "circulating_market_cap": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:26:46.537Z",
        "request_id": "dc19580c-7639-46ca-98fa-3b2883e675fd"
    },
    "status": "ok",
    "message": "Token retrieved successfully",
    "success": true
}
```

### Search

#### `GET /v1/search` — Universal search

**Parameters:**
- `q` (query, required, string) — Address, token, block or tx Example: `metis`

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/metis-api/v1/search?q=metis"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "query": "metis",
        "results": [
            {
                "name": "MetisBot",
                "type": "token",
                "symbol": "MBOT",
                "address": "0x573BBA446294927618075d2805f0aA51E347266D"
            },
            {
                "name": "MetisKart",
                "type": "token",
                "symbol": "MetisKart",
                "address": "0xfF3438795380D158b9768866c0823e9c3abBc423"
            },
            {
                "name": "MetisPrint",
                "type": "token",
                "symbol": "MP",
                "address": "0xeBf9D88F7139Ec1546d5E3a1FCb714fE92f9140e"
            },
            {
                "name": "VolatileV1 AMM - Metis/m.USDC",
                "type": "token",
                "symbol": "vAMM-Metis/m.USDC",
                "address": "0x5ab390084812E145b619ECAA8671d39174a1a6d1"
            },
            {
                "name": "MetisEarth Land",
                "type": "token",
                "symbol": "mEarthLand",
                "address": "0x0352101daba6830a6825D03Bd7Bb996aB80C6C46"
            },
            {
                "name": "Metisama Inu",
                "type": "token",
                "symbol": "METISAMA",
                "address": "0x3deba975FbaAAC29B90F8EF8577a50Dc9ca951c7"
            },
            {
                "name": "MetisEarth",
                "type": "token",
                "symbol": "ME",
              
…(truncated, see openapi.json for full schema)
```

### Meta

#### `GET /v1/meta` — Spec

**Example:**
```bash
curl -H "x-oanor-key: $KEY" \
  "https://api.oanor.com/metis-api/v1/meta"
```

**Response:**
```json
{
    "data": {
        "service": "metis-api",
        "endpoints": {
            "GET /v1/gas": "Gas oracle (slow/average/fast in gwei).",
            "GET /v1/meta": "This document.",
            "GET /v1/block": "Block detail by height= or hash=.",
            "GET /v1/stats": "Network stats (blocks, txns, coin price, market cap, gas).",
            "GET /v1/token": "ERC-20 token detail by contract (address=).",
            "GET /v1/blocks": "The most recent blocks.",
            "GET /v1/search": "Search addresses, tokens, blocks & txns (q=).",
            "GET /v1/address": "Address balance & contract info (address=).",
            "GET /v1/transaction": "Transaction detail (hash=)."
        },
        "description": "Live Metis (Andromeda) mainnet on-chain data via Blockscout: network stats, a gas oracle (gwei), recent blocks and block detail, address balances, transaction detail, ERC-20 token detail and a universal search across addresses, tokens, blocks and transactions. Real on-chain data, no key."
    },
    "meta": {
        "timestamp": "2026-06-08T18:26:47.171Z",
        "request_id": "d9c7337a-fdf4-462e-a737-ee85e40767a5"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


---
Marketplace page: https://www.oanor.com/api/metis-api
OpenAPI spec: https://www.oanor.com/api/metis-api/openapi.json
