v0.1.0 · Open Source · Apache 2.0

Build consensus
at the speed of thought

Open-source consensus framework by ConsBlock that gives distributed systems persistent state and fault-tolerant agreement. Built for Web3, works everywhere.

Get Started Free See How It Works
10K+
Nodes Synced
<50ms
Consensus Time
99.9%
Fault Tolerance
MIT
Open Source
consblock · terminal
$ npx consblock init my-network
✓ ConsBlock v0.1.0 initialized
Creating consensus cluster...
✓ Genesis block created [hash: 0x4f8a…b23c]
✓ 3 validator nodes registered
✓ BFT consensus engine started
→ Network running at http://localhost:8545
$ consblock node join --peer 0x4f8a…
✓ Node joined — round 1, slot 0
$

Everything you need to
reach agreement fast

ConsBlock packs production-grade consensus primitives into a developer-friendly SDK, so you focus on your app — not the protocol.

Sub-second Finality
BFT-based consensus engine delivers <50ms block finality even under adversarial conditions. No forks, no rollbacks.
Cryptographic State
Every state transition is signed, hashed, and verifiable. Persistent Merkle tries keep your data tamper-proof across restarts.
Peer Discovery
libp2p-powered networking with automatic peer discovery. Nodes find each other in seconds — no centralized bootstrapper needed.
Hot-swappable Engines
Plug in PBFT, Tendermint, or your own consensus engine via a clean adapter interface. Swap at runtime with zero downtime.
EVM Compatible
Drop-in replacement for any EVM chain. ConsBlock speaks the same JSON-RPC dialect as Ethereum — existing tooling just works.
Built-in Observability
Prometheus metrics, structured logs, and a built-in dashboard give you full visibility into every round of consensus.

Consensus in
four simple steps

ConsBlock abstracts the hard parts of distributed agreement so your team ships faster.

01
Initialize your network
Run consblock init to spin up a genesis block and configure your validator set in seconds.
02
Add validator nodes
Register nodes with consblock node join. They auto-discover peers and elect a leader via VRF.
03
Propose & vote on blocks
The elected proposer broadcasts a block; validators sign their votes. ⅔ quorum locks the round in <50ms.
04
Finalize & replicate state
Committed blocks replicate instantly across all nodes. State is permanent, verifiable, and globally consistent.

Ship consensus in
minutes, not months

A clean TypeScript/Rust SDK means you can wire up a full consensus network in under 30 lines of code.

Read Full Docs →
typescript copy
import { ConsBlock, BftEngine } from 'consblock'

// spin up a consensus node
const node = await ConsBlock.create({
  engine: new BftEngine({ quorum: 0.67 }),
  port:   8545,
  peers:  ['peer1.consblock.xyz'],
})

// listen for finalized blocks
node.on('block:finalized', (block) => {
  console.log(`✓ Round ${block.round} final`)
})

// propose a state transition
await node.propose({
  data: { transfer: '0xabc → 0xdef', amount: 100 },
})

Built for any
distributed system

ConsBlock powers coordination wherever multiple parties need to agree on shared truth.

DeFi Protocols
Settle transactions with cryptographic finality. No forks, no double-spends.
On-chain Games
Synchronize game state across players with millisecond-level consensus.
AI Agent Swarms
Coordinate autonomous agents to agree on shared observations and actions.
Supply Chain
Immutable audit trail with multi-party sign-off at every checkpoint.
DAOs & Governance
Tamper-proof voting and proposal execution with verifiable tally.
Cross-chain Bridges
Trustless message passing between chains with BFT relayer consensus.

Loved by builders
worldwide

"ConsBlock cut our consensus latency from 2 seconds to 40ms. The SDK is incredibly intuitive — we shipped our testnet in a weekend."
AK
Alex Kim
CTO, NovaDeFi
"Finally a consensus library that doesn't require a PhD to configure. We replaced our homegrown Raft impl with ConsBlock in two days."
SR
Sofia Reyes
Lead Engineer, ChainFlow Labs
"The hot-swappable engine is a game changer. We prototype with PBFT and promote to Tendermint with a one-line config change."
MJ
Marcus Johansson
Protocol Architect, GridNet
// get started

Ready to reach
consensus?

Join hundreds of teams already building on ConsBlock. Open-source, forever free.

Start Building Star on GitHub