paool / bitcoin-cash-rpc Goto Github PK
View Code? Open in Web Editor NEWJSON RPC calls to your Bitcoin Cash Node
License: MIT License
JSON RPC calls to your Bitcoin Cash Node
License: MIT License
I see Bitcoin cash has a new address format which has caused much confusion. It would be nice to still use legacy addresses as we move forward and transition into the future. On my platform for example, I will show the new address first, but give the customer the option of switching to legacy before I completely disable legacy.
Online Converter: https://cashaddr.bitcoincash.org/
New Address: bitcoincash:qp2kz4pd5q0u4tvafwhlgakkcceqdktteuee97aw2q
Legacy Address: moJQKtGF3nzhc4ssfdpgs2gexL9T2utRE4
We can merge this code in, it's just one JS file, and integrate a function to allow for easy conversions.
https://github.com/Ayms/cashaddress
I will get around to this sometime tonight or tomorrow. Posting it here first to see if anyone has any suggestions or objections (positive or negative) in regards to this. It would be an optional function, so I don't see how this could go wrong.
I have started Bitcoin Unlimited full node for bitcoin cash in my server, and i have use Bitcoin-Cash-RPC for connect via rpc. I have getting following error
Unhandled rejection Error: no auth mechanism defined at Auth.onRequest (/root/BtcCash/node_modules/request/lib/auth.js:132:32) at Request.auth (/root/BtcCash/node_modules/request/request.js:1349:14) at Request.init (/root/BtcCash/node_modules/request/request.js:375:10) at new Request (/root/BtcCash/node_modules/request/request.js:128:8) at request (/root/BtcCash/node_modules/request/index.js:53:10) at /root/BtcCash/node_modules/request/index.js:61:12 at Object.apply (/root/BtcCash/node_modules/@uphold/request-logger/src/index.js:27:19) at Function.post (/root/BtcCash/node_modules/request/index.js:100:12) at Function.tryCatcher (/root/BtcCash/node_modules/bluebird/js/release/util.js:16:23) at Function.ret [as postAsync] (eval at makeNodePromisifiedEval (/root/BtcCash/node_modules/bluebird/js/release/promisify.js:184:12), <anonymous>:14:23) at _bluebird.default.try (/root/BtcCash/node_modules/bitcoin-core/dist/src/index.js:168:27) at tryCatcher (/root/BtcCash/node_modules/bluebird/js/release/util.js:16:23) at Function.Promise.attempt.Promise.try (/root/BtcCash/node_modules/bluebird/js/release/method.js:39:29) at Client.command (/root/BtcCash/node_modules/bitcoin-core/dist/src/index.js:154:33) at apply (/root/BtcCash/node_modules/lodash/lodash.js:495:27) at Client.wrapper [as getInfo] (/root/BtcCash/node_modules/lodash/lodash.js:5356:16)
(node:12290) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'data' of undefined
0|app_serv | at axios.then.catch.err (/etc/nginx/services/node_modules/bitcoin-cash-rpc/index.js:69:64)
0|app_serv | at
0|app_serv | at process._tickCallback (internal/process/next_tick.js:182:7)
0|app_serv | (node:12290) 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: 184)
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.