@0xknwn/starknet-module-sessionkey / Exports / SessionKeyModule

Class: SessionKeyModule

Implements

  • AccountModuleInterface

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new SessionKeyModule(authKey, accountAddress, validatorClassHash, chainId, expires, policyManager?): SessionKeyModule

Parameters

NameType
authKeystring
accountAddressstring
validatorClassHashstring
chainIdstring
expiresstring
policyManager?PolicyManager

Returns

SessionKeyModule

Defined in

sdks/module-sessionkey/src/sessionkey.ts:37

Properties

auth

Protected auth: Authorization

Defined in

sdks/module-sessionkey/src/sessionkey.ts:34


policyManager

Protected Optional policyManager: PolicyManager

Defined in

sdks/module-sessionkey/src/sessionkey.ts:35

Methods

add_signature

add_signature(signature): Promise<void>

Parameters

NameType
signaturestring[]

Returns

Promise<void>

Defined in

sdks/module-sessionkey/src/sessionkey.ts:98


get_session_key

get_session_key(): Promise<string>

Returns

Promise<string>

Defined in

sdks/module-sessionkey/src/sessionkey.ts:83


prefix

prefix(calls): Object

Parameters

NameType
callsCall | Call[]

Returns

Object

NameType
calldatastring[]
contractAddressstring
entrypointstring

Implementation of

AccountModuleInterface.prefix

Defined in

sdks/module-sessionkey/src/sessionkey.ts:112


request

request(grantorClass): Promise<Authorization>

Parameters

NameType
grantorClassstring

Returns

Promise<Authorization>

Defined in

sdks/module-sessionkey/src/sessionkey.ts:62


reset

reset(signature): Promise<void>

Parameters

NameType
signaturestring[]

Returns

Promise<void>

Defined in

sdks/module-sessionkey/src/sessionkey.ts:105