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.
PREVIEW RELEASE This is a copy of original web3, changed as per SGC requirements!
You need to run a local or remote SGC node to use this library.
npm install sgcweb3@latest
// in node.js
var SGCWeb3 = require('sgcweb3');
var SGCweb3 = new SGCWeb3('ws://localhost:8546');
console.log(SGCweb3);
Additionally you can set a provider using SGCweb3.providers.HttpProvider()
const SGCWeb3 = require('sgcweb3');
const SGCweb3 = new SGCWeb3(new SGCWeb3.providers.HttpProvider('http://13.229.152.61:8501'));
There you go, now you can use it:
SGCweb3.eth.getAccounts()
.then(console.log);
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
sudo npm install lerna bootstrap
FAQs
SGC JavaScript API wrapper repository
The npm package sgcweb3 receives a total of 2 weekly downloads. As such, sgcweb3 popularity was classified as not popular.
We found that sgcweb3 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.