omnilayer / omniclientjs Goto Github PK
View Code? Open in Web Editor NEW(Unmaintained) Omni Layer Node.js RPC client (bitcoind + omnicored extensions)
(Unmaintained) Omni Layer Node.js RPC client (bitcoind + omnicored extensions)
no npm package?
old dependencies?
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
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 ??
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 }
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.
I started building a small lightweight library for OmniLayer, based on bitcoinjs-lib
.
Here's a peek preview: https://gist.github.com/caffeinum/f64a51ce55d5ac9075bb2f5f2f439c0d
I think this package should include such thin JS lib
Hello, Rpc connection throws an error
Error: Starting network threads...
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)
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.