Git Product home page Git Product logo

omniclientjs's People

Contributors

msgilligan avatar patrickdugan 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  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

omniclientjs's Issues

Choose a software license

I pust 'ASL2' (Apache Software License 2.0) in the package.json file when prompted by npm init, but @patrickdugan wrote the original code, so we should at least ask for his thoughts on the subject.

Configure your Omni Core server ??? where???

Configure your Omni Core server
There are a few bitcoin.conf settings that are necessary to run these tests.

Run on the Bitcoin TestNet:

testnet=1

Tell Bitcoin/OmniCore to accept JSON-RPC commands.:

server=1

Set a username and password for RPC:

rpcuser=test-username-goes-here rpcpassword=test-password-goes-here

Where to put all this ??

Error: connect ECONNREFUSED 127.0.0.1:18332

I downloaded omnicore wallet and ran it, it started downloading bitcoin and then i downloaded Omniclientjs and pasted the rpc username and rpc password in configuration.json file but when i run the command node OmniReadTests.js it gave me this error, what i am doing wrong?

{ Error: connect ECONNREFUSED 127.0.0.1:18332
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1174:14)
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 18332 }

Find funding and/or new maintainer

This project is currently unmaintained. If someone would like to fund development and maintenance of this package, please contact us. If someone would like to take over maintenance, please let us know.

OmniTests.js doesn't start

When trying to run OmniTests.js, then the following exception is thrown:

module.js:340
    throw err;
          ^
Error: Cannot find module './Exchanges/OmniRPC.js'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/root/OmniTradeJS/OmniTests.js:1:74)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)

When renaming and moving omnirpc.js into ./Exchanges/OmniRPC.js, and starting OmniTests.js, the following errors pop up:


/root/OmniTradeJS/Exchanges/OmniRPC.js:52
function call(rpcMethod, params){
^^^^^^^^
SyntaxError: Unexpected token function
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/root/OmniTradeJS/OmniTests.js:1:74)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)

Omni.getnewaddress

This method is not work:
Omni.getnewaddress = function(account, cb){
if(account == null|| account == undefined){
client.cmd('getnewaddress',function(err,address,resHeaders){
if (err) return console.log(err)
console.log("created address:"+address)
return cb(address)
})}else{
client.cmd('getnewaddress', account, function(err, address, resHeaders) {
if (err) return console.log(err)
console.log(address);
return cb(address)
})
}
};

RPC give responce -> Error: Method not found

OmniCore bitcoin config

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.