Skip to content
This repository was archived by the owner on Jan 3, 2024. It is now read-only.

radixdlt/radixdlt-js-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

description
The developers guide to building on the Radix Network with the JavaScript client library

JavaScript client library

Introduction

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

{% hint style="success" %} Tip: for an overview of the main components of the library and how they fit together, read this blog post. {% endhint %}

{% hint style="info" %} Note: this library and the network itself are currently in Alpha development phase. Please report any issues in the GitHub issue tracker. {% endhint %}

Features

  • Full Typescript support
  • Follow the reactive programming pattern using RxJS
  • Cryptography using the elliptic library
  • Automatically manage connection to the Radix Universe in a sharded environment
  • Communication with the Radix network usign 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, run:

yarn add radixdlt

or

npm install radixdlt --save

Example applications

Build

To build the library using your preferred package manager, run:

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 module 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 }

{% hint style="warning" %} Note: this is not a reproducible fix. If you install your modules in a new location, you will lose this change. {% endhint %}

Join the Radix Community