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.
solone-sdk
Advanced tools
Solone SDK is a library that provides the tools, utilities, and infrastructure you need to develop your app. It gives powerful @solana/web3.js web3 functions to develop the Decentralized application rapidly. And then bring it to scale. The Solone SDK enables access to @solana/web3.js functions in great experiences rather than heavy lifting.
The Solone SDK is currently is on initial development and testing phase. We will be releasing the versions on daily basis for upcoming. For more information on Solone and its features, see the website, twitter or discord.
The easiest way to integrate the Solone SDK into your JavaScript project is through the npm module.
import { Solone } from 'solone-sdk';
const solone = new Solone('testnet'); // network could be mainnet-beta, testnet or devnet
solone.masterUrl = 'https://api.solone.io/web3Api/';
solone.masterKey = 'sol_fm58yVjjC9vY7q1NPQ5rMBFt68e7aqfC';
switchNetwork(network: Cluster)
to switch the current initialized network of solana eg: from testnet to mainnet-beta.
solone.switchNetwork('testnet'); // switch network to solana testnet
solone.switchNetwork('mainnet-beta'); // switch network to solana mainnet-beta
solone.switchNetwork('devnet'); // switch network to solana devnet
createAccount(secret?: Unint8Array | string)
create a new wallet or wallet using a secret key.
solone.createAccount(); // create new random account
solone.createAccount(secretKey); // create account using secretKey, Can be either in string or uinit8Array.
getAccountBalance(address: string | PublicKeyType)
get wallet balance using base58 or string public key of wallet.
solone.getAccountBalance(stringPublicKey); // get balance using string format public key
solone.getAccountBalance(publicKey); // get balance using using base58 format public key
// Add wallet(name, secretKeyArray)
await solanaClient.addWallet('myWallet', [106,241,17,...,25,111,29,121,118]);
// Add destination (name, publicKey)
await solanaClient.addDestination('myReceiver', "8z4Wq1gz1u...kNZcDS77KLq");
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
FAQs
javascript sdk for solona
The npm package solone-sdk receives a total of 2 weekly downloads. As such, solone-sdk popularity was classified as not popular.
We found that solone-sdk 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.