{"openapi":"3.1.0","info":{"title":"Nervos CKB On-Chain API","version":"1.0.0","description":"Live on-chain data from the Nervos Common Knowledge Base (CKB) via the official Nervos explorer — clean JSON, no cache. Nervos CKB is a proof-of-work Layer-1 built on the Cell model — a generalised UTXO where every cell can hold state and code — secured by the Eaglesong hash and governed in epochs, with a native state-rent / deposit system (NervosDAO) that pays interest for locking CKB. Read the chain state (tip block, current epoch, block time, difficulty and hashrate); browse the most recent blocks with miner and reward; fetch a single block by number or hash; look up an address's CKB balance, its NervosDAO deposit and compensation, live-cell count and UDT token accounts; or resolve a transaction's block, fee and type. Read live from Nervos, nothing stored. This is Nervos CKB's own Cell-model, NervosDAO and PoW layer — distinct from the Bitcoin, Decred, Ergo and other on-chain APIs and from price feeds.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/nervos-api","description":"oanor gateway"}],"tags":[{"name":"Network"},{"name":"Blocks"},{"name":"Block"},{"name":"Address"},{"name":"Transaction"},{"name":"Meta"}],"components":{"securitySchemes":{"oanorKey":{"type":"apiKey","in":"header","name":"x-oanor-key","description":"Get your key at https://www.oanor.com/developer/keys"}}},"security":[{"oanorKey":[]}],"paths":{"/v1/network":{"get":{"operationId":"get_v1_network","tags":["Network"],"summary":"Chain state — tip block, epoch, block time, difficulty, hashrate","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"chain":"nervos-ckb","model":"Cell model (generalised UTXO)","source":"Nervos CKB","consensus":"Eaglesong PoW (NC-MAX)","hash_rate":81841176830210.33,"epoch_index":298,"epoch_length":1534,"epoch_number":14356,"native_token":"CKB","tip_block_number":19562575,"average_block_time_ms":7361.96,"estimated_epoch_time_ms":14364832.725474,"transactions_last_24hrs":16503,"transactions_per_minute":12,"current_epoch_difficulty":"766385146820022311"},"meta":{"timestamp":"2026-06-10T22:58:24.385Z","request_id":"e25c4371-8962-4ad4-9203-f3deb4aa27e5"},"status":"ok","message":"Network state retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/blocks":{"get":{"operationId":"get_v1_blocks","tags":["Blocks"],"summary":"Most recent blocks with miner and reward","description":"","parameters":[{"name":"limit","in":"query","required":false,"description":"Number of blocks (1-50)","schema":{"type":"string"},"example":"10"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"count":10,"blocks":[{"miner":"ckb1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq0259kv0x5jez6h0l5qr52k64weapapgyscsnmhn","number":19562577,"timestamp":"2026-06-10T22:58:15.712Z","reward_ckb":625.10046258,"transactions_count":1},{"miner":"ckb1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsqvgqh40v2g5ps3rann79tvw9gq6ewrft7gp909qk","number":19562576,"timestamp":"2026-06-10T22:58:11.380Z","reward_ckb":625.10046258,"transactions_count":4},{"miner":"ckb1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq0259kv0x5jez6h0l5qr52k64weapapgyscsnmhn","number":19562575,"timestamp":"2026-06-10T22:58:09.393Z","reward_ckb":625.10046258,"transactions_count":4},{"miner":"ckb1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq0dn8gg6ag6uvkl0lr0xpyt0n99dsal47sm7mzyj","number":19562574,"timestamp":"2026-06-10T22:57:57.896Z","reward_ckb":625.10046258,"transactions_count":1},{"miner":"ckb1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq0tpsqq08mkay9ewrfrdwlcghv62qw704s93hhsj","number":19562573,"timestamp":"2026-06-10T22:57:13.950Z","reward_ckb":625.10046258,"transactions_count":1},{"miner":"ckb1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq0tpsqq08mkay9ewrfrdwlcghv62qw704s93hhsj","number":19562572,"timestamp":"2026-06-10T22:57:10.821Z","reward_ckb":625.10046258,"transactions_count":1},{"miner":"ckb1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq0dn8gg6ag6uvkl0lr0xpyt0n99dsal47sm7mzyj","number":19562571,"timestamp":"2026-06-10T22:57:04.730Z","reward_ckb":625.10046258,"transactions_count":1},{"miner":"ckb1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq0tpsqq08mkay9ewrfrdwlcghv62qw704s93hhsj","number":19562570,"timestamp":"2026-06-10T22:57:02.260Z","reward_ckb":625.10046258,"transactions_count":2},{"miner":"ckb1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq0tpsqq08mkay9ewrfrdwlcghv62qw704s93hhsj","number":19562569,"timestamp":"2026-06-10T22:56:59.617Z","reward_ckb":625.10046258,"transactions_count":4},{"miner":"ckb1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq0tpsqq08mkay9ewrfrdwlcghv62qw704s93hhsj","number":19562568,"timestamp":"2026-06-10T22:56:55.571Z","reward_ckb":625.10046258,"transactions_count":1}],"source":"Nervos CKB"},"meta":{"timestamp":"2026-06-10T22:58:24.713Z","request_id":"d38259ac-f3ca-4fa1-9866-2318ce040a38"},"status":"ok","message":"Blocks retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/block":{"get":{"operationId":"get_v1_block","tags":["Block"],"summary":"A single block by number or hash","description":"","parameters":[{"name":"number","in":"query","required":false,"description":"Block number","schema":{"type":"string"},"example":"19559000"},{"name":"hash","in":"query","required":false,"description":"Block hash (0x + 64 hex)","schema":{"type":"string"}}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"epoch":14353,"miner":"ckb1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq0tpsqq08mkay9ewrfrdwlcghv62qw704s93hhsj","number":19559000,"source":"Nervos CKB","timestamp":"2026-06-10T14:11:17.272Z","block_hash":"0x1325ea4ccae7b795c5bfab4fa69f2b77428c4a45cf98a4d22836e71e21406c03","difficulty":"935293536651311521","reward_ckb":778.6228195,"transactions_count":2},"meta":{"timestamp":"2026-06-10T22:58:25.048Z","request_id":"89026ff8-7f65-4c2e-a05b-2965557d04fd"},"status":"ok","message":"Block retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/address":{"get":{"operationId":"get_v1_address","tags":["Address"],"summary":"An address's CKB balance, NervosDAO deposit, live cells and UDT accounts","description":"","parameters":[{"name":"address","in":"query","required":true,"description":"Nervos address (mainnet ckb1...)","schema":{"type":"string"},"example":"ckb1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq0tpsqq08mkay9ewrfrdwlcghv62qw704s93hhsj"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"source":"Nervos CKB","address":"ckb1qzda0cr08m85hc8jlnfp3zer7xulejywt49kt2rr0vthywaa50xwsq0tpsqq08mkay9ewrfrdwlcghv62qw704s93hhsj","balance_ckb":67917951.75984755,"dao_deposit_ckb":0,"live_cells_count":99904,"udt_account_count":0,"mined_blocks_count":3671803,"transactions_count":3672740,"balance_occupied_ckb":0,"dao_compensation_ckb":0},"meta":{"timestamp":"2026-06-10T22:58:44.967Z","request_id":"af400579-0fc5-45c7-9ffb-c8676d6c8a98"},"status":"ok","message":"Address retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/transaction":{"get":{"operationId":"get_v1_transaction","tags":["Transaction"],"summary":"A transaction's block, fee and type","description":"","parameters":[{"name":"hash","in":"query","required":true,"description":"Transaction hash (0x + 64 hex)","schema":{"type":"string"},"example":"0x9fee19cb44afa5b083c6c74b4a549a2b50298be0d418625f50e884a09ba7b1f8"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"source":"Nervos CKB","block_time":"2026-06-10T15:02:55.401Z","is_cellbase":false,"block_number":19559410,"transaction_hash":"0x9fee19cb44afa5b083c6c74b4a549a2b50298be0d418625f50e884a09ba7b1f8","transaction_fee_ckb":0.05},"meta":{"timestamp":"2026-06-10T22:58:45.439Z","request_id":"aa09ec53-ad05-4efc-9eb7-d953a883b908"},"status":"ok","message":"Transaction retrieved successfully","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}},"/v1/meta":{"get":{"operationId":"get_v1_meta","tags":["Meta"],"summary":"Service metadata","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"model":"Cell model (generalised UTXO)","source":"Nervos explorer API (mainnet-api.explorer.nervos.org, live)","service":"nervos-api","consensus":"Eaglesong PoW (NC-MAX)","endpoints":{"GET /v1/meta":"This document.","GET /v1/block":"A single block by number or hash (number=19559000 or hash=0x…).","GET /v1/blocks":"Most recent blocks with miner and reward (limit=10).","GET /v1/address":"An address's CKB balance, NervosDAO deposit, live cells and UDT accounts (address=ckb1...).","GET /v1/network":"Chain state — tip block, epoch, block time, difficulty, hashrate.","GET /v1/transaction":"A transaction's block, fee and type (hash=0x + 64 hex)."},"description":"Live on-chain data from the Nervos Common Knowledge Base (CKB) via the official Nervos explorer API. Nervos CKB is a proof-of-work Layer-1 built on the Cell model — a generalised UTXO where every cell can hold state and code — secured by Eaglesong and governed in epochs, with a native state-rent/deposit system (NervosDAO) that pays interest for locking CKB. The network endpoint returns the chain state (tip block, epoch, block time, difficulty, hashrate); the blocks endpoint returns the most recent blocks with miner and reward; the block endpoint returns a single block by number or hash; the address endpoint returns an address's CKB balance, NervosDAO deposit and compensation, live-cell count and UDT token accounts; the transaction endpoint returns a transaction's block, fee and type. Live, no key, nothing stored. Distinct from the Bitcoin, Decred, Ergo and other on-chain APIs and from price feeds — this is Nervos CKB's own Cell-model, NervosDAO and PoW layer.","native_token":"CKB","upstream_status":"ok","tip_block_number":19562581},"meta":{"timestamp":"2026-06-10T22:58:45.771Z","request_id":"b8abb4cc-2028-42c5-9db3-5bb49b4930c0"},"status":"ok","message":"Meta","success":true}}}},"401":{"description":"Missing or invalid x-oanor-key header"},"402":{"description":"Active subscription required"},"429":{"description":"Rate-limit or monthly quota reached"},"502":{"description":"Upstream did not respond"}}}}},"x-oanor-pricing":[{"slug":"free","name":"Free","price_cents_month":0,"monthly_call_quota":900,"rps_limit":3,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":1100,"monthly_call_quota":33000,"rps_limit":12,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":2950,"monthly_call_quota":170000,"rps_limit":28,"hard_limit":true},{"slug":"business","name":"Business","price_cents_month":6900,"monthly_call_quota":850000,"rps_limit":55,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/nervos-api"}