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
Name | Type |
---|---|
api | ApiPromise |
Returns
Defined in
Properties
adapters
• Readonly
adapters: Adapters
Defined in
batch
• Readonly
batch: Object
Type declaration
Name | Type | Description |
---|---|---|
locs | (ids : UUID [], locs? : Record <string , LegalOfficerCase >, availableVerifiedIssuers? : Record <string , VerifiedIssuerType []>) => LocBatch | - |
Defined in
batching
• Readonly
batching: Batching
Defined in
chainType
• Readonly
chainType: ChainType
Defined in
fees
• Readonly
fees: FeesEstimator
Defined in
polkadot
• Readonly
polkadot: ApiPromise
Defined in
queries
• Readonly
queries: Queries
Defined in
time
• Readonly
time: Object
Type declaration
Name | Type |
---|---|
now | () => Promise <ChainTime > |
Defined in
Methods
detectChainType
▸ detectChainType(): ChainType
Returns
Defined in
vault
▸ vault(requester
, legalOfficers
): Vault
Parameters
Name | Type |
---|---|
requester | ValidAccountId |
legalOfficers | ValidAccountId [] |
Returns
Defined in
buildProvider
▸ buildProvider(endpoint
): WsProvider
Parameters
Name | Type |
---|---|
endpoint | string | string [] |
Returns
WsProvider
Defined in
connect
▸ connect(endpoint
): Promise
<LogionNodeApiClass
>
Creates a connected Logion chain client.
Parameters
Name | Type | Description |
---|---|---|
endpoint | string | string [] | the URL(s) of the RPCs to connect to. |
Returns
Promise
<LogionNodeApiClass
>
A promise resolving to a connected Logion chain client.