
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-token-api
Advanced tools
[](https://www.npmjs.com/package/solana-token-api) [](https://www.npmjs.com/package/solana-token-api) [
It truly couldn't be simpler. See for yourself:
const { getAddressTokens } = require('solana-token-api');
const { Connection, PublicKey } = require('@solana/web3.js');
const connection = new Connection('https://api.mainnet-beta.solana.com', 'confirmed');
const walletAddress = 'YOUR_SOLANA_WALLET_ADDRESS_HERE'; // Replace with actual address
async function fetchTokenData() {
try {
const tokens = await getAddressTokens(connection, walletAddress);
console.log('Fetched Tokens:', tokens);
} catch (error) {
console.error('Error fetching token data:', error);
}
}
fetchTokenData();
getAddressTokens(connection, address)
The one and only function you need to use! Fetches all SPL tokens held by a given Solana wallet address, enriching them with metadata and pricing information.
connection: An instance of @solana/web3.js Connection.address: stringmint: string - The mint address of the token.amount: number - The quantity of the token held by the wallet (parsed UI amount).name: string - The full name of the token (e.g., "USD Coin"). Defaults to "UNKNOWN" if not found.symbol: string - The symbol of the token (e.g., "USDC"). Defaults to "UNKNOWN" if not found.logo: string - A URL to the token's logo image. Defaults to "UNKNOWN" if not found.price: number - The current price of one token in USD. Defaults to "0" if pricing data is unavailable.valueUSD: string - The total value of the tokens held in USD, formatted to two decimal places (e.g., "150.75").Contributions, issues, and feature requests are welcome! Feel free to check the issues page or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
[](https://www.npmjs.com/package/solana-token-api) [](https://www.npmjs.com/package/solana-token-api) [
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.