API Reference
interfaces
Holochainlanguagedelegate

@coasys/ad4m / Exports / HolochainLanguageDelegate

Interface: HolochainLanguageDelegate

Table of contents

Methods

Methods

call

call(dnaNick, zomeName, fnName, params): Promise<any>

Makes a single call to a given holochain DNA. Underlying implementation puts these calls into a sync fifo queue

Parameters

NameType
dnaNickstring
zomeNamestring
fnNamestring
paramsstring | object

Returns

Promise<any>

Defined in

language/LanguageContext.ts:32 (opens in a new tab)


callAsync

callAsync(calls, timeoutMs?): Promise<any[]>

Makes all supplied calls in parallel to the provided holochain dna... Should only be called on read operations to avoid source chain async mutation errors

Parameters

NameType
calls{ dnaNick: string ; fnName: string ; params: string | object ; zomeName: string }[]
timeoutMs?number

Returns

Promise<any[]>

Defined in

language/LanguageContext.ts:34 (opens in a new tab)


registerDNAs

registerDNAs(dnas, holochainSignalCallback?): Promise<void>

Installs/registers a given DNA in the ad4m-executor

Parameters

NameType
dnasDna[]
holochainSignalCallback?AppSignalCb

Returns

Promise<void>

Defined in

language/LanguageContext.ts:30 (opens in a new tab)