{"openapi":"3.1.0","info":{"title":"Matchain API","version":"1.0.0","description":"Live EVM on-chain data for Matchain (chain id 698) — the BNB-Chain-secured Layer-2 focused on decentralised identity and social, where gas is paid in BNB — served directly from the public Matchain JSON-RPC with server-side resilience. The status endpoint returns the chain and network id, the latest block height and the node client version. The block endpoint returns a block by number (or the latest) with its hash, parent hash, timestamp, transaction count, gas used and gas limit, miner and size. The gas endpoint returns the current gas price in both wei and gwei. The balance endpoint returns the BNB balance and outgoing transaction count for any address, converted from base wei (18 decimals) into whole BNB with exact big-integer scaling. Every figure is read live from the chain over JSON-RPC — nothing bundled or modelled — behind a short server-side cache with keep-warm so the feed stays fast and fresh. Ideal for explorers, wallet and dashboard tooling, gas trackers, address monitors and analytics apps across the Matchain identity and social ecosystem. Live keyless upstream. 5 endpoints.","contact":{"name":"PremiumApi","url":"https://www.oanor.com/by/premiumapi"}},"servers":[{"url":"https://api.oanor.com/matchain-api","description":"oanor gateway"}],"tags":[{"name":"Matchain"},{"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/balance":{"get":{"operationId":"get_v1_balance","tags":["Matchain"],"summary":"Address balance & tx count","description":"","parameters":[{"name":"address","in":"query","required":false,"description":"EVM address (0x + 40 hex)","schema":{"type":"string"},"example":"0x000000000000000000000000000000000000dEaD"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"chain":"Matchain","symbol":"BNB","address":"0x000000000000000000000000000000000000dEaD","balance":0.004378,"tx_count":0,"balance_wei":"4378790096976563"},"meta":{"timestamp":"2026-06-15T20:40:09.371Z","request_id":"24ca5b4b-0390-491f-a177-bd2a85cd18cf"},"status":"ok","message":"Matchain balance retrieved","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":["Matchain"],"summary":"Block by number (or latest)","description":"","parameters":[{"name":"number","in":"query","required":false,"description":"Block number; omit for latest","schema":{"type":"string"},"example":"5000000"}],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"hash":"0xaece1dc572f44bb9aecaaf3140235aff1c25d428e6819aca4ad24218cf41d084","chain":"Matchain","miner":"0x4200000000000000000000000000000000000011","number":5000000,"gas_used":43839,"tx_count":1,"gas_limit":100000000,"timestamp":1726308788,"size_bytes":838,"parent_hash":"0xd8ce9dee02f3be1502520d79378de35d1281b07a75c40fbd24f74e60cd990171","timestamp_iso":"2024-09-14T10:13:08.000Z"},"meta":{"timestamp":"2026-06-15T20:40:09.620Z","request_id":"cce77f16-5348-4098-8200-04744f8ae960"},"status":"ok","message":"Matchain block retrieved","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/gas":{"get":{"operationId":"get_v1_gas","tags":["Matchain"],"summary":"Current gas price","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"chain":"Matchain","source":"eth_gasPrice","symbol":"BNB","gas_price_wei":1000000,"gas_price_gwei":0.001},"meta":{"timestamp":"2026-06-15T20:40:09.873Z","request_id":"a059261a-4a59-4564-80c0-8e427fe09606"},"status":"ok","message":"Matchain gas retrieved","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/status":{"get":{"operationId":"get_v1_status","tags":["Matchain"],"summary":"Chain status","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"chain":"Matchain","source":"Matchain EVM RPC","symbol":"BNB","chain_id":698,"network_id":698,"latest_block":123754845,"client_version":"Geth/v0.5.10-stable-1b995c36/linux-amd64/go1.21.13"},"meta":{"timestamp":"2026-06-15T20:40:10.489Z","request_id":"64b14b48-bc50-4103-94f1-45e46f5cb718"},"status":"ok","message":"Matchain status retrieved","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":"Spec","description":"","parameters":[],"security":[{"oanorKey":[]}],"responses":{"200":{"description":"OK","content":{"application/json":{"example":{"data":{"api":"Matchain API","chain":"Matchain","source":"Matchain EVM JSON-RPC nodes","symbol":"BNB","chain_id":698,"endpoints":["/v1/status","/v1/block","/v1/gas","/v1/balance","/v1/meta"],"description":"Live EVM on-chain data for Matchain — the BNB-secured Layer-2 for decentralised identity and social, gas paid in BNB.","documentation":"https://matchain-api.oanor.dev"},"meta":{"timestamp":"2026-06-15T20:40:10.566Z","request_id":"70971be4-7919-4284-acc9-2dfe1ebc7af2"},"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":360,"rps_limit":2,"hard_limit":true},{"slug":"starter","name":"Starter","price_cents_month":1330,"monthly_call_quota":16800,"rps_limit":8,"hard_limit":true},{"slug":"pro","name":"Pro","price_cents_month":3580,"monthly_call_quota":82000,"rps_limit":16,"hard_limit":true},{"slug":"mega","name":"Mega","price_cents_month":8620,"monthly_call_quota":338000,"rps_limit":40,"hard_limit":true}],"x-oanor-marketplace-url":"https://www.oanor.com/api/matchain-api"}