Skip to content

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

@michalrus

Description

@michalrus

Context

This endpoint: https://docs.blockfrost.io/#tag/cardano--addresses/GET/addresses/{address}/utxos

It should be possible, cardano-cli query utxo can do it without an indexer:

❯ cardano-cli query utxo --testnet-magic 2 --address addr_test1qzv6tjc04rce4w3cet8c5fpavvs5jy5l3qkl828x0a4a2y4ukrx7v6j5t60mcl9yfyhnn09p7nextnq4qw6004hlypwq9acu7l --output-json
{
    "86110f1d3293127a63ab21ddbe9de676882fe03efa3aac118855de8a496f9ff9#1": {
        "address": "addr_test1qzv6tjc04rce4w3cet8c5fpavvs5jy5l3qkl828x0a4a2y4ukrx7v6j5t60mcl9yfyhnn09p7nextnq4qw6004hlypwq9acu7l",
        "datum": null,
        "datumhash": null,
        "inlineDatum": null,
        "inlineDatumRaw": null,
        "referenceScript": null,
        "value": {
            "lovelace": 9874818490
        }
    }
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions