Skip to main content

JavaScript/TypeScript client

The JavaScript/TypeScript client library provides a comprehensive set of functions and utilities for interacting with Chromia blockchain. It allows you to send transactions, retrieve information from blockchain nodes running Rell, and build decentralized applications with ease.

Getting started

If you're new to the JavaScript/TypeScript client, start with our quickstart guide to connect your first client to a Rell blockchain:

Installation

The Postchain client is compatible with both JavaScript and TypeScript. The library is distributed on npm (Node Package Manager) and can be easily installed in your project.

npm install postchain-client

You can also visit the npm package page for more installation options.

Key features

  • Transaction Management - Create, sign, and send transactions to the blockchain
  • Query Execution - Retrieve data from the blockchain using queries
  • Multiple Node Support - Connect to multiple nodes for redundancy and failover
  • TypeScript Support - Full type definitions for enhanced development experience
  • Automatic Discovery - Discover nodes automatically via Directory Chain
  • Flexible Authentication - Support for various key management strategies

What you'll find here

This section contains:

Useful resources

Learn more about building with JavaScript/TypeScript and Rell: