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

Latest commit

 

History

History
38 lines (24 loc) · 1.03 KB

general-use.md

File metadata and controls

38 lines (24 loc) · 1.03 KB

General use

Introduction

Let's review some code examples on how to handle generic tasks:

Initializing a Universe

There are different Universes available, such as LOCAL, SUNSTONE, and BETANET. Typically, for development purposes we use LOCALHOST_SINGLENODE.

Available networks

Network Description
LOCALHOST_SINGLENODE A locally hosted single node connection.
BETANET_SINGLENODE A single node Betanet connection.

To bootstrap to a network we call:

radixUniverse.bootstrap(RadixUniverse.LOCALHOST_SINGLENODE)

Setting a log level

In the following code snippet we set the log level to display errors only:

import { RadixLogger } from 'radixdlt' RadixLogger.setLevel('error')

{% hint style="info" %} Possible log level values are: trace, debug, info, warn, error. {% endhint %}