Git Product home page Git Product logo

nodejs-verge's People

Contributors

brakmic avatar dependabot[bot] avatar justinvforvendetta avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nodejs-verge's Issues

Typescript Doc

I've installed verge-node

npm install verge-node-typescript;

I've imported it in my node project

var verge = require(verge-node-typescript);

When I try to execute the code in the document, I start getting error message that its not a function.

And it doesn't throw any error or result.

Kindly write document for using it.

Thank you ..

Some command dosen't work anymore

I tried some commands like: getAccount, getBalance and so on but it didn't work.
error message: "getaccount is deprecated and will be removed in V0.18. To use this command, start verged with -deprecatedrpc=accounts"

API to create new Verge Address

Is there a simple API using which we can create XVG public address and private key?
Without the need to install and run verged on the server.

XVG for testing

Hello, After I ran Onlynet and Testnet, how can I initial or get some XVG coin for testing?

How to sync verge ?

Hello,
I how to sync verge data just like we sync for bitcoin ?
I tried many ways but I can't get

  1. JSON RPC calls for verge
  2. cli commands
  3. what are the methods are available like, to generate address, send money ?
    Is their any documentation for verge which provides me whole information ??

Update all code to use ES6

Guys, I am a long time follower and finally have transitioned into more of a manager/lead role and miss coding. I would love to jump in update everything to ES6 and start writing some mocha test. Do you guys mind?

npm package not available

Hello,

I wanted to use the node-verge package but it seems it's not available anymore.
Where can I find it?

Example project

I think an example project using this would be great!

I am going to see about working on one once I have time for a new project, but are there any existing example projects out there using this NodeJS lib?

Unauthorised when making rpc calls

Hi, I'm trying to do a simple rpc call on my verge node using nodejs script. I have setup all the necessary authentication and config files. But I still get the following error:

Error: Invalid params 401 : "\r\n\r\n\r\n<TITLE>Error</TITLE>\r\n\r\n\r\n

401 Unauthorized.

\r\n\r\n"
3|api | at IncomingMessage. (/plaak/blockchain-api/node_modules/node-verge/lib/verge.js:82:31)
3|api | at emitNone (events.js:111:20)
3|api | at IncomingMessage.emit (events.js:208:7)
3|api | at endReadableNT (_stream_readable.js:1064:12)
3|api | at args.(anonymous function) (/usr/lib/node_modules/pm2/node_modules/event-loop-inspector/index.js:138:29)
3|api | at _combinedTickCallback (internal/process/next_tick.js:138:11)
3|api | at process._tickDomainCallback (internal/process/next_tick.js:218:9)

I'm running this :

let XVGStatus = await verge.getDifficulty(function (error, result) {
if (error) {
console.log(error);
}

    else {
        console.log(result);
    }
})

ECONNRESET Error when making calls. (Using SSL)

Here is my VERGE.conf

server=1
rpcuser=
rpcpassword=
rpcport=20102
rpcssl=1
rpcsslcertificatechainfile=verged.crt
rpcsslprivatekeyfile=verged.pem
rpcallowip=0.0.0.0/0

I've tried some wildcard certs I had laying around but also tried

  openssl genrsa -out server.pem 2048
  openssl req -new -x509 -nodes -sha1 -days 3650 -key verged.pem > verged.cert

Whenever I try to make a call it returns ECONNRESET. I can't see anything in the VERGEd log.
Also if I try to use it without SSL it returns 403 forbidden error everytime.

var fs = require('fs')

var ca = fs.readFileSync('verged.crt')

var verge = require('node-verge')({
  user: 'rpcusername',
  pass: 'rpcpassword',
  https: true,
  ca: ca
})

I'm using the library just like the docs say here, reading the .crt file creating from before.

VERGEd is running on a ubuntu 16.04 machine, and I'm trying to connect remotely with node-verge.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.