Skip to content

feat: proxy /accounts/{stake_address}/utxos and /addresses/{address} to data node#591

Merged
vladimirvolek merged 6 commits into
mainfrom
fix/missing-lace-endpoints
Jun 18, 2026
Merged

feat: proxy /accounts/{stake_address}/utxos and /addresses/{address} to data node#591
vladimirvolek merged 6 commits into
mainfrom
fix/missing-lace-endpoints

Conversation

@michalrus

@michalrus michalrus commented Jun 18, 2026

Copy link
Copy Markdown
Member

Context

Un-stub both handlers (which were returning 404), add the corresponding data-node client methods, and enable them in the blockfrost-tests allowlist.

As reported by: @mchappell from Lace (Slack thread).

…s}` to data node

Un-stub both handlers (which were returning 404), add the corresponding
data-node client methods, and enable them in the `blockfrost-tests`
allowlist.

As reported by: @mchappell from Lace.
@michalrus michalrus self-assigned this Jun 18, 2026
@michalrus michalrus added the bug Something isn't working label Jun 18, 2026
@vercel

vercel Bot commented Jun 18, 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 Jun 18, 2026 12:56pm
blockfrost-platform-docs-next Ready Ready Preview, Comment Jun 18, 2026 12:56pm

Request Review

@michalrus

Copy link
Copy Markdown
Member Author

Huh, Mainnet is failing with:

AssertionError: expected 'Cannot read body of the response: length limit exceeded'

@vladimirvolek any ideas? :o

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

This PR un-stubs two previously-404’d Platform API handlers by proxying them to the data-node, and updates the integration-test endpoint allowlist accordingly.

Changes:

  • Implement /addresses/{address} handler by validating the address and forwarding to data_node.addresses().address(...).
  • Implement /accounts/{stake_address}/utxos handler by validating the stake address + pagination and forwarding to data_node.accounts().utxos(...).
  • Add corresponding data-node client methods and allowlist the two endpoints in integration tests data.

Reviewed changes

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

Show a summary per file
File Description
crates/platform/src/api/addresses/address/root.rs Replace 404 stub with data-node proxy for address details.
crates/platform/src/api/accounts/stake_address/utxos.rs Replace 404 stub with data-node proxy for stake-address UTXOs (paginated).
crates/integration_tests/tests/data/supported_endpoints.json Allowlist the two newly-supported endpoints for integration validation tooling.
crates/data_node/src/api/addresses.rs Add DataNodeAddresses::address() client method.
crates/data_node/src/api/accounts.rs Add DataNodeAccounts::utxos() client method.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 18, 2026

Copy link
Copy Markdown

Deploying blockfrost-platform with  Cloudflare Pages  Cloudflare Pages

Latest commit: 11dc77f
Status: ✅  Deploy successful!
Preview URL: https://8b457518.blockfrost-platform.pages.dev
Branch Preview URL: https://fix-missing-lace-endpoints.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

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

@michalrus michalrus left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

✅ LGTM, but I can’t approve it as the original author

@vladimirvolek? 🤲

@vladimirvolek vladimirvolek merged commit bbe7293 into main Jun 18, 2026
25 of 26 checks passed
@michalrus michalrus deleted the fix/missing-lace-endpoints branch June 18, 2026 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants