Logo

dev-resources.site

for different kinds of informations.

Java Client Library - General Use Code Examples

Published at
9/23/2019
Categories
java
blockchain
tutorial
dlt
Author
radixdlt
Categories
4 categories in total
java
open
blockchain
open
tutorial
open
dlt
open
Author
8 person written this
radixdlt
open
Java Client Library - General Use Code Examples

Introduction

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

-Initializing a Universe
-Initializing the Application API

Tip: if you're new to our Java library, we suggest you begin with our Get Started guide.

Initializing a Universe

A Universe is an instance of a Radix Distributed Ledger which is defined by a genesis atom and a dynamic set of unpermissioned nodes forming a network.

Available networks

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

A predefined configuration to bootstrap into the LOCALHOST_SINGLENODE network is available:

BootstrapConfig config = Bootstrap.LOCALHOST_SINGLENODE;

Initializing the Application API

The Radix Application API is a client-side API exposing high-level abstractions to make DApp creation easier.

To initialize the API:

RadixApplicationAPI api = RadixApplicationAPI.create(Bootstrap.BETANET, identity);

To continually sync and pull from the network ledger on your account:

Disposable d = api.pull();

To stop syncing:

d.dispose();

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 [email protected] for general enquiries

dlt Article's
30 articles in total
Favicon
Blockchain for Business: Dev Centre House Ireland 10+ years building Blockchain Applications
Favicon
Incremental loading in dlt
Favicon
Normalizing data with dlt
Favicon
Extracting data with dlt
Favicon
Podcast: Eliminate The Overhead In Your Data Integration With The Open Source dlt Library
Favicon
What can you expect from a hackernews launch?
Favicon
Delta Live Tables
Favicon
Need help in building a new application from scratch
Favicon
[II - IOTA Development]: Configuración y puesta en marcha del nodo Hornet
Favicon
Free Corda Next-Gen Bootcamp
Favicon
CSDE: Hello world with Next-Gen Corda
Favicon
Getting ready for Corda 5 is simple.
Favicon
R3 NYC Tech Meetup: The DLT News You Need to Know in 2023
Favicon
DISTRIBUTED LEDGER TECHNOLOGY SYSTEMS A Conceptual Framework
Favicon
What is enterprise blockchain, and why should you care?
Favicon
What is NFT?
Favicon
How does Hederas Hashgraph consensus improve things & what are its use cases?
Favicon
A Brief Overview of Quantum Ledger Database
Favicon
The benefits of Erlang & Elixir for blockchain
Favicon
Java Client Library - General Use Code Examples
Favicon
Corda - Connecting a Ktor web server to a Corda node
Favicon
Corda - Flows can do anything
Favicon
Corda - Extending Flows to customise transaction validation
Favicon
Logical Components in blockchain
Favicon
Corda - Saving transactions where only a subset of parties are signers
Favicon
10 years of Bitcoin history, replayed in under 30 minutes
Favicon
JSON-RPC vs REST for distributed platform APIs
Favicon
Radix DLT - Alpha desktop wallet API documentation
Favicon
Future Developments - Decentralized Identity
Favicon
Corda - Broadcasting a transaction to external organisations

Featured ones: