
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
solana-web3-lite
Advanced tools
A lightweight wrapper around @solana/web3.js for simplified Solana blockchain interactions
A lightweight wrapper around @solana/web3.js for simplified Solana blockchain interactions.
Install the package via npm:
npm install solana-web3-lite
// Requesting funds on devnet
async function requestDevnetFunds() {
try {
const signature = await airdrop({
address: "YourSolanaAddressHereAsString",
amount: 1, // 1 SOL
cluster: "devnet", // Optional: default is "devnet"
});
console.log("Devnet airdrop completed:", signature);
} catch (error) {
console.error("Failed to get devnet airdrop:", error);
}
}
// Using the localnet RPC URL ("http://localhost:8899")
async function requestCustomFunds() {
try {
const signature = await airdrop({
address: "YourSolanaAddressHereAsString",
amount: 5, // 5 SOL
cluster: "localnet", // Optional: default is "devnet"
});
console.log("Custom airdrop completed:", signature);
} catch (error) {
console.error("Failed to get custom airdrop:", error);
}
}
// Specifying commitment level
async function requestConfirmedFunds() {
try {
const signature = await airdrop({
address: "YourSolanaAddressHereAsString",
amount: 3, // 3 SOL
cluster: "testnet", // Optional: default is "devnet"
commitment: "processed", // Optional: default is "confirmed"
});
console.log("Processed airdrop completed:", signature);
} catch (error) {
console.error("Failed to get processed airdrop:", error);
}
}
async function checkBalance() {
try {
const balance = await showBalance({
publicKey: "YourSolanaAddressHereAsString",
cluster: "localnet", // Defaults to "http://localhost:8899"
});
console.log(`Current balance: ${balance} SOL`);
} catch (error) {
console.error("Balance check failed:", error);
}
}
async function sendDevnetFunds() {
try {
const signature = await transfer({
keyPair: keyPair, // Your Keypair object
recipientAddress: "RecipientSolanaAddressAsString",
amount: 0.5, // 0.5 SOL
cluster: "devnet", // Optional: default is "devnet"
});
console.log("Devnet transfer completed:", signature);
} catch (error) {
console.error("Devnet transfer failed:", error);
}
}
address: String - Solana address to receive fundsamount: Number - Amount of SOL to requestcluster: String (optional) - devnet as defaultcommitment: String (optional) - Commitment leveladdress: String - Solana address to checkcluster: String (optional) - mainnet-beta | testnet | devnet | localnetkeyPair: Keypair - Sender's keypairrecipientAddress: String - Recipient's Solana addressamount: Number - Amount of SOL to sendcluster: String (optional) - mainnet-beta | testnet | devnet | localnet@solana/web3.js (peer dependency)@solana-developers/helpers (peer dependency)FAQs
A lightweight wrapper around @solana/web3.js for simplified Solana blockchain interactions
We found that solana-web3-lite 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.