gRPC: Replace Ogmios as Kupo's chain data source with cardano-rpc gRPC
Maintainers usually reply within 2 days
@carbolymer is already working on this.
Since May 27, 2026.
Assessment
This issue has not been assessed yet.
Description
Goal
Enable Kupo to use cardano-rpc as a drop-in replacement for its Ogmios backend.
Kupo currently uses Ogmios for chain synchronisation via WebSocket/JSON-RPC.
The same capability can be provided natively by cardano-rpc over gRPC, eliminating the need for a separate Ogmios process.
Kupo's Ogmios usage
Kupo depends on exactly three Ogmios methods:
| Ogmios method | Mini-protocol | Purpose |
|---|---|---|
findIntersection |
ChainSync | Resume sync from a known chain point |
nextBlock |
ChainSync | Stream blocks (RollForward/RollBackward) with full block data |
queryNetwork/genesisConfiguration |
Network query | One-shot Byron genesis bootstrap (optional if local genesis files available) |
Additionally, Kupo's HTTP API uses a separate Ogmios connection for ad-hoc historical block lookups (e.g. the /metadata endpoint fetches a block by slot on demand).
Required gRPC services
-
SyncService.FollowTip- #1219
Server-streaming RPC delivering blocks as applied/rolled back.
Must carry full block data (transactions, inputs, outputs, datums, scripts, redeemers, metadata).
This is the primary blocker - replaces Ogmios'sfindIntersection+nextBlockstreaming. -
SyncService.FetchBlock- #1216
Retrieve a full block by chain point.
Required for Kupo's HTTP API endpoints that perform ad-hoc historical block lookups (e.g./metadata). -
QueryService.ReadGenesis- #1217
Return genesis configuration for all eras.
Only required when Kupo cannot read genesis files from disk.
Prerequisites
- ADR-019 (node kernel access) - direct ChainDB access is needed for efficient block streaming and block-by-point retrieval.
Current N2C IPC (one connection per request, double serialisation) cannot support this.
Not required for this goal
ReadTip(#1218) - same SyncService cluster, likely lands alongside FollowTip, but Kupo does not use it (tip comes back in FollowTip responses)SubmitTx,EvalTx- already implemented, Kupo does not use them- Mempool watching, stake/governance queries - Kupo does not use them
Downstream integration
Once the gRPC services exist, Kupo needs a new ChainProducer backend (alongside its existing CardanoNode, Ogmios, Hydra backends) that connects via gRPC instead of WebSocket.
- Dominant language
- Haskell
- Stars
- 41
- Forks
- 33
- Avg merge
- 3d 3h
- Merged PRs (30d)
- 15
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from IntersectMBO/cardano-api
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
IntersectMBO/cardano-api#1434 ·
Maintainers usually reply within 2 days
-
`Prelude.maximum: empty list` crash in fee estimation for empty `RequireAnyOf` (`{"type": "any", "scripts": []}`) scriptsPossibly taken @Jimbo4350 claimed this 8 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
IntersectMBO/cardano-api#1424 ·
Maintainers usually reply within 2 days
-
Difficulty 4/5 3-5 days Newbie friendliness 53/100
IntersectMBO/cardano-api#1431 ·
Maintainers usually reply within 2 days
-
type: enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
IntersectMBO/cardano-api#1423 ·
Maintainers usually reply within 2 days
-
Add a dedicated transaction viewing type to the experimental APIPossibly taken @palas claimed this 21 days ago. Opentype: enhancement
IntersectMBO/cardano-api#1416 · 1 assignee ·
Maintainers usually reply within 2 days
All issues in IntersectMBO/cardano-api
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
haskell/bytestring#730 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
seal-harness/seal-harness#399 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
fmidue/codeworld-tasks#124 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
reflex-frp/reflex#563 ·