Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Node.js SDK for the BlockCypher Web services. See https://www.blockcypher.com/dev/bitcoin/ for detailed documentation.
To install, just use npm:
npm install blockcypher
bcypher = require('blockcypher');
var bcapi = new bcypher('btc','main',process.env.TOKEN);
function printResponse(err, data) {
if (err !== null) {
console.log(err);
} else {
console.log(data);
}
}
//get chain info
bcapi.getChain(printResponse);
//get block height without any optional URL params
bcapi.getBlock(300000, printResponse);
//get block height with an optional "txstart" param, as outlined in docs here: http://dev.blockcypher.com/
bcapi.getBlock(300000, {txstart:2}, printResponse);
//let's try a post request, like making a new webhook
var webhook = {
event: "unconfirmed-tx",
address: "15qx9ug952GWGTNn7Uiv6vode4RcGrRemh",
url: "https://my.domain.com/callbacks/new-tx"
};
bcapi.createHook(webhook, printResponse);
//Now let's list all of our webhooks
bcapi.listHooks(printResponse);
FAQs
A REST API client for BlockCypher
The npm package blockcyper receives a total of 0 weekly downloads. As such, blockcyper popularity was classified as not popular.
We found that blockcyper demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.