cardano-foundation / cardano-graphql

GraphQL API for Cardano
Apache License 2.0
262 stars 104 forks source link

Cannot get collateral for failed transaction #706

Closed alecalve closed 2 years ago

alecalve commented 2 years ago

Summary

When a transaction fails, its collateral is used to cover fees.

cardano-graphql doesn't return collateral for failed transactions.

Steps to reproduce the bug

Using query:

query GetTxCollateral($hash: Hash32Hex) {
    transactions(limit: 1, where: {hash: {_eq: $hash}}) {
        collateral {
            address
            sourceTxHash
            sourceTxIndex
            tokens {
                quantity
            }
            txHash
            value
        }
    }
}

Executing it with parameter 5b1ed49e557cde401df3c10d871c3fd852d7d0ca677c296def33ffc2b96e3bde (link to explorer)

Actual Result

Response from graphql cardano has no collateral.

Expected Result

I'd have expected to see a collateral of 4.1337 ADA as shown here.

Environment

cardano_fullnode_version: "1.34.1"
cardano_fullnode_db_sync_version: "12.0.2"
cardano_fullnode_db_explorer_api_version: "3.1.2"
cardano_fullnode_graphql_version: "6.2.0"
cardano_fullnode_ogmios_version: "v5.2.0-mainnet"

Platform

Platform version

No response

Runtime

Runtime version

No response

alecalve commented 2 years ago

Probably related https://github.com/input-output-hk/cardano-db-sync/issues/1019

alecalve commented 2 years ago

Created https://github.com/input-output-hk/cardano-db-sync/issues/1105

CyberCyclone commented 2 years ago

Talk to Cardano Support on the [Live support page]() so that your issue can be looked into.

Beware, phishing site. Don't click it.

rhyslbw commented 2 years ago

Thanks @CyberCyclone, deleted