{"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"},"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"},"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"},"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"},"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"},"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"},"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"}