
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@talismn/chaindata-js
Advanced tools
A JS indexing and lookup lib for easily fetching information from the @talismn/chaindata repo.
This repository is a JS helper library for the @talismn/chaindata repository, enabling easy fetching of assets and config files for developers when building within the polkadot ecosystem.
The goals of this repo are:
Note: This repoository is in development and may contain bugs and change without warning. Use at your own discretion.
yarn add @talismn/chaindata-js
import chaindata from 'chaindata'
Discover which chains are available
const chains = await chaindata.chains()
The returned object contains key:value pairs of all available chain ids and names.
{
"0": "Polkadot",
"2": "Kusama",
// ... etc
}
Fetch a chains by ID and load all relevant information. In this instance Polkadot (id: 0).
const chain = await chaindata.chain(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",
}
To access any fields on the chains, using the instance above
const name = chain.name
Which returns the value requested, i.e:
Polkadot
To access any assets on the chain, using the instance above:
const logo = chain.asset.logo
Which returns a string as the full path to the asset file.
https://raw.githubusercontent.com/TalismanSociety/chaindata/master/0/assets/logo.svg
And can be used in an img tag:
<img src={logo}/>
FAQs
A JS indexing and lookup lib for easily fetching information from the @talismn/chaindata repo.
The npm package @talismn/chaindata-js receives a total of 30 weekly downloads. As such, @talismn/chaindata-js popularity was classified as not popular.
We found that @talismn/chaindata-js demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.