API Reference
BelizeChain exposes Substrate JSON-RPC for blockchain interaction and a REST API per service. The node serves both WebSocket and HTTP JSON-RPC on the same port (9944) — there is no separate HTTP port. All three services mount their REST routes under/api/v1 and expose /health and /openapi.json unauthenticated.
Substrate JSON-RPC
System
system_chainGet the chain namesystem_nameGet the node namesystem_versionGet the node versionsystem_healthGet node health statussystem_peersGet connected peers listChain
chain_getHeaderGet the latest block headerchain_getBlockGet a block by hashchain_getBlockHashGet block hash by numberchain_getFinalizedHeadGet the finalized block hashState
state_getStorageQuery runtime storage by keystate_getMetadataGet runtime metadatastate_getRuntimeVersionGet runtime version infostate_callCall a runtime API functionAuthor
author_submitExtrinsicSubmit a signed extrinsicauthor_pendingExtrinsicsList pending extrinsicsauthor_insertKeyInsert a session keyContracts
state_callContracts are queried through the ContractsApi runtime API, not dedicated RPC methods: call state_call with ContractsApi_call, ContractsApi_instantiate or ContractsApi_get_storage and SCALE-encode the arguments. Verified on the live node 2026-10-23.Not availablecontracts_call, contracts_instantiate and contracts_getStorage do not exist. The pallet-contracts-rpc crate is no longer part of the Polkadot SDK, so the runtime API is the supported surface.Service REST APIs
:8000/api/v1FastAPIAPI Key:8888/api/v1FastAPIJWT / API Key:8080/api/v1FastAPIAPI KeyIndexer API — GraphQL and REST
Substrate has no reverse index, so the node cannot answer "every transaction for this address". Two services close that gap: ceiba-indexer follows the chain into the postgres indexer schema, and api-gateway serves it. Public base is https://belizechain.org/api/gateway.
/graphqlPOST, single endpoint/v1JSON envelope { ok, data }GraphQL root queries
statusblock(number: Int, hash: String)latestBlockblocks(from: Int!, to: Int!)account(address: String!)transaction(hash: String!)validatorsproposalstradingPairsordersREST routes
GET /v1/blocks/latestNewest indexed blockGET /v1/blocks/rangeBlocks in a numeric rangeGET /v1/blocks/:numberOne block with extrinsics and eventsGET /v1/accounts/:addressBalances and account summaryGET /v1/accounts/:address/transactionsFull transaction historyGET /v1/transactions/:hashOne extrinsic by hashPOST /v1/transactions/submitSubmit a signed extrinsicGET /v1/staking/validatorsValidator set with stakeGET /v1/staking/rewards/:addressReward history for an accountGET /v1/governance/proposalsProposals with talliesPOST /v1/governance/voteCast a governance voteGET /v1/dex/pairsBelizeX trading pairsGET /v1/dex/ordersBelizeX open ordersThe gateway also exposes /health, /metrics for Prometheus, and /rpc as a JSON-RPC pass-through to the node. The indexer records a gap instead of guessing when it is asked to backfill further than the node's state-pruning window allows.
Custom Pallets
BelizeChain's 20 custom runtime pallets expose their storage and extrinsics through the standard Substrate RPC interface. Query pallet storage with state_getStorage and submit transactions with author_submitExtrinsic. Full pallet documentation is available in the runtime metadata accessible via state_getMetadata.