<p>All solved with the actualization of the cardanocli-js to the 4.0.1 version.</p>
<p>The examples are working great!</p>

CC BY-SA 4.0
2021-10-19T06:15:51.790Z
Yes, version 4.0.0 had problems with extra whitespace in some lines. Version 4.0.1 resolved the issue.
pyropy
CC BY-SA 4.0
2021-10-18T23:16:41.737Z
2021-10-18T23:16:41.737Z
Marcelo Arraes Teixeira
<p>The issue which is simple. The command: cardano-cli query utxo --address {address} --mainnet</p>
<p>Has changed it's output format recently. It now returns an extra field at the end of each TX. A well placed .pop() on the correct JS array will fix it. This extra data belongs to the Smart Contract logics.</p>
<p>Unfortunately I do not use this library and am unfamiliar with it so cannot offer any further guidance.</p>

CC BY-SA 4.0
2021-09-27T18:30:42.197Z
2021-09-27T18:30:42.197Z
Patrick Sturm
<p>Im creating a transaction using this code:</p>
<blockquote>
<p>const tx = {   txIn: wallet.balance().utxo,   txOut: [
{
address: wallet.paymentAddr,
value: { ...wallet.balance().value, [MARCELOCOIN]: 1 },
}   ],   minting: [
{ action: 'mint', quantity: 100, asset: MARCELOCOIN, script: mintScript },   ],   witnessCount: 2, };</p>
</blockquote>
<p>when i try to create the Raw arquive with:</p>
<blockquote>
<p>let raw = cardanocliJs.transactionBuildRaw(tx);</p>
</blockquote>
<p>It gives me the following error:</p>
<blockquote>
<p>option --tx-out:
unexpected &quot;N&quot;
expecting white space or quantity (word64)</p>
</blockquote>
<blockquote>
<p>Error: Command failed: cardano-cli transaction build-raw                 --tx-in 5896209b2eb8eb2e3b19e06335e787c9856661087e6796fd5f483f0a30b923cc#0 --tx-in c6b914dfd086ac8e776c91ea615e847d1e7dc6f447a8cca467371de506ab64a7#1                  --tx-out &quot;addr_test1qqmjrep08v07cjn4t3852hr54czxw4m2dyv7wynkk3ufl63xjyzlpj9g68r0n0q3sfgc9vtt8z48z7yff3a4lh9kp2fqa0ccru+998825875+NaN undefined+1 43ad91053eb32da8884e1e5c4b67865d5f46f90072110c8e233261b9.MarceloCoin&quot;                                                                                                       --invalid-hereafter 38296439                 --invalid-before 0                 --fee 0                 --out-file /home/cnode/minter/minter/tmp/tx_4ue4nzska.raw</p>
</blockquote>
<p>So you see that there is a 'undefined' inside tx-out. I don't know whats the problem.. Can you help me?</p>

CC BY-SA 4.0
2021-09-26T12:03:41.897Z
Hello. Cardano cli has changed recently and that had added extra output in the query which maybe not yet been managed to implement by the library developer. Try contacting the developer or raising an issue on Github
Patrick Sturm
CC BY-SA 4.0
2021-09-27T14:09:46.950Z
I have already, but he is too busy with other stuff to help..
Marcelo Arraes Teixeira
<cardano-cli><nft><minting><javascript>
Having a problem with Minting with Cardanocli-js
# Having a problem with Minting with Cardanocli-js

(Asked by: username_0 on 2021-09-26)

Im creating a transaction using this code:

> const tx = { txIn: wallet.balance().utxo, txOut: [
> {
> address: wallet.paymentAddr,
> value: { ...wallet.balance().value, [MARCELOCOIN]: 1 },
> } ], minting: [
> { action: 'mint', quantity: 100, asset: MARCELOCOIN, script: mintScript }, ], witnessCount: 2, };

when i try to create the Raw arquive with:

> let raw = cardanocliJs.transactionBuildRaw(tx);

It gives me the following error:

> option --tx-out:
> unexpected "N"
> expecting white space or quantity (word64)

> Error: Command failed: cardano-cli transaction build-raw --tx-in 5896209b2eb8eb2e3b19e06335e787c9856661087e6796fd5f483f0a30b923cc#0 --tx-in c6b914dfd086ac8e776c91ea615e847d1e7dc6f447a8cca467371de506ab64a7#1 --tx-out "addr\_test1qqmjrep08v07cjn4t3852hr54czxw4m2dyv7wynkk3ufl63xjyzlpj9g68r0n0q3sfgc9vtt8z48z7yff3a4lh9kp2fqa0ccru+998825875+NaN undefined+1 43ad91053eb32da8884e1e5c4b67865d5f46f90072110c8e233261b9.MarceloCoin" --invalid-hereafter 38296439 --invalid-before 0 --fee 0 --out-file /home/cnode/minter/minter/tmp/tx\_4ue4nzska.raw

So you see that there is a 'undefined' inside tx-out. I don't know whats the problem.. Can you help me?

**Tags:** cardano-cli, nft, minting, javascript
> **Comments:**
> **username_1**: Hello. Cardano cli has changed recently and that had added extra output in the query which maybe not yet been managed to implement by the library developer. Try contacting the developer or raising an issue on Github  
> **username_0**: I have already, but he is too busy with other stuff to help..  

---

## 2 answers

### Answer by username_0 on 2021-10-18. Score: 1 | Accepted answer

All solved with the actualization of the cardanocli-js to the 4.0.1 version.

The examples are working great!

> **Comments:**
> **username_2**: Yes, version 4.0.0 had problems with extra whitespace in some lines. Version 4.0.1 resolved the issue.  

---

### Answer by username_1 on 2021-09-27. Score: 1

The issue which is simple. The command: cardano-cli query utxo --address {address} --mainnet

Has changed it's output format recently. It now returns an extra field at the end of each TX. A well placed .pop() on the correct JS array will fix it. This extra data belongs to the Smart Contract logics.

Unfortunately I do not use this library and am unfamiliar with it so cannot offer any further guidance.


---

