Skip to main content

Reference / Modules / node-api / LogionNodeApiClass

Class: LogionNodeApiClass

node-api.LogionNodeApiClass

A Logion chain client. An instance of this class provides direct access to the Polkadot API but also to Logion-specific features and helpers.

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new LogionNodeApiClass(api): LogionNodeApiClass

Parameters

NameType
apiApiPromise

Returns

LogionNodeApiClass

Defined in

Connection.ts:70

Properties

adapters

Readonly adapters: Adapters

Defined in

Connection.ts:105


batch

Readonly batch: Object

Type declaration

NameTypeDescription
locs(ids: UUID[], locs?: Record<string, LegalOfficerCase>, availableVerifiedIssuers?: Record<string, VerifiedIssuerType[]>) => LocBatch-

Defined in

Connection.ts:117


batching

Readonly batching: Batching

Defined in

Connection.ts:108


chainType

Readonly chainType: ChainType

Defined in

Connection.ts:87


fees

Readonly fees: FeesEstimator

Defined in

Connection.ts:106


polkadot

Readonly polkadot: ApiPromise

Defined in

Connection.ts:86


queries

Readonly queries: Queries

Defined in

Connection.ts:107


time

Readonly time: Object

Type declaration

NameType
now() => Promise<ChainTime>

Defined in

Connection.ts:109

Methods

detectChainType

detectChainType(): ChainType

Returns

ChainType

Defined in

Connection.ts:89


vault

vault(requester, legalOfficers): Vault

Parameters

NameType
requesterValidAccountId
legalOfficersValidAccountId[]

Returns

Vault

Defined in

Connection.ts:113


buildProvider

buildProvider(endpoint): WsProvider

Parameters

NameType
endpointstring | string[]

Returns

WsProvider

Defined in

Connection.ts:59


connect

connect(endpoint): Promise<LogionNodeApiClass>

Creates a connected Logion chain client.

Parameters

NameTypeDescription
endpointstring | string[]the URL(s) of the RPCs to connect to.

Returns

Promise<LogionNodeApiClass>

A promise resolving to a connected Logion chain client.

Defined in

Connection.ts:39