-
Notifications
You must be signed in to change notification settings - Fork 128
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
Error al componer la transacción: UTxO Balance Insufficient #720
Comments
Hi @noroxi7 ! Instead of txBuilder.add_inputs_from(unspentOutputs, CardanoWasm.CoinSelectionStrategyCIP2.LargestFirstMultiAsset);
txBuilder.add_change_if_needed(changeAddr); try to use const changeConfig = CardanoWasm.ChangeConfig.new(changeAddress)
txBuilder.add_inputs_from_and_change(unspentOutputs, CardanoWasm.CoinSelectionStrategyCIP2.LargestFirstMultiAsset, changeConfig); If it won’t work, check please your balance |
The balance on the wallet is enough for the tx, only use 1 ADA as fee, and send 2 ADA with the tokens, have 13 ADA in the wallet with tokens. Changed the lines you told me and i got the same error @lisicky |
Ok i thing 10ADA is setted as collateral, why is that? but i transfered 10 ADA more it keeps giving me the same response. I also unfrack it but nothing |
It depends which utxos you use for coin selection. |
Seems like is getting all the utxos right, this is the return of [
{
"input": {
"transaction_id": "1a6033fb26d552f522464ffdcfd7558825b2dbe14b7586f1926c3383c756a979",
"index": 0
},
"output": {
"address": "addr1qx37ydfc3celyt5592xs90jtqkt0nluut394d075fs3hgu2yj02azpagpk0xe45pw25zeax2pznprcvadz2c3hx9djcq4xgjyk",
"amount": {
"coin": "1172320",
"multiasset": {
"c6b65a008d444e6653b08fce101b32c43a35cd190daf3f89ee69ce1c": {
"536d6f6c20436174": "66057"
}
}
},
"plutus_data": null,
"script_ref": null
}
},
{
"input": {
"transaction_id": "ca59a384b8ef6ecdcbe30280a1e0bd14fb68103eba0cbb21a130f0e4a2411991",
"index": 0
},
"output": {
"address": "addr1qx37ydfc3celyt5592xs90jtqkt0nluut394d075fs3hgu2yj02azpagpk0xe45pw25zeax2pznprcvadz2c3hx9djcq4xgjyk",
"amount": {
"coin": "10000000",
"multiasset": null
},
"plutus_data": null,
"script_ref": null
}
},
{
"input": {
"transaction_id": "78af89dc5bcefe1e3964e4b44a30e8894f556aeafe15fa707fbeddfd258a1356",
"index": 0
},
"output": {
"address": "addr1qx37ydfc3celyt5592xs90jtqkt0nluut394d075fs3hgu2yj02azpagpk0xe45pw25zeax2pznprcvadz2c3hx9djcq4xgjyk",
"amount": {
"coin": "11581852",
"multiasset": null
},
"plutus_data": null,
"script_ref": null
}
}
] |
Ok fixed, so the asset name was malformed, buffer formed from hex but not received as hex format! Thanks for the help, where I can fund the documentation to the nodejs aplication ? |
@noroxi7 what application do you mean ? |
Sorry, the complete documentation of this lib @lisicky |
Trying to send transaction with assets and there is an error with utxos when i chech that wallet have the funds
Running in NODEJS
"@blockfrost/blockfrost-js": "^6.0.0",
"@emurgo/cardano-serialization-lib-nodejs": "^12.0.1",
The text was updated successfully, but these errors were encountered: