@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
Name | Type |
---|---|
authKey | string |
accountAddress | string |
validatorClassHash | string |
chainId | string |
expires | string |
policyManager? | PolicyManager |
Returns
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
Name | Type |
---|---|
signature | string [] |
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
Name | Type |
---|---|
calls | Call | Call [] |
Returns
Object
Name | Type |
---|---|
calldata | string [] |
contractAddress | string |
entrypoint | string |
Implementation of
AccountModuleInterface.prefix
Defined in
sdks/module-sessionkey/src/sessionkey.ts:112
request
▸ request(grantorClass
): Promise
<Authorization
>
Parameters
Name | Type |
---|---|
grantorClass | string |
Returns
Promise
<Authorization
>
Defined in
sdks/module-sessionkey/src/sessionkey.ts:62
reset
▸ reset(signature
): Promise
<void
>
Parameters
Name | Type |
---|---|
signature | string [] |
Returns
Promise
<void
>