Comments (18)
It seems that issue has been resolved in #15 but version on npm is stuck at v4.0.0 while there is new v4.0.1 release that has not been published yet.
I've opened issue #18 to address the problem.
from cardanocli-js.
I don't really know why but i cloned the original cardanocli-js and tryed the example codes and got the same error as before option --tx-out: unexpected "N"
But then i got back to my original code and tryed again, and suddenly it worked..
So thank you for your Help @pyropy !
Know i will be able to go foward on my coding!
from cardanocli-js.
Mine is working since i deleted the cardanocli-js and re-installed to "version": "4.0.1".
The transaction changed @MadOrkestra.
Inside the tx (mint transaction as exemple) on the value bit, the new transaction looks like this:
value: { lovelace: wallet.balance().value.lovelace,[COIN]:1 }
from cardanocli-js.
@MadOrkestra @MarceloArraes What versions of package do you use?
4.0.1 but didn't delete the old version before as @MarceloArraes did. Should I check again?
I switched to Berry-Pool/cardanocli-js as @pyropy suggested, which solved the problem.
from cardanocli-js.
I think it has to do something with the formatting of the transaction string that is passed to execSync
. I'm testing some ideas, and I'll share them as soon as I figure something out.
from cardanocli-js.
@pastuh Try updating package to v4.0.1.
It resolved issue for me.
from cardanocli-js.
@pyropy @pastuh So you have fixed the minting script? It is working with you? The error in mine is somewhat close to yours.
node create-nft.js
/home/cnode/cardano-my-node/db/node.socket
option --tx-out:
unexpected "N"
expecting white space or quantity (word64)
Like there is a mistake on this transaction:
const tx = { txIn: wallet.balance().utxo, txOut: [ { address: wallet.paymentAddr, value: { ...wallet.balance().value, [ASSET_ID]: 1 }, }, ], minting: [{ action: 'mint', quantity: 1, asset: ASSET_ID, script: mintScript }], metadata, witnessCount: 2, };
from cardanocli-js.
@MarceloArraes What's version of the library you got installed? Remember to update to v4.0.1
from cardanocli-js.
@pyropy I thought i had, but i've seen your comment about the npm been stuck at v4.0. Now i'm trying to update. I used this code to update: git clone https://github.com/Berry-Pool/cardanocli-js.git cd cardanocli-js npm install
Just doing that i garantee a updated version? (trying to write a 'cardanocli-js --version' don't work. I'm not really linux savy)
Aaand when i done i received a vulnerabilites warning that i fix using 'npm audit fix --force', is that right?
from cardanocli-js.
Yeah you're cloning the project and hence updating it that way. To check if you got the right version of the project you can check version
inside package.json
file.
If it says something like this you're good then:
{
"name": "cardanocli-js",
"version": "4.0.1",
"description": "A library binding the cardano-cli to JavaScript",
... etc
}
from cardanocli-js.
@pyropy You have a code for minting that is working? Could you send to me please? [email protected]
Everything else im trying to do is working, like creating wallets, checking balances. But the minting give me that error.. Maybe i got some details wrong..
from cardanocli-js.
@pyropy You have a code for minting that is working? Could you send to me please? [email protected]
Everything else im trying to do is working, like creating wallets, checking balances. But the minting give me that error.. Maybe i got some details wrong..
I've used code from the repo. What scripts are you using? Could you post it ?
from cardanocli-js.
Im getting the same error, tried to switch back to older version asweell 3.1.2 ,
getting same error on both 3.1.2 and 4.0.1
i downloaded the official repo and tried running the official examples it is same
option --tx-out:
unexpected "N"
expecting white space or quantity (word64)
cardano-node = 1.30.0
node.js = 14.18.0
@pastuh any suggestions for debugging, i looked into the code, it looks fine, it has your fix of space issue
from cardanocli-js.
Warning: Local header state query unavailable. Falling back to chain sync query
option --tx-out:
unexpected "N"
expecting white space or quantity (word64)
nodejs v16.13.0
cardano-cli 1.31.0
from cardanocli-js.
@MadOrkestra @MarceloArraes What versions of package do you use?
from cardanocli-js.
I have a problem with unexpected “u”
option --tx-out:
unexpected “u”
expecting white space or multi-asset value expression
Any hint?
from cardanocli-js.
I have a problem with unexpected “u”
option --tx-out: unexpected “u” expecting white space or multi-asset value expression
Any hint?
from cardanocli-js.
Mine is working since i deleted the cardanocli-js and re-installed to "version": "4.0.1". The transaction changed @MadOrkestra. Inside the tx (mint transaction as exemple) on the value bit, the new transaction looks like this:
value: { lovelace: wallet.balance().value.lovelace,[COIN]:1 }
This worked for me, thank you sir :)
from cardanocli-js.
Related Issues (20)
- Transactions and fee calculation has broken on 1.31.0 HOT 1
- minting.forEach is not a function. HOT 1
- Update argument flags for plutus and minting script HOT 1
- os independent file paths HOT 2
- Address is added 2 times HOT 1
- getting error when trying to mint nft's on mainnet ScriptWitnessNotValidatingUTXOW HOT 1
- Recover Wallet
- syntax in txOutToString of helper.js HOT 3
- NPM package contains incomplete source code
- Verification of submitted transaction. HOT 6
- Sending tokens HOT 2
- SimpleTx Example fails HOT 3
- mint nft error HOT 5
- communication with remote/docker cardano-node HOT 3
- Error While Submiting transaction in API using express JS
- Code mismatch Github vs. NPM
- Updated NPM package at www.npmjs.com HOT 1
- TimeLocked Policy ID not minting HOT 1
- basic stuff does not work HOT 3
- Documentation missing how to install HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cardanocli-js.