minca
ApiSessionFunctions

Function: nodeOptionsFromGrant()

function nodeOptionsFromGrant(grant, relays?): object;

Defined in: packages/core/src/session/connect.ts:669

What a node started under a grant takes from it: the keys it carries, and the home's relays as well as the app's, so the two always share one.

Parameters

ParameterTypeDefault value
grantGrantundefined
relays?readonly string[][]

Returns

object

accountKey?

accountKey?: Uint8Array<ArrayBuffer>;

accountName?

accountName?: string = grant.name;

contactKey?

contactKey?: Uint8Array<ArrayBuffer>;

contactsSpace?

contactsSpace?: string = grant.contactsSpace;

relays

relays: string[];

On this page