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

"Max collateral inputs reached" #237

Open
cjkoepke opened this issue Nov 29, 2023 · 2 comments
Open

"Max collateral inputs reached" #237

cjkoepke opened this issue Nov 29, 2023 · 2 comments

Comments

@cjkoepke
Copy link
Contributor

I consistently get a Max collateral inputs reached error from Lucid when emulating a wallet via the following:

lucid.selectWalletFrom({
      address: PREVIEW_DATA.addresses.current,
      utxos: [
        {
        txHash:
          "fda5c685eaff5fbb2a7ecb250389fd24a7216128929a9da0ad95b72b586fab70",
        outputIndex: 1,
        assets: { lovelace: 16084562225n },
        address:
          "addr_test1qrp8nglm8d8x9w783c5g0qa4spzaft5z5xyx0kp495p8wksjrlfzuz6h4ssxlm78v0utlgrhryvl2gvtgp53a6j9zngqtjfk6s",
      }
      ]
    });

However, this only happens when I try to build a transaction with:

newTx.collectFrom([{
        txHash:
          "0264732a4c82c3f90af79f32b70cf0d108500be9160b3ae036ff21d3cf180798",
        outputIndex: 0,
        address:
          "addr_test1wpesulg5dtt5y73r4zzay9qmy3wnlrxdg944xg4rzuvewls7nrsf0",
        assets: {
          lovelace: 14_500_000n,
        },
        datum:
          "d8799f4103d8799fd8799fd8799fd8799f581cc279a3fb3b4e62bbc78e288783b58045d4ae82a18867d8352d02775affd8799fd8799fd8799f581c121fd22e0b57ac206fefc763f8bfa0771919f5218b40691eea4514d0ffffffffd87a80ffd87a80ff1a002625a0d8799fd879801a00989680d8799f1a00989680ffffff",
        datumHash:
          "48e3160a9a3761f40d71fef4fc45e5381f35f28f7af73c11756ffaeeae6e32c8",
      }], "d87a80");

Any ideas?

@Astodialo
Copy link

Has there been any solution to this, or what is it caused from?

@cjkoepke
Copy link
Contributor Author

I have not found the solution so far. cc @alessandrokonrad

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

2 participants