# Japan Open Chain API
> Live on-chain data for Japan Open Chain mainnet (a consortium EVM Layer-1 run by Japanese enterprises, native JOC) via Blockscout — no key. Read network stats (block height, total transactions, gas), 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-1 chain data with the rotating proxy as automatic fallback — 9 endpoints. Ideal for wallets, explorers, enterprise and stablecoin tooling, portfolio trackers and on-chain monitoring on Japan Open Chain.

## 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/japanopenchain-api/..."
```

## Pricing
- **Free** (Free) — 4,750 calls/Mo, 2 req/s
- **Basic** ($9/Mo) — 110,500 calls/Mo, 8 req/s
- **Pro** ($26/Mo) — 602,000 calls/Mo, 20 req/s
- **Mega** ($73/Mo) — 2,940,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/japanopenchain-api/v1/gas"
```

**Response:**
```json
{
    "data": {
        "fast": 107.01,
        "slow": 107.01,
        "unit": "gwei",
        "average": 107.01,
        "gas_used_today": "460791056"
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:25.457Z",
        "request_id": "56bab5d0-225b-4c09-b4b4-9d9a9d39ce14"
    },
    "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/japanopenchain-api/v1/stats"
```

**Response:**
```json
{
    "data": {
        "tvl_usd": null,
        "gas_prices": {
            "fast": 107.01,
            "slow": 107.01,
            "average": 107.01
        },
        "total_blocks": 24264246,
        "coin_price_usd": null,
        "gas_used_today": "460791056",
        "market_cap_usd": 0,
        "total_addresses": "35140",
        "total_transactions": "16158019",
        "transactions_today": "19723",
        "network_utilization_percent": 0.005600285106382979
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:25.830Z",
        "request_id": "2c0e2459-17a5-4699-a3b0-087ef1c689cc"
    },
    "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: `24260000`
- `hash` (query, optional, string) — Block hash (0x + 64 hex)

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

**Response:**
```json
{
    "data": {
        "block": {
            "hash": "0x96c905675df34e70744f69544873d0b686e385b0cfdc74673a31e1f973022b15",
            "size": 731,
            "miner": "0xB641f142049215EAc3BE10A6d2b7F2f674270130",
            "height": 24260000,
            "gas_used": 21000,
            "tx_count": 1,
            "gas_limit": 470000000,
            "timestamp": "2026-06-08T11:56:44.000000Z",
            "burnt_fees": "147000",
            "difficulty": "2",
            "base_fee_per_gas": "7"
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:26.214Z",
        "request_id": "20e9264d-1717-4d4d-ad0c-6e639c1d7e69"
    },
    "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/japanopenchain-api/v1/blocks"
```

**Response:**
```json
{
    "data": {
        "count": 50,
        "blocks": [
            {
                "hash": "0x352617223e920b0e89af64fbc4ee1c0b33322c72176533a350e0db02427c8a85",
                "size": 731,
                "miner": "0x44f61F79ddc9DFA7428614A95202FBF448F81E36",
                "height": 24264658,
                "gas_used": 21000,
                "tx_count": 1,
                "gas_limit": 470000000,
                "timestamp": "2026-06-08T18:25:21.000000Z",
                "burnt_fees": "147000",
                "difficulty": "2",
                "base_fee_per_gas": "7"
            },
            {
                "hash": "0xe4dc047de19cce1d994442b6207a7ad6cbd2a130e29477a90fcd117753f4aafe",
                "size": 731,
                "miner": "0x41Bcba80338FDc3531434861A2750e842d6CD1E5",
                "height": 24264657,
                "gas_used": 21000,
                "tx_count": 1,
                "gas_limit": 470000000,
                "timestamp": "2026-06-08T18:25:16.000000Z",
                "burnt_fees": "147000",
                "difficulty": "2",
                "base_fee_per_gas": "7"
            },
            {
                "hash": "0x565d5b8767cc4805e7358dd4a16b7ea1ff577e7c3d97bed4ec2cff664e278b2a",
                "size": 731,
                "miner": "0x3dFD1bb2bF608b88549192148FFfa729B2D3f525",
                "height": 24264656,
                "gas_used": 21000,
                "tx_count": 1,
                "gas_limit": 470000000,
             
…(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: `0x5CFce8669c672dF27E3D6cAd41859328932EC278`

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

**Response:**
```json
{
    "data": {
        "address": {
            "ens": null,
            "hash": "0x5CFce8669c672dF27E3D6cAd41859328932EC278",
            "name": null,
            "token": null,
            "creator": null,
            "balance_joc": 1064.0595958018732,
            "balance_wei": "1064059595801873279000",
            "is_contract": false,
            "is_verified": false
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:27.836Z",
        "request_id": "a00b54fb-8c7a-4546-9125-6e95d7bc43ed"
    },
    "status": "ok",
    "message": "Address retrieved successfully",
    "success": true
}
```

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

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

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

**Response:**
```json
{
    "data": {
        "transaction": {
            "to": "0x5CFce8669c672dF27E3D6cAd41859328932EC278",
            "from": "0x5CFce8669c672dF27E3D6cAd41859328932EC278",
            "hash": "0xd3f478ac704eb68a5ab52c4fe7f277be066f01ce7ad38c9e1e6a72cb0507f02c",
            "type": 2,
            "block": 24261005,
            "nonce": 14949585,
            "method": null,
            "status": "ok",
            "fee_joc": 0.002247000000147,
            "fee_wei": "2247000000147000",
            "gas_used": 21000,
            "gas_price": "107000000007",
            "timestamp": "2026-06-08T13:20:31.000000Z",
            "value_joc": 0,
            "value_wei": "0",
            "confirmations": 3655
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:28.248Z",
        "request_id": "bf9fce73-3d12-478a-941f-a635feb8221a"
    },
    "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: `0xe18e898E5843E8a8EA7A1C4AF08730DcA6689aA9`

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

**Response:**
```json
{
    "data": {
        "token": {
            "icon": null,
            "name": "USDTX",
            "type": "ERC-20",
            "symbol": "USDTX",
            "address": "0xe18e898E5843E8a8EA7A1C4AF08730DcA6689aA9",
            "holders": 213,
            "decimals": 6,
            "total_supply": "75611117574",
            "exchange_rate_usd": null,
            "circulating_market_cap": null
        }
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:28.636Z",
        "request_id": "68efb343-feb3-47ec-9278-7312fef0db6d"
    },
    "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: `japan`

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

**Response:**
```json
{
    "data": {
        "count": 3,
        "query": "japan",
        "results": [
            {
                "name": "Japan Open Chain Event NFT",
                "type": "token",
                "symbol": "JOCE",
                "address": "0xD8C1d4bD6888df0c0baa46e47C28Fce9ECD11c62"
            },
            {
                "name": "Japan Open Chain Event NFT",
                "type": "token",
                "symbol": "JOCE",
                "address": "0x6934340002DD5F34F2B84b014Ec8D01be0564045"
            },
            {
                "name": "Community Member of Japan Open Chain",
                "type": "token",
                "symbol": "CMJ",
                "address": "0x5a9525389B2c53c56BC3a2e4Fcdb4DC88326550d"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:29.349Z",
        "request_id": "29b17be2-61b0-4b0a-8cfc-6886d51b6c6f"
    },
    "status": "ok",
    "message": "Search results retrieved successfully",
    "success": true
}
```

### Meta

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

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

**Response:**
```json
{
    "data": {
        "service": "japanopenchain-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 Japan Open Chain (JOC) 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:25:29.472Z",
        "request_id": "7b9ef0e1-832c-415a-8c1b-57055ed144fe"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}
```


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