
Security News
GitHub Actions Adds cache-mode to Limit Cache Poisoning Risk
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.
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;
}
import React from 'react'
import {useTokensPrice} from 'staker-hooks';
export const Balances = () => {
const [prices] = useTokensPrice(['ETH','BTC'])
return (
<Text>
{JSON.stringify(prices)}
</Text>
)
}
MIT © gasolin
This hook is created using create-react-hook.
FAQs
React Hooks for Ethereum and compatible chains
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.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.