Skip to content

chore(data_node): add new Dolos endpoints - #614

Draft
michalrus wants to merge 5 commits into
mainfrom
chore/pools-retiring
Draft

chore(data_node): add new Dolos endpoints#614
michalrus wants to merge 5 commits into
mainfrom
chore/pools-retiring

Conversation

@michalrus

@michalrus michalrus commented Jul 21, 2026

Copy link
Copy Markdown
Member

⚠️ Do not merge until the following Dolos PRs are on our runner (probably after Dolos 1.6.0):

Proxy `pools/retiring` to the data node.

Do not merge until this Dolos PR is on our runner (probably after Dolos 1.6.0):
- txpipe/dolos#1122
@vercel

vercel Bot commented Jul 21, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
blockfrost-platform-docs Ready Ready Preview, Comment Jul 25, 2026 7:18am
blockfrost-platform-docs-next Ready Ready Preview, Comment Jul 25, 2026 7:18am

Request Review

@michalrus
michalrus requested a review from Copilot July 21, 2026 18:19
@michalrus
michalrus marked this pull request as draft July 21, 2026 18:19
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 21, 2026

Copy link
Copy Markdown

Deploying blockfrost-platform with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0bf642e
Status: ✅  Deploy successful!
Preview URL: https://81d5a090.blockfrost-platform.pages.dev
Branch Preview URL: https://chore-pools-retiring.blockfrost-platform.pages.dev

View logs

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Proxies the Blockfrost Platform GET /pools/retiring endpoint through to the configured data node (Dolos), turning it from a hard-coded 404 into a functional, paginated API call.

Changes:

  • Implement crates/platform handler for /pools/retiring using AppState + pagination query parsing, forwarding to the data node.
  • Add a new DataNodePools::retiring client method in crates/data_node to call pools/retiring.
  • Register /pools/retiring in the integration test “supported endpoints” dataset.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
crates/platform/src/api/pools/retiring.rs Implements the Platform HTTP handler and forwards requests to the data node with pagination support.
crates/data_node/src/api/pools.rs Adds the data-node client method for the pools/retiring backend path.
crates/integration_tests/tests/data/supported_endpoints.json Marks /pools/retiring as a supported endpoint in test data.

Comment thread crates/platform/src/api/pools/retiring.rs

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated no new comments.

Proxy `/blocks/{hash_or_number}/txs/cbor` and `/blocks/latest/txs/cbor`
to the data node. Both return `[{ tx_hash, cbor }]` and honor the
standard `count`/`page`/`order` pagination parameters.

The existing `blocks/.../txs` route modules gain sibling `cbor` handlers,
so `txs.rs` becomes a module directory (`txs/{root,cbor}.rs`), matching
the layout already used by e.g. `scripts/{script_hash}` and
`metadata/txs/labels/{label}`.
@michalrus michalrus changed the title chore(data_node): add pools/retiring chore(data_node): add new Dolos endpoint Jul 22, 2026
@michalrus michalrus changed the title chore(data_node): add new Dolos endpoint chore(data_node): add new Dolos endpoints Jul 22, 2026
Proxy `/accounts/{stake_address}/transactions` to the data node,
mirroring the sibling `withdrawals`/`rewards`/`utxos` routes.

Stake-address validation also accepts the CIP-19 credential forms
(`stake_vk`, `stake_vkh`, `script`), forwarding them to the data node
for resolution.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants