Let's review some code examples on how to handle generic tasks:
There are different Universes available, such as LOCAL
, SUNSTONE
, and BETANET
. Typically, for development purposes we use LOCALHOST_SINGLENODE.
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)
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 %}