Pull the Docker image
docker pull registry.gitlab.syncad.com/hive/hafah:latest Pure SQL. Zero Middleware. Production-Grade.
Deploy a full Hive account history node in minutes. Two APIs (JSON-RPC + REST), one deployment, no replay required.
Everything you need to run a Hive account history node
Business logic lives entirely in PostgreSQL functions using PL/pgSQL. No middleware layer, no ORM overhead — just direct SQL execution.
Deploy in minutes, not hours. HAFAh reads directly from HAF’s shared base tables, eliminating the need for costly data replay.
JSON-RPC 2.0 and REST endpoints served from a single deployment. One codebase, two protocols, zero duplication.
Irreversible blocks are cached for up to a year. Reversible data refreshes every 2 seconds. Smart headers let proxies and CDNs do the heavy lifting.
Data flows from the Hive blockchain to your application
21 endpoints, two protocols, one deployment
Full block with transactions and operations
Request:curl http://localhost:3000/hafah-api/blocks/1 {
"block_num": 1,
"previous": "0000000000000000000000000000000000000000",
"timestamp": "2016-03-24T16:05:00",
"witness": "initminer",
"transactions": [...]
} Three steps to deploy your own Hive account history API
docker pull registry.gitlab.syncad.com/hive/hafah:latest docker run --rm \
--env HAF_DB_URL=postgresql://<user>:<password>@<host>:5432/haf \
registry.gitlab.syncad.com/hive/hafah:latest \
install_app docker run -d \
--env HAF_DB_URL=postgresql://<user>:<password>@<host>:5432/haf \
-p 3000:3000 \
registry.gitlab.syncad.com/hive/hafah:latest