0

I am building an NFT marketplace on Cardano.

To build my transactions I use cardano-serialization-lib. When I try to use add_inputs_from() with LargestFirstMultiAsset strategy to choose inputs for the transaction that sends an NFT to the Plutus contract address, I get a UTxO Balance Insufficient.

I definitely have the NFT UTxO in the wallet, and I also have around 100 tAda that isn't locked with any tokens.

Could it be related to minAdaValue? Because it will be greater for the output that goes to the contract (because of datum hash) than what is currently locked with the token...

2 Answers 2

0

So back in the day when I received the UTxO Balance Insufficient error on Cardano-cli, it usually meant I didn't properly calculate the breakdown of the UTXO transitions in terms of transaction cost calculation, change, and UTXOs involved.

With that said, I think you should just double check the calculation for how the UTXOs are spent.

Since you're using the serialisation-lib I know that things can get very complex in that department so I recommend reaching out to teams like dcSpark who actively maintain and build with it.

Hope this helps (and if it doesn't hope help comes eventually)

0

I have found the error. The function is completely fine. I passed the wrong amount to the output...

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.