Comments (8)
@ivangabriele , Thank you!
Node 8.10.0
Mac
What information do you need more?
As I am working on urgent project, I want you to review this issue ASAP.
from electra-js.
Yes @topguru I didn't have time to test it on other versions yet. Again as I told before it's a work in progress, it's not even a beta version yet.
from electra-js.
@topguru ElectraJs is indeed still an work in progress.
It's a strange error though. Can I have more details, in what environment do you run it ?
from electra-js.
But the thing @topguru is that you won't be able to use the wallet in production if that's your goal. It's really a work in progress right now and many methods don't work: you can't send a transaction, you can't list the transactions history, the import/export have not been tested...
from electra-js.
@topguru You should use node v9.4.0. I am not certain how you were able to install electra-js on node v8.10.0.
Try it with node v9.4.0, and get back to us.
from electra-js.
If supports with only v9.4.0, it is unable to use. Because the recommended latest node.js version is v8.10.
from electra-js.
@topguru When you call new ElectraJs()
without any parameter, you are actually calling the light wallet version, which requires a Browser-like environment. That's why you get the XMLHttpRequest is not defined in Node.js
error.
You need to specify const electraJs = new ElectraJs({ hard: true })
to switch to the hard wallet mode which is adapted to a NodeJS environment.
You also don't start the wallet correctly, I invite you to check the hard wallet example I created to see how it works.
I also just updated the engines to include NodeJS v8 & npm v5 since my tests passed on it. It's thus fixed in the version 0.14.5.
from electra-js.
I'm closing that. Please reopen it if needed ;)
from electra-js.
Related Issues (13)
- Node version restricted to 9.4.0 HOT 2
- Add 'BTC' as an enum to currencies enum
- getLocalBlockHeight: you are calling the getBalance rpc command on getLocalBlockHeight. HOT 1
- stopDeamon: Does not stop the deamon. HOT 1
- Change of api names HOT 1
- Add BTC to currencies enum HOT 1
- expose listTransactions rpc command HOT 1
- expose single getTransaction rpc method HOT 1
- Add a method to get unconfirmed balance HOT 1
- Add "from" and "to" on transactions HOT 2
- Wallet info isSynchronized, not working properly HOT 1
- Create a getLastBlockInfo method 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 electra-js.