
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
cosmos-directory-client
Advanced tools
JavaScript client for fetching cosmos.directory endpoints 🛵
JavaScript client for fetching cosmos.directory endpoints 🛵
# using npm
npm install cosmos-directory-client
# using yarn
yarn add cosmos-directory-client
# using pnpm
pnpm add cosmos-directory-client
Creating client
You can create the directory client via class or using helper functions:
import { DirectoryClient, createClient, createTestnetClient } from "cosmos-directory-client";
const client = new DirectoryClient({ ... });
const clientAlt = createClient({ ... });
const testnetClient = createTestnetClient({ ... });
All clients defaults to https://cosmos.directory and https://testcosmos.directory for testnet client. You can pass optional arguments on instantiation.
Using client
All fetcher functions uses the built-in fetch
object. You can pass custom fetch
implementation when instantiating the client.
const { chains } = await client.fetchChains();
const { chain } = await client.fetchChain("juno");
const { chains } = await client.fetchStatus();
const { validators } = await client.fetchValidators();
const { validator } = await client.fetchValidator("frens");
View library APIs via paka.dev: https://paka.dev/npm/cosmos-directory-client
FAQs
JavaScript client for fetching cosmos.directory endpoints 🛵
The npm package cosmos-directory-client receives a total of 1,023 weekly downloads. As such, cosmos-directory-client popularity was classified as popular.
We found that cosmos-directory-client 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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.