npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@pulsara/tx-js

v1.0.1

Published

JS/TS Library to to easily make use of the TX Blockchain

Readme

TX JS/TS SDK

A JavaScript/TypeScript library for interacting with the TX blockchain. Built on CosmJS, it provides a typed client, message builders, query extensions, and wallet integrations for Coreum-native modules (FT, NFT, DEX) and standard Cosmos modules.

Features

  • Unified Client — Connect via RPC, sign and broadcast transactions, query chain state, and subscribe to events
  • Coreum modules — Fungible Tokens (FT), NFTs, native DEX, and fee model with typed messages and query extensions
  • Cosmos modules — Bank, Staking, Distribution, Governance, Authz, Feegrant, Vesting
  • CosmWasm — Deploy and interact with smart contracts
  • Wallet support — Keplr, Cosmostation, Leap, or mnemonic-based signing
  • Gas & fees — Fee estimation, gas calculation, and fee model queries
  • Multisig — Create multisig accounts and use custom signers
  • Amino types — Coreum Amino type registration for Ledger and Amino-compatible wallets

Installation

npm install @pulsara/tx-js

Quick Start

Connect (query-only)

import { Client, CoreumNetwork } from "@pulsara/tx-js";

const client = new Client({ network: CoreumNetwork.TESTNET });
await client.connect();

// Query chain state (no signer required)
const balance = await client.queryClients?.bank.balance(
  "core1...",
  "utestcore"
);

Connect with browser wallet (Keplr, Cosmostation, or Leap)

import { Client, CoreumNetwork, ExtensionWallets } from "@pulsara/tx-js";

const client = new Client({ network: CoreumNetwork.TESTNET });
await client.connectWithExtension(ExtensionWallets.KEPLR);

console.log(client.address); // Connected wallet address

Connect with mnemonic

import { Client, CoreumNetwork } from "@pulsara/tx-js";

const client = new Client({ network: CoreumNetwork.TESTNET });
await client.connectWithMnemonic("your twelve or twenty four word mnemonic...");

Send a transaction

import { Client, Bank, CoreumNetwork } from "@pulsara/tx-js";

const client = new Client({ network: CoreumNetwork.TESTNET });
await client.connectWithMnemonic(process.env.MNEMONIC!);

const msg = Bank.Send({
  fromAddress: client.address!,
  toAddress: "core1...",
  amount: [{ denom: "utestcore", amount: "1000000" }],
});

const result = await client.sendTx([msg]);
console.log(result.transactionHash);

Query FT token info

const token = await client.queryClients?.ft.token("denom_issuer_subunit");
const balance = await client.queryClients?.ft.balance(
  "core1...",
  "denom_issuer_subunit"
);

Network configuration

The SDK supports three networks out of the box:

| Network | Chain ID | Bech32 prefix | | ------- | ------------------ | ------------- | | Mainnet | coreum-mainnet-1 | core | | Testnet | coreum-testnet-1 | testcore | | Devnet | coreum-devnet-1 | devcore |

Set the network in the client constructor:

const client = new Client({ network: "mainnet" }); // or "testnet" | "devnet"

You can override RPC/WebSocket endpoints via custom_node_endpoint and custom_ws_endpoint when a network is specified. See Network configuration for details.

Architecture overview

flowchart LR
  subgraph app [Your app]
    Client[Client]
  end
  subgraph coreum [Coreum]
    FT[FT]
    NFT[NFT]
    DEX[DEX]
    FeeModel[Fee model]
  end
  subgraph cosmos [Cosmos]
    Bank[Bank]
    Staking[Staking]
    Gov[Governance]
    Dist[Distribution]
  end
  subgraph wasm [CosmWasm]
    Wasm[WASM]
  end
  Client --> FT
  Client --> NFT
  Client --> DEX
  Client --> FeeModel
  Client --> Bank
  Client --> Staking
  Client --> Gov
  Client --> Dist
  Client --> Wasm
  • Client — Single entry point: connects to the chain, holds a signing client (when using wallet or mnemonic), and exposes queryClients with all query extensions (ft, nft, nftbeta, bank, gov, distribution, dex, staking, auth, mint, feegrant, ibc, wasm, tx).
  • Coreum — FT (issue, mint, burn, freeze, whitelist, clawback, DEX settings), NFT (issue class, mint, send, freeze, whitelist), DEX (place/cancel orders), and fee model queries.
  • Cosmos — Message builders and query extensions for Bank, Staking, Distribution, Governance, Authz, Feegrant, Vesting.
  • WASM — CosmWasm transaction encoding and query extension for smart contracts.
  • Utils — Wallet generation, address validation, unit conversion, feature parsers, and event parsing.

Documentation

Detailed docs live in the docs/ folder:

| Document | Description | | ---------------------------------------- | ----------------------------------------------------------------------------- | | Client | Client class: connection, signing, broadcasting, queries, multisig, WebSocket | | Coreum FT | Fungible Token module — messages, queries, features | | Coreum NFT | NFT module — messages, queries, class features | | Coreum DEX | DEX module — orders, order books, queries | | Cosmos modules | Bank, Staking, Distribution, Governance, Authz, Feegrant, Vesting | | CosmWasm | Smart contract deployment and queries | | Wallets | Keplr, Cosmostation, Leap integration | | Types | Enums, interfaces, and type reference | | Utilities | Calculations, wallet helpers, feature parsers, events | | Amino types | Amino type registration and usage | | Network config | Network configuration and custom endpoints |

License

ISC