Functions

Less than 1 minute

Functions

createDefaultModelFactory()open in new window

Returns: ModelFactory

Arguments: none

createDevtoolsRpcServer(client, clientServices)open in new window

Returns: Promise<void>

Arguments:

client: Client

clientServices: ClientServicesProvider

fromIFrame(config, options)open in new window

Create services provider proxy connected via iFrame to host.

Returns: ClientServicesProvider

Arguments:

config: Config

options: Omit<Partial<IFrameClientServicesProxyOptions>, "source">

generateSeedPhrase()

Generate bip39 seed phrase (aka mnemonic).

Returns: string

Arguments: none

isDocument(object)

Returns: object is Document<object>

Arguments:

object: unknown

isReferenceLike(value)

Returns: value is object

Arguments:

value: any

strip(obj)

Remove keys with undefined values.

Returns: any

Arguments:

obj: any

wrapObservable(observable)open in new window

Testing util to wrap non-authenticating observable with promise. Don't use this in production code.

Returns: Promise<Invitation>

Arguments:

observable: CancellableInvitationObservable