{"openapi":"3.1.0","info":{"title":"Flow (Cadence) On-Chain API","version":"1.0.0","description":"The Flow blockchain's native Cadence layer, live from the official public Flow access REST API — no key, nothing cached. Flow runs two environments: an EVM layer and its own resource-oriented Cadence environment. The existing Flow reader covers the EVM side; this opens the Cadence layer it cannot see. Read a Cadence block by height — or the latest sealed block — with its id, parent block, timestamp and the number of collection guarantees and seals it carries. Look up any Cadence account for its FLOW balance, the number of account keys it holds and the Cadence smart contracts deployed under it. And read the live network status: the chain id, the access-node software version, the current spork id, the protocol state version and the compatible block-height range. The Cadence-on-chain layer for Flow wallets, explorers, dapp builders and analytics. Live from rest-mainnet.onflow.org.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/flowcadence-api","description":"oanor gateway"}],"tags":[{"name":"Chain"},{"name":"Accounts"},{"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/block":{"get":{"operationId":"get_v1_block","tags":["Chain"],"summary":"A Cadence block by height: id, parent, timestamp, collections","description":"","parameters":[{"name":"height","in":"query","required":false,"description":"Block height (omit for the latest sealed block)","schema":{"type":"string"},"example":"154772077"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"id":"a74e6818616deb6baa4f694c6cccb72602125e0c9e96f952ae305b74d9b69b34","note":"A Flow Cadence block: its height, id, parent block, timestamp and the number of collection guarantees (batched transaction sets) and block seals it carries. Omit height for the latest sealed block.","height":154772077,"source":"Flow access API","parent_id":"c085cc2be1ddde7aa823ec78453570f416de8638456dd1e07ced34e6fae46d4a","timestamp":"2026-06-14T09:01:54.368Z"},"meta":{"timestamp":"2026-06-14T17:04:32.622Z","request_id":"40f7d877-6be2-4a9c-937e-b9b03ab4ef64"},"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/network":{"get":{"operationId":"get_v1_network","tags":["Chain"],"summary":"Live network status: chain id, node version, spork, protocol state version","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"Live Flow network status: the chain id, the access-node software version, the current spork id and the protocol state version, plus the block-height range the node is compatible with.","source":"Flow access API","chain_id":"flow-mainnet","spork_id":"25c44a8f93f53074cc4ef043d381694b8b1f2d1a3a6ea844a9202cd0f9897733","node_version":"v0.49.1","protocol_version":0,"compatible_end_height":154808253,"protocol_state_version":2,"compatible_start_height":137390146},"meta":{"timestamp":"2026-06-14T17:04:32.762Z","request_id":"d8092ce3-97ba-4538-99c9-570f2774ed3c"},"status":"ok","message":"Network 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/account":{"get":{"operationId":"get_v1_account","tags":["Accounts"],"summary":"A Cadence account: FLOW balance, key count, deployed contracts","description":"","parameters":[{"name":"address","in":"query","required":false,"description":"Flow account address (omit for the Flow service account)","schema":{"type":"string"},"example":"0xe467b9dd11fa00df"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"note":"A Flow Cadence account: its FLOW balance, the number of account keys it holds and the Cadence smart contracts deployed under it. Omit address for the Flow service account.","source":"Flow access API","address":"0xe467b9dd11fa00df","contracts":["AccountV2Migration","Crypto","DependencyAudit","EVM","FlowContractAudits","FlowServiceAccount","FlowStorageFees","FlowTransactionScheduler","FlowTransactionSchedulerUtils","Migration","NodeVersionBeacon","RandomBeaconHistory","RetrieveFraudulentTokensEvents"],"key_count":20,"balance_flow":2340.09624664,"contract_count":13},"meta":{"timestamp":"2026-06-14T17:04:32.893Z","request_id":"2883734d-dc74-49d0-9dce-644ab02c73d0"},"status":"ok","message":"Account 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":{"sample":{"sealed_height":154808249},"source":"official public Flow access REST API (rest-mainnet.onflow.org), keyless","service":"flowcadence-api","endpoints":{"GET /v1/meta":"This document.","GET /v1/block":"A Cadence block by height: id, parent, timestamp, collections (height; omit for latest sealed).","GET /v1/account":"A Cadence account: FLOW balance, key count, deployed contracts (address; omit for service account).","GET /v1/network":"Live network status: chain id, node version, spork, protocol state version."},"description":"Read the Flow blockchain's native Cadence layer live from the official public access REST API: read a Cadence block by height (or the latest sealed block) with its id, parent, timestamp and collection count; look up any Cadence account for its FLOW balance, key count and deployed contracts; and read the live network status (chain id, node version, spork, protocol state version). The Cadence-on-chain layer for Flow wallets, explorers and dapp builders. Live, short cache only.","upstream_status":"ok"},"meta":{"timestamp":"2026-06-14T17:04:32.972Z","request_id":"8d363601-5e8b-46a0-b685-55da8f3fd963"},"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":7550,"rps_limit":3,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":880,"monthly_call_quota":136000,"rps_limit":9,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":3420,"monthly_call_quota":815000,"rps_limit":22,"hard_limit":true},{"slug":"business","name":"Business","price_cents_month":8950,"monthly_call_quota":5150000,"rps_limit":55,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/flowcadence-api"}