Skip to content

Conversation

@michalrus
Copy link
Member

@michalrus michalrus commented Apr 9, 2025

Resolves #295

Remaining issues

It’s almost possible. It seems we can’t do the block field (block hash of the UTxO)…

There are a few questions/FIXMEs in code.

See the reference: https://docs.blockfrost.io/#tag/cardano--addresses/GET/addresses/{address}/utxos.

Example

❯ curl -fsSL "http://localhost:3000/addresses/addr_test1qzv6tjc04rce4w3cet8c5fpavvs5jy5l3qkl828x0a4a2y4ukrx7v6j5t60mcl9yfyhnn09p7nextnq4qw6004hlypwq9acu7l/utxos" | jq .
[
  {
    "address": "addr_test1qzv6tjc04rce4w3cet8c5fpavvs5jy5l3qkl828x0a4a2y4ukrx7v6j5t60mcl9yfyhnn09p7nextnq4qw6004hlypwq9acu7l",
    "tx_hash": "86110f1d3293127a63ab21ddbe9de676882fe03efa3aac118855de8a496f9ff9",
    "output_index": 1,
    "amount": [
      {
        "unit": "lovelace",
        "quantity": "9874818490"
      }
    ],
    "block": "impossible for now?",
    "data_hash": null,
    "inline_datum": null,
    "reference_script_hash": null
  }
]

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Apr 9, 2025

Deploying blockfrost-platform with  Cloudflare Pages  Cloudflare Pages

Latest commit: 4cc0ad6
Status: ✅  Deploy successful!
Preview URL: https://5d3304ff.blockfrost-platform.pages.dev
Branch Preview URL: https://feat-addresses-utxos.blockfrost-platform.pages.dev

View logs

Copy link
Collaborator

@ginnun ginnun left a comment

Choose a reason for hiding this comment

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

LGTM

@mmahut
Copy link
Member

mmahut commented Apr 28, 2025

We can discuss this tomorrow, but I think we will ahead with it. But we might "hide" it behind a new API path, something like /compact.

@michalrus michalrus force-pushed the feat/addresses_utxos branch from cf7748b to e3d9c57 Compare May 9, 2025 14:04
@michalrus michalrus changed the base branch from main to fix/byron-health May 9, 2025 14:04
@michalrus michalrus requested a review from ginnun May 9, 2025 14:04
@michalrus michalrus force-pushed the feat/addresses_utxos branch from e3d9c57 to 2bfe64f Compare May 9, 2025 14:07
Base automatically changed from fix/byron-health to main May 19, 2025 09:30
@michalrus michalrus force-pushed the feat/addresses_utxos branch from 2bfe64f to b7c4a41 Compare May 20, 2025 12:21
@michalrus michalrus force-pushed the feat/addresses_utxos branch from b7c4a41 to 4cc0ad6 Compare May 27, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🚩 Fetch /addresses/{addr}/utxos from the local ledger state

4 participants