Code: Select all
(node:17381) UnhandledPromiseRejectionWarning: Error: Invalid network version
at Function.ECPair.fromWIF (/home/phglz/Desktop/nodejs/first-app/node_modules/bitcoincashjs-lib/src/ecpair.js:76:40)
at Function.fromWIF (/home/phglz/Desktop/nodejs/first-app/node_modules/slp-sdk/node_modules/bitbox-sdk/lib/ECPair.js:42:48)
at Slp.buildRawGenesisTx (/home/phglz/Desktop/nodejs/first-app/node_modules/slpjs/lib/slp.js:166:57)
at BitboxNetwork.<anonymous> (/home/phglz/Desktop/nodejs/first-app/node_modules/slpjs/lib/bitboxnetwork.js:218:49)
at step (/home/phglz/Desktop/nodejs/first-app/node_modules/slpjs/lib/bitboxnetwork.js:32:23)
at Object.next (/home/phglz/Desktop/nodejs/first-app/node_modules/slpjs/lib/bitboxnetwork.js:13:53)
at /home/phglz/Desktop/nodejs/first-app/node_modules/slpjs/lib/bitboxnetwork.js:7:71
at new Promise (<anonymous>)
at __awaiter (/home/phglz/Desktop/nodejs/first-app/node_modules/slpjs/lib/bitboxnetwork.js:3:12)
at BitboxNetwork.simpleTokenGenesis (/home/phglz/Desktop/nodejs/first-app/node_modules/slpjs/lib/bitboxnetwork.js:204:16)
(node:17381) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:17381) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
By the way I am on Ubuntu 16.04, same code working fine on MacOS