Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
bitcoin-cash-rpc
Advanced tools
JSON-RPC library for use with Bitcoin Cash Nodes, promise-based and async/await support.
This is a promise-based library and async/await
compatible. Includes a couple
additional helpers, such as a QRcode generator as well as Bitpay's Address
translator. Supports both address formats.
grab from NPM
npm i bitcoin-cash-rpc
let bchRPC = require("bitcoin-cash-rpc");
let bch = new bchRPC(host, username, password, port, timeout, debugging);
// timeout is 3000 by default
// debugging is true by default, false makes the library silent and requires try/catch on the app level.
let info = await bch.getInfo();
console.log(info)
// results in
//{
// "version": 1010101,
// "protocolversion": 80003,
// "walletversion": 60000,
// "balance": 0.00000000,
// "blocks": 478559,
// "timeoffset": 0,
// "connections": 12,
// "proxy": "",
// "difficulty": 29829733124.04042,
// "testnet": false,
// "keypoololdest": 1506057198,
// "keypoolsize": 100,
// "paytxfee": 0.00000000,
// "relayfee": 0.00001000,
// "errors": "",
// "fork": "Bitcoin Cash"
//}
or
p = Promise.resolve(bch.getInfo());
p.then(info=>{
console.log(info);
})
there is incomplete coverage at the moment. Please submit a PR if you'd like to have a method added.
getInfo
getBlockCount
getWalletInfo
getUnconfirmedBalance
getBalance
getWalletInfo
getBlockHash
getNewAddress
setTxFee
validateAddress
sendToAddress
sendFrom
getAccountAddress
getBlock
getTxOut
listTransactions
listUnspent
estimateSmartFee
getTransaction
getRawTransaction
getRawMempool
getRawChangeAddress
signRawTransaction
sendRawTransaction
decodeRawTransaction
getTxoutProof
You must be running a Node (Pruned mode is fine)
FAQs
JSON-RPC library for use with Bitcoin Cash Nodes, promise-based and async/await support.
The npm package bitcoin-cash-rpc receives a total of 20 weekly downloads. As such, bitcoin-cash-rpc popularity was classified as not popular.
We found that bitcoin-cash-rpc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.