
Security News
Suno Breached via Shai-Hulud Worm, Leaked Code Exposes AI Music Scraping
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.
staker-hooks
Advanced tools
React Hooks for Ethereum and compatible chains
Currently provide useEthscanBalance and useEthscanTokensBalance to query balances via eth-scan and expand the support chain to Ethereum, xDai, Binance Smart Chain, and Polygon (Matic POS chain).
npm install --save staker-hooks
import React from 'react'
import {useEthscanBalance, useEthscanTokensBalance} from 'staker-hooks';
export const XdaiBalances = ({addresses, chainId}) => {
const [nativeLoading, nativeBalance] = useEthscanBalance(
addresses,
chainId, // can neglect if use ethereum chain
);
const [tokenLoading, tokenBalance] = useEthscanTokensBalance(
addresses,
chainId, // can neglect if use ethereum chain
);
if (nativeLoading || tokenLoading) {
return (<Text>Loading</Text>);
}
const balance = [...formatData(nativeBalance), ...formatData(tokenBalance)];
return balance.length > 0 ?
(<>
{balance.map(token => (
<View key={token.token}>
<Text>{token.token}</Text>
<Text>{token.balance}</Text>
</View>
))}
</>) :
null;
}
MIT © gasolin
This hook is created using create-react-hook.
FAQs
React Hooks for Ethereum and compatible chains
The npm package staker-hooks receives a total of 8 weekly downloads. As such, staker-hooks popularity was classified as not popular.
We found that staker-hooks 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
A Shai-Hulud infection exposed Suno's source code, which shows the AI music startup stream-ripped tracks to train its models.

Security News
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.