Client

class Client

Client that is used to connect to Polkadot-based blockchain networks.

A shared singleton.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun add(chain: Chain): Chain

Add a Chain to the Client.

Link copied to clipboard
fun isValid(chain: Chain): Boolean

Check the status of the chain identifier in the Client.

Link copied to clipboard
fun remove(chain: Chain)

Remove a Chain from the Client.

Link copied to clipboard
suspend fun response(chain: Chain): String?

Suspend function to wait for response string from the Client.

Link copied to clipboard
fun responses(chain: Chain): Flow<String>

Asynchronous flow of response string values from the Client.

Link copied to clipboard
fun send(jsonRPC2Request: JSONRPC2Request, chain: Chain)

Send a JSON-RPC2 request to a Chain.