Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
while0x1 opened this issue Feb 5, 2025 · 0 comments

Comments

@while0x1
Copy link
Contributor

while0x1 commented Feb 5, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant