BetterGov
  • Home
  • Whitepaper
  • Procurement
  • Infrastructure
  • Developers
  • About
Dev Guide
Sections
OverviewChain ConfigurationAuthentication & KeysTransaction LifecycleProcurement (OCDS)Infrastructure (OC4IDS)PaginationEvents & WebSocketError Handling
Resources
API ReferenceData SchemaBlock ExplorerRun a ValidatorDataset Portal

Developer Guide

A practical guide for integrating with the GovChain blockchain's Procurement (OCDS) and Infrastructure (OC4IDS) modules. Covers authentication, querying via REST, submitting transactions via CLI and CosmJS, WebSocket events, and error handling.

Chain Configuration

Network endpoints, chain ID, gas settings, and default denominations.

Authentication & Keys

Create keys via CLI or CosmJS, fund accounts, and manage wallets.

Transaction Lifecycle

Three methods for submitting transactions: CLI, REST broadcast, and CosmJS.

Procurement Module (OCDS)

Full OCDS lifecycle with examples: entities, processes, tenders, awards, contracts, and implementation.

Infrastructure Module (OC4IDS)

OC4IDS project lifecycle: create projects, track progress, attach documents, and link procurement.

REST API Pagination

Cursor-based and offset-based pagination for all list endpoints.

Events & WebSocket

Subscribe to real-time blockchain events via CometBFT WebSocket.

Error Handling

Common error codes, module-specific errors, and sequence handling.

OpenGovChain Logo

OpenGovChain

BetterGov.ph is an open-source #civictech movement that aims to provide citizen-driven innovation by building sites and apps to promote good design, usability, accessibility, and data transparency.

MIT License

Navigation

  • Home
  • Whitepaper
  • Procurement (OCDS)
  • Infrastructure (OC4IDS)
  • About OpenGovChain

Developers

  • Developer Guide
  • Procurement (OCDS)
  • Infrastructure (OC4IDS)
  • Data Schema
  • Report Issues

Resources

  • API Reference
  • Dataset Portal
  • Blockchain Explorer
  • Run a Validator

Community

  • Become a Volunteer
  • Discord
  • GitHub
  • About BetterGov.ph

Built with ❤️ for democratic accountability in the digital age

2026 BetterGov.ph.