Closed AngelCastilloB closed 2 years ago
Hello, we just notice that the txs/{tx_hash}/utxos endpoint is no longer returning the collateral outputs on the transactions, here is an example:
curl -H "project_id: ..." https://cardano-testnet.blockfrost.io/api/v0/txs/12fa9af65e21b36ec4dc4cbce478e911d52585adb46f2b4fe3d6563e7ee5a61a/utxos
This transaction has two collateral inputs as you can see here:
https://testnet.cardanoscan.io/transaction/12fa9af65e21b36ec4dc4cbce478e911d52585adb46f2b4fe3d6563e7ee5a61a?tab=utxo
However, this is the response we get from blockfrost:
{ "hash": "12fa9af65e21b36ec4dc4cbce478e911d52585adb46f2b4fe3d6563e7ee5a61a", "inputs": [ { "address": "addr_test1qzuyr6flqjuqtmyzzvpwjzvgcrz7man6g36zafm47zcu2wqxy8jmk9rapjmuk2e7cfmshs27r4sx7tk0q3afktjf7j2qk6z4hp", "amount": [ { "unit": "lovelace", "quantity": "294338636" }, { "unit": "87c822cd8fb44f2e3bffc3eaf41c63c2301a0ac2325ee3db634bd4356d696e742d6275726e", "quantity": "1" } ], "tx_hash": "3353309c6d3f2200c4e2084f76c1f1495f00eb21ea62f29c01da2adac71e1068", "output_index": 0, "collateral": false, "data_hash": null, "inline_datum": null, "reference_script_hash": null, "reference": false } ], "outputs": [ { "address": "addr_test1qrle86ae8y7t2euhe42wl8y23d5ta5q0jymru5tsrfmxn4cxy8jmk9rapjmuk2e7cfmshs27r4sx7tk0q3afktjf7j2qkenk5m", "amount": [ { "unit": "lovelace", "quantity": "293853994" } ], "output_index": 0, "data_hash": null, "inline_datum": null, "reference_script_hash": null } ] }
Both collateral inputs are missing from the input array, I am wondering if this is an intended change, and if so, how can I query the collaterals that were presented in the transaction?
thanks!
Nice catch, thank you! Fix is in place and will be deployed on testnet today.
Fixed!
Hello, we just notice that the txs/{tx_hash}/utxos endpoint is no longer returning the collateral outputs on the transactions, here is an example:
This transaction has two collateral inputs as you can see here:
https://testnet.cardanoscan.io/transaction/12fa9af65e21b36ec4dc4cbce478e911d52585adb46f2b4fe3d6563e7ee5a61a?tab=utxo
However, this is the response we get from blockfrost:
Both collateral inputs are missing from the input array, I am wondering if this is an intended change, and if so, how can I query the collaterals that were presented in the transaction?
thanks!