Skip to content

TxBuilder Allows addition of more collateral inputs than protocol parameters allow #422

Closed
@while0x1

Description

@while0x1

TxBuilder can result in a failed transaction due to building a transaction with more collateral inputs than the protocol parameters allow. This may only occur through manual collaterals being appended to the builder.

05-Feb-25 15:15:06 - ERROR - Ogmios responded with error: {'jsonrpc': '2.0', 'method': 'submitTransaction', 'error': {'code': 3131, 'message': "The transaction contains too many collateral inputs. The maximum number of collateral inputs is constrained by a protocol parameter. The field 'data.maximumCollateralInputs' contains the current value of that parameter, and 'data.countedCollateralInputs' indicates how many inputs were actually found in your transaction.", 'data': {'maximumCollateralInputs': 3, 'countedCollateralInputs': 4}}, 'id': None}

Context could perhaps use maximumCollateralInputs parameter to limit the utxos added to the transaction, and or try to use the supplied collateral set to get above the standard 5000000 lovelaces by finding a combination of utxos exceeding 5ADA while being less than maximumCollateralInputs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions