
Research
Malicious fezbox npm Package Steals Browser Passwords from Cookies via Innovative QR Code Steganographic Technique
A malicious package uses a QR code as steganography in an innovative technique.
@talismn/api-react-hooks
Advanced tools
A set of react hooks to use the @talismn/api.
Exposes the following hooks:
useBalances
useChains
useChain
Provides current balances for the addresses and chains provided.
import { useBalances } from '@talismn/api-react-hooks'
useBalances(
addresses: string[] = [],
chains: string[] = [],
rpcs?: { [key: string]: string[] }
)
Takes the following arguments:
addresses
: an array of strings of addresses.chains
: an array of strings of chain IDs.rpcs
: Optional. An object containing chainId
:RPC
pairs in order to specify particular RPCs to connect to.Returns an array of Balance
objects like:
[{
chainId: Chain ID,
address: DotSama address,
token: Symbol of native token of chain,
total: Total balance of token,
free: Free balance of token,
reserved: Reserved balance of token,
miscFrozen: Misc frozen balance of token,
feeFrozen: Fee frozen balance of token,
}]
Discover which chains are available.
import { useChains } from '@talismn/api-react-hooks'
const chains = useChains()
The returned object contains key:value pairs of all available chain ids and names.
{
"0": "Polkadot",
"2": "Kusama"
// ... etc
}
Fetch a chain by ID and load all relevant information. In this example, Polkadot (id: 0).
import { useChain } from '@talismn/api-react-hooks'
const chain = useChain(0)
The returned object contains all relevant information about the requested chain.
{
"id": "0",
"name": "Polkadot",
"description": "Polkadot is a heterogeneous multichain with shared security and interoperability",
"isRelay": true,
"links": {
"Website": "https://polkadot.network",
"Twitter": "https://twitter.com/Polkadot",
"Support": "https://support.polkadot.network/support/home",
"Discord": "https://discord.com/invite/wGUDt2p",
"Github": "https://github.com/paritytech/polkadot"
},
"assets": {
"logo": "logo.svg",
"banner": "banner.png",
"card": "card.png"
},
"rpcs": ["wss://rpc.polkadot.io"],
"status": "READY"
}
FAQs
A set of react hooks to use the @talismn/api.
The npm package @talismn/api-react-hooks receives a total of 10 weekly downloads. As such, @talismn/api-react-hooks popularity was classified as not popular.
We found that @talismn/api-react-hooks demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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
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.
Application Security
/Research
/Security News
Socket detected multiple compromised CrowdStrike npm packages, continuing the "Shai-Hulud" supply chain attack that has now impacted nearly 500 packages.