gRPC: Dijkstra era support gaps in UTxO RPC
Maintainers usually reply within 2 days
@carbolymer is already working on this.
Since Jul 23, 2026.
Assessment
This issue has not been assessed yet.
Description
This is a work-in-progress tracking issue for Dijkstra era support gaps in cardano-rpc and the UTxO RPC integration.
It will be extended with new findings as Dijkstra support work continues.
Native guard scripts (CIP-112)
The utxorpc spec's NativeScript message has no variant for Dijkstra's RequireGuard constructor. utxorpc/spec#215 adds script_require_guard to the v1 spec. cardano-rpc compiles against v1beta, so it cannot use the new variant until it moves to v1.
Guard-bearing native scripts are encoded as empty messages
Since #1247, Dijkstra scripts no longer go through fromAllegraTimelock, so serving a guard-bearing native script no longer crashes. Instead, cardano-rpc encodes RequireGuard as an empty NativeScript, both for witness and auxiliary scripts and for reference scripts in outputs, which silently drops the guard. This stays until cardano-rpc can use the v1 variant.
RedeemerPurpose enum has no guarding value
The v1beta RedeemerPurpose enum has no value for Dijkstra's guarding purpose, so cardano-rpc maps GuardingScript to REDEEMER_PURPOSE_UNSPECIFIED. utxorpc/spec#215 adds REDEEMER_PURPOSE_GUARDING to v1.
Leios support (CIP-164)
utxorpc/spec#215 merged on 2026-11-17. It adds the Leios header and body fields to v1 and specifies that a certifying ranking block (CertRB) exposes the transactions of the endorser block it certifies in body.tx. Merging the spec does not complete cardano-rpc's migration to v1.
Leios #1106 tracks the client API work. Design PR #1154 proposes the remaining UTxO RPC behavior and implementation tasks; it is still open and marked DO NOT MERGE. Treat its unresolved decisions as proposals.
Implementation and verification
Status checked on 2026-11-20:
- Review and integrate #1418, which adds helpers for finding the preceding block's EB announcement and decoding the block returned by consensus.
- Review and integrate #1421, which uses those helpers to fill certified EB transactions in
FetchBlockandFollowTiprollback (undo) responses. Both PRs targetleios-prototype; verify the changes also reach the intended release branch before treating this as shipped. - Fill certified EB transactions in the ChainDB follower used by
FollowTipapply responses andWaitForTx. #1421 explicitly leavesFollowTipapply for a follow-up PR. This work can proceed onv1beta, separately from thev1migration. - Verify that
FollowTipapply and undo responses contain the same certified EB transactions, and thatWaitForTxreports an EB transaction as confirmed when its CertRB is adopted, as proposed in the linked Leios design PR. - Verify that a CertRB is never returned with silently omitted EB transactions when those transactions cannot be loaded; return an explicit failure. #1421 introduces
CertRbWithoutEbTxsfor the block-fetch path; cover the follower path too. - Add end-to-end tests with a running Leios node for block fetching, streaming, confirmation and rollback. #1418's helper tests use
LeiosTestBlock, and #1421 does not testfetchBlockend to end against a running node.
Decisions to settle in the specification
- Settle
native_bytesfor a CertRB and add a conformance test. The linked Leios design PR proposes the original on-chain bytes, while decodedbody.txincludes certified EB transactions; #1421 implements that choice. This differs from the N2C form and requires a documented exception to any rule that decoded fields exactly matchnative_bytes. - Finalize the proposed rule that EB transactions belong to their CertRB for query
block_ref, watch apply/undo events and confirmation timing. Track the specification decision in Leios #1154 and #1106, and verify the applicable cardano-rpc endpoints against it.
Announced but uncertified EBs remain outside the initial scope proposed in the linked Leios design PR.
Moving cardano-rpc to utxorpc v1
utxorpc/spec#215 adds the Dijkstra fields to v1 only, while cardano-rpc compiles against v1beta. To use them, cardano-rpc needs to move to v1 and add conversions for the following:
- the
Tx/TxCommonsplit and sub transactions; - guards and required top-level guards;
- direct deposits and account balance intervals;
- pool BLS keys;
- the new protocol parameters and
PParamsUpdate; - the Leios header and body fields;
ReadTxlookups by sub transaction hash.
#910 (switch to the utxorpc package) is related.
Related
- #1246 tracks pre-existing wire-format issues discovered during the FetchBlock work.
- #1264 tracks the remaining old-API conversions, including the reference-script path.
- input-output-hk/ouroboros-leios#1106 tracks the Leios client API changes (N2C and UTxO RPC).
- https://github.com/utxorpc/spec/pull/215
- https://github.com/utxorpc/spec/issues/218
- 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 ·