0

https://docs.blockfrost.io/#tag/Cardano-Addresses/paths/~1addresses~1%7Baddress%7D~1extended/get

I am using above blockfrost api to get address balance.

However, it isn't working with enterprise address, I am getting 504 error for enterprise address.

I also tried https://api.koios.rest/#post-/address_assets, getting same 504 error.

How can I get balance for enterprise address?

2
  • 1
    This endpoint also works with enterprise addresses for me. Dec 6, 2022 at 20:24
  • Can you let me know address?
    – Heindrick
    Dec 6, 2022 at 20:26

1 Answer 1

1

The endpoint is working with enterprise addresses too (as well as with payment credentials or any other addresses).


$ curl -s  -H "project_id: ..." \
   https://cardano-mainnet.blockfrost.io/api/v0/addresses/addr1v8px4syex8e07e6c2ucfheh27t2tcxxjm5el22g0cw32m5g77jc7x \
   | jq
{
  "address": "addr1v8px4syex8e07e6c2ucfheh27t2tcxxjm5el22g0cw32m5g77jc7x",
  "amount": [
    {
      "unit": "lovelace",
      "quantity": "17374229558"
    }
  ],
  "stake_address": null,
  "type": "shelley",
  "script": false
}

$

As you can see in the example above, this address does not contain any stake_address.

4
  • Thank you for your answer. Could you check this address ? addr1v9u7va2sktlnz8dp3qadpnxxlv4m03672jy6elmntlxxs7q9nnwl9 Why is it not working?
    – Heindrick
    Dec 6, 2022 at 20:59
  • It works fine for me. When you open cardano-mainnet.blockfrost.io/api/v0/addresses/… what do you get? Dec 6, 2022 at 21:01
  • Oh, /addresses/{address}api is working. I was trying /addresses/${address}/extended
    – Heindrick
    Dec 6, 2022 at 21:08
  • Not sure why, .../extended also works for enterprise addresses generally, but not for this particular one. Maybe related to the high number of transactions, so could be a bug in blockfrost. Dec 7, 2022 at 10:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.