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:
- Hello World Quickstart - A step-by-step guide to send your first transaction and query
 
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:
- Hello World Quickstart - Get started quickly with a practical example
 - Client Reference - Detailed API reference and advanced features
 
Useful resources
- Chromia React Kit - For easier React integration
 - Client libraries overview - Explore clients for other languages
 - Cookbook examples - Practical examples and recipes
 
Related courses
Learn more about building with JavaScript/TypeScript and Rell:
- React/Rell course - Detailed examples of the JavaScript client in action