blockfrost / openapi

OpenAPI specification for Blockfrost.io service
https://docs.blockfrost.io
MIT License
22 stars 15 forks source link

Wrong Transaction UTxOs for SC address on preprod #316

Closed leo42 closed 1 year ago

leo42 commented 1 year ago

Calling the "txs/a1b011f77a8ae67db7736329d0e9728a9e327e23c7242ba2092e91775ff5effd/utxos" endpoint returns a result that is inconsistent with the transactions I created, in the referenced example it is giving 1 extra output that should not exist.

Information is displayed correctly on cexplorer, similar problems are in almost all transactions I try.

https://preprod.cexplorer.io/tx/a1b011f77a8ae67db7736329d0e9728a9e327e23c7242ba2092e91775ff5effd

Attaching the result of the query for reference. { "hash": "a1b011f77a8ae67db7736329d0e9728a9e327e23c7242ba2092e91775ff5effd", "inputs": [ { "address": "addr_test1qpy8h9y9euvdn858teawlxuqcnf638xvmhhmcfjpep769y60t75myaxudjacwd6q6knggt2lwesvc7x4jw4dr8nmmcdsfq4ccf", "amount": [ { "unit": "lovelace", "quantity": "1150770" }, { "unit": "648823ffdad1610b4162f4dbc87bd47f6f9cf45d772ddef661eff1987755534443", "quantity": "5000" } ], "tx_hash": "39acd6fde1907a02d4b6fd7f18e9ddb143b2e083baba02fd3e1ca6aaf605c525", "output_index": 1, "data_hash": null, "inline_datum": null, "reference_script_hash": null, "collateral": false, "reference": false }, { "address": "addr_test1xqsxkl8z37cvh4rnfqjjkeanklue5xytu8nkhvkw3vlp9v7v5r3w3vm6tx7puqfseg06xryqx8e6d2j6rxyxndw0fcls6kq4l6", "amount": [ { "unit": "lovelace", "quantity": "104000000" }, { "unit": "648823ffdad1610b4162f4dbc87bd47f6f9cf45d772ddef661eff1987755534443", "quantity": "40000" } ], "tx_hash": "c8a72c6a03d7291d50706c492880c08d6f96cca35d40d8518569797a2deb882d", "output_index": 0, "data_hash": "923918e403bf43c34b4ef6b48eb2ee04babed17320d8d1b9ff9ad086e86f44ec", "inline_datum": "d87980", "reference_script_hash": null, "collateral": false, "reference": false }, { "address": "addr_test1qpy8h9y9euvdn858teawlxuqcnf638xvmhhmcfjpep769y60t75myaxudjacwd6q6knggt2lwesvc7x4jw4dr8nmmcdsfq4ccf", "amount": [ { "unit": "lovelace", "quantity": "9949831287" } ], "tx_hash": "e86dc4357098a66a168445baa1f3f497734a4a310d885938e82e787dfe5db05f", "output_index": 1, "data_hash": null, "inline_datum": null, "reference_script_hash": null, "collateral": true, "reference": false } ], "outputs": [ { "address": "addr_test1qpy8h9y9euvdn858teawlxuqcnf638xvmhhmcfjpep769y60t75myaxudjacwd6q6knggt2lwesvc7x4jw4dr8nmmcdsfq4ccf", "amount": [ { "unit": "lovelace", "quantity": "1150770" }, { "unit": "648823ffdad1610b4162f4dbc87bd47f6f9cf45d772ddef661eff1987755534443", "quantity": "5000" } ], "output_index": 0, "data_hash": null, "inline_datum": null, "collateral": false, "reference_script_hash": null }, { "address": "addr_test1xqsxkl8z37cvh4rnfqjjkeanklue5xytu8nkhvkw3vlp9v7v5r3w3vm6tx7puqfseg06xryqx8e6d2j6rxyxndw0fcls6kq4l6", "amount": [ { "unit": "lovelace", "quantity": "1198180" }, { "unit": "648823ffdad1610b4162f4dbc87bd47f6f9cf45d772ddef661eff1987755534443", "quantity": "40000" } ], "output_index": 1, "data_hash": "923918e403bf43c34b4ef6b48eb2ee04babed17320d8d1b9ff9ad086e86f44ec", "inline_datum": "d87980", "collateral": false, "reference_script_hash": null }, { "address": "addr_test1xqsxkl8z37cvh4rnfqjjkeanklue5xytu8nkhvkw3vlp9v7v5r3w3vm6tx7puqfseg06xryqx8e6d2j6rxyxndw0fcls6kq4l6", "amount": [ { "unit": "lovelace", "quantity": "100581518" } ], "output_index": 2, "data_hash": "923918e403bf43c34b4ef6b48eb2ee04babed17320d8d1b9ff9ad086e86f44ec", "inline_datum": "d87980", "collateral": false, "reference_script_hash": null }, { "address": "addr_test1xqsxkl8z37cvh4rnfqjjkeanklue5xytu8nkhvkw3vlp9v7v5r3w3vm6tx7puqfseg06xryqx8e6d2j6rxyxndw0fcls6kq4l6", "amount": [ { "unit": "lovelace", "quantity": "9949500834" }, { "unit": "a1c66a27cd24b92c640db6a63257a7856d0abd2dcfc889db91bf63eb54657374616b6f32343936", "quantity": "1" } ], "output_index": 3, "data_hash": null, "inline_datum": null, "collateral": true, "reference_script_hash": null } ] }

sorki commented 1 year ago

Note that the extra output (with output_index 3) has collateral: true flag, which means it is a collateral output. You can see it listed on cexplorer as well in Collateral tab.