helios: Error submitting Tx - utxo fragementation and redeemer

Hello,

this is actually the second time around this happens, but this time I’ve captured both the signed TX and the error.

This has something to do w/ soem sort of wallet utxo fragmentation.

I’m using Nami as wallet.

I was trying to collect an nft from a script address and it failed. I then sent all that was in the wallet, back into the main address (so I guess some sort of utxo compacting must have happened) and re-run exactly the same tx, that completed successfully.

Here the details.

Hope it helps.

{
    "body": {
        "inputs": [
            {
                "txId": "a66564e90416a3c3ed89350108799ab122bdbfd098624d0f43f955207ace8eda",
                "utxoIdx": "1",
                "origOutput": {
                    "address": {
                        "hex": "7070e9e33eb6b5f6edbcbd80d1a3bb36e645e6d71aae409e78837087f4",
                        "bech32": "addr_test1wpcwnce7k66ldmduhkqdrgamxmnytekhr2hyp8ncsdcg0aqufrga4"
                    },
                    "value": {
                        "lovelace": "2000000",
                        "assets": {
                            "324bcb5a0968a69ddc8c6b12bbd0d301d166852f23deb3e88bc2891d": {
                                "304b61747a": "1"
                            }
                        }
                    },
                    "datum": {
                        "inlineCbor": "9f581cf96aa92d9c18c272fdd09516f506050bad5f475f4edaab0d877597d3581c03d23cc49ab2f51abb0e6a6a2b06ad215ebeb9ba37e034f526d32098ff",
                        "inlineSchema": {
                            "list": [
                                {
                                    "bytes": "f96aa92d9c18c272fdd09516f506050bad5f475f4edaab0d877597d3"
                                },
                                {
                                    "bytes": "03d23cc49ab2f51abb0e6a6a2b06ad215ebeb9ba37e034f526d32098"
                                }
                            ]
                        }
                    },
                    "refScript": null
                }
            },
            {
                "txId": "fed1bb855c77efd1fa209a1b35c447b13d4b09671f7d682263b9f3af1089f58c",
                "utxoIdx": "1",
                "origOutput": {
                    "address": {
                        "hex": "00f96aa92d9c18c272fdd09516f506050bad5f475f4edaab0d877597d37c06c1591f4ad1475c5af28337d0f43f5553d10d7f528882c2650b13",
                        "bech32": "addr_test1qruk42fdnsvvyuha6z23dagxq5966h68ta8d42cdsa6e05muqmq4j86269r4ckhjsvmapapl24fazrtl22yg9sn9pvfsz4vr2h"
                    },
                    "value": {
                        "lovelace": "1172320",
                        "assets": {
                            "5e2f416b455dc4e5f9a7c7e58919e9a12a1db15e14ed08f8776b7594": {
                                "48656c6c6f20776f726c6421": "1"
                            }
                        }
                    },
                    "datum": null,
                    "refScript": null
                }
            },
            {
                "txId": "45991e08acd7be985161ddc58a3fd5885221d4a4b8a65d1e9f0c6af4f38efe22",
                "utxoIdx": "1",
                "origOutput": {
                    "address": {
                        "hex": "00f96aa92d9c18c272fdd09516f506050bad5f475f4edaab0d877597d37c06c1591f4ad1475c5af28337d0f43f5553d10d7f528882c2650b13",
                        "bech32": "addr_test1qruk42fdnsvvyuha6z23dagxq5966h68ta8d42cdsa6e05muqmq4j86269r4ckhjsvmapapl24fazrtl22yg9sn9pvfsz4vr2h"
                    },
                    "value": {
                        "lovelace": "6846240194",
                        "assets": {}
                    },
                    "datum": null,
                    "refScript": null
                }
            }
        ],
        "outputs": [
            {
                "address": {
                    "hex": "00f96aa92d9c18c272fdd09516f506050bad5f475f4edaab0d877597d37c06c1591f4ad1475c5af28337d0f43f5553d10d7f528882c2650b13",
                    "bech32": "addr_test1qruk42fdnsvvyuha6z23dagxq5966h68ta8d42cdsa6e05muqmq4j86269r4ckhjsvmapapl24fazrtl22yg9sn9pvfsz4vr2h"
                },
                "value": {
                    "lovelace": "2000000",
                    "assets": {
                        "324bcb5a0968a69ddc8c6b12bbd0d301d166852f23deb3e88bc2891d": {
                            "304b61747a": "1"
                        }
                    }
                },
                "datum": null,
                "refScript": null
            },
            {
                "address": {
                    "hex": "00f96aa92d9c18c272fdd09516f506050bad5f475f4edaab0d877597d37c06c1591f4ad1475c5af28337d0f43f5553d10d7f528882c2650b13",
                    "bech32": "addr_test1qruk42fdnsvvyuha6z23dagxq5966h68ta8d42cdsa6e05muqmq4j86269r4ckhjsvmapapl24fazrtl22yg9sn9pvfsz4vr2h"
                },
                "value": {
                    "lovelace": "1172320",
                    "assets": {
                        "5e2f416b455dc4e5f9a7c7e58919e9a12a1db15e14ed08f8776b7594": {
                            "48656c6c6f20776f726c6421": "1"
                        }
                    }
                },
                "datum": null,
                "refScript": null
            },
            {
                "address": {
                    "hex": "00f96aa92d9c18c272fdd09516f506050bad5f475f4edaab0d877597d37c06c1591f4ad1475c5af28337d0f43f5553d10d7f528882c2650b13",
                    "bech32": "addr_test1qruk42fdnsvvyuha6z23dagxq5966h68ta8d42cdsa6e05muqmq4j86269r4ckhjsvmapapl24fazrtl22yg9sn9pvfsz4vr2h"
                },
                "value": {
                    "lovelace": "6846020861",
                    "assets": {}
                },
                "datum": null,
                "refScript": null
            }
        ],
        "fee": "219333",
        "lastValidSlot": null,
        "firstValidSlot": null,
        "minted": null,
        "metadataHash": null,
        "scriptDataHash": "93c2c815a4bb2c1f630ea8dd33fffee01839e3f89d6bd5c0398aa4c8f9db8651",
        "collateral": [
            {
                "txId": "a66564e90416a3c3ed89350108799ab122bdbfd098624d0f43f955207ace8eda",
                "utxoIdx": "3",
                "origOutput": {
                    "address": {
                        "hex": "00f96aa92d9c18c272fdd09516f506050bad5f475f4edaab0d877597d37c06c1591f4ad1475c5af28337d0f43f5553d10d7f528882c2650b13",
                        "bech32": "addr_test1qruk42fdnsvvyuha6z23dagxq5966h68ta8d42cdsa6e05muqmq4j86269r4ckhjsvmapapl24fazrtl22yg9sn9pvfsz4vr2h"
                    },
                    "value": {
                        "lovelace": "47337893",
                        "assets": {}
                    },
                    "datum": null,
                    "refScript": null
                }
            }
        ],
        "signers": [
            "f96aa92d9c18c272fdd09516f506050bad5f475f4edaab0d877597d3"
        ],
        "collateralReturn": {
            "address": {
                "hex": "00f96aa92d9c18c272fdd09516f506050bad5f475f4edaab0d877597d37c06c1591f4ad1475c5af28337d0f43f5553d10d7f528882c2650b13",
                "bech32": "addr_test1qruk42fdnsvvyuha6z23dagxq5966h68ta8d42cdsa6e05muqmq4j86269r4ckhjsvmapapl24fazrtl22yg9sn9pvfsz4vr2h"
            },
            "value": {
                "lovelace": "46991073",
                "assets": {}
            },
            "datum": null,
            "refScript": null
        },
        "refInputs": []
    },
    "witnesses": {
        "signatures": [],
        "datums": [],
        "redeemers": [
            {
                "data": "0{}",
                "exUnits": {
                    "mem": "37642",
                    "cpu": "14700003"
                },
                "type": 0,
                "typeName": "spending",
                "inputIndex": 0
            }
        ],
        "scripts": [
            "59017459017101000032323232323232323232323232323232323232323232323232323232222533357346660080060040022930b11119191992999ab9a3370e0029000091980f198048038021810a491054524143455f49535f41444d494e3a2000123301e33008007004302149011154524143455f49535f57494e4e45523a200035573a6ea800400400cc05c00488cc024004c01000888cc020004c01000800c0048d5d09bac001235742600400246ae88dd600091198069bac300300223375e00200400246ae84c0080048d5d1180100091aba23002001235744600400246ae88c0080048d5d1180100091aba23002001235744600400246ae88c01400488c8ccc00400400c0088894ccd55cf8010a5015333573460026ae8400852889998018019aba2002001001235742600400246aae78dd50009119ab9c30063300400153003002002213003333573400292104747275650049010566616c7365002230033372c6008004600800246ea4dcc00091b99375c003"
        ],
        "refScripts": []
    },
    "valid": true,
    "metadata": null
}
{
    "code": 2,
    "info": "Wallet could not send the tx.",
    "message": "\"transaction submit error ShelleyTxValidationError ShelleyBasedEraBabbage (ApplyTxError [UtxowFailure (FromAlonzoUtxowFail (ExtraRedeemers [RdmrPtr Spend 0])),UtxowFailure (FromAlonzoUtxowFail (MissingRedeemers [(Spending (TxIn (TxId {_unTxId = SafeHash \\\"a66564e90416a3c3ed89350108799ab122bdbfd098624d0f43f955207ace8eda\\\"}) (TxIx 1)),ScriptHash \\\"70e9e33eb6b5f6edbcbd80d1a3bb36e645e6d71aae409e78837087f4\\\")])),UtxowFailure (UtxoFailure (FromAlonzoUtxoFail (UtxosFailure (CollectErrors [NoRedeemer (Spending (TxIn (TxId {_unTxId = SafeHash \\\"a66564e90416a3c3ed89350108799ab122bdbfd098624d0f43f955207ace8eda\\\"}) (TxIx 1)))]))))])\""
}

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 23 (12 by maintainers)

Most upvoted comments

v0.13.9 has been published, should fix this

Just a few more minutes…

I figured it out: the inputs are sorted before the transaction is balanced, which is how the tx can end up with an unsorted list of inputs