DEV Community

Radix
Radix

Posted on • Edited on

3 2

Radix DLT - JavaScript Client Library

Introduction

A JavaScript client library for interacting with a Radix Distributed Ledger.

For an overview of the main components of the library and how they fit together, read this blog post.

Note: this library and the network itself are currently in Alpha development phase. Please report any issues in the GitHub issue tracker.

Features

-Full Typescript support
-Follow the reactive programming pattern using RxJS
-Cryptography using the elliptic library
-Automatically manage connections to the Radix Universe in a sharded environment
-Communication with the Radix network using RPC over WebSockets
-Read Atoms in any address
-Write Atoms to the ledger
-End-to-end data encryption using ECIES

Installation

To install the library using your preferred package manager:
yarn add radixdlt or npm install radixdlt --save

Example applications

-Front-end example using Vue.js
-Express.js server example

Build

To build the library using your preferred package manager:

yarn install && yarn build or npm install && npm build

Test

Run tests with yarn test.

Known issues

Angular

Apparently, on Angular 6+ versions, the node modules polyfills from webpack are not bundled. To fix your issue with crypto, path, etc. go to

node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/browser.js and do the following change:

node: { crypto: true, path: true }

Note: this is not a reproducible fix. If you install your modules in a new location, you will lose this change.

Join The Radix Community

Telegram for general chat
​Discord for developers chat
​Reddit for general discussion
Forum for technical discussion
Twitter for announcements
​Email newsletter for weekly updates
Mail to hello@radixdlt.com for general enquiries

Speedy emails, satisfied customers

Postmark Image

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay