
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
getter-erc-20-balance
Advanced tools
This npm package provides a class called ERC20Balance
that allows you to retrieve the balance of an ERC20 contract for a given wallet address using getERC20BalanceOf
method.
npm install getter-erc-20-balance
To import ERC20Balance
class use:
import { ERC20Balance } from 'getter-erc-20-balance'
The ERC20Balance
class provides the following method:
getERC20BalanceOf(contractAddress: string, walletAddress: string, provider: JsonRpcProvider): Promise<string>
This asynchronous method retrieves the balance of an ERC20 contract for the specified wallet address:
contractAddress
(string): The address of the ERC20 contract.walletAddress
(string): The address for which the balance should be retrieved.provider
(JsonRpcProvider): An instance of JsonRpcProvider from the ethers.js library, connected to an Ethereum JSON-RPC provider.Returns a Promise that resolves to the balance as a string.
FAQs
Small utility package aims you to get balance of your erc20 contact
The npm package getter-erc-20-balance receives a total of 0 weekly downloads. As such, getter-erc-20-balance popularity was classified as not popular.
We found that getter-erc-20-balance 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.