@0xknwn/starknet-module-sessionkey
@0xknwn/starknet-module-sessionkey / SessionKeyModule
Class: SessionKeyModule
Defined in: sdks/module-sessionkey/src/sessionkey.ts:33
Implements
AccountModuleInterface
Constructors
new SessionKeyModule()
new SessionKeyModule(
authKey
,accountAddress
,validatorClassHash
,chainId
,expires
,policyManager
?):SessionKeyModule
Defined in: sdks/module-sessionkey/src/sessionkey.ts:37
Parameters
authKey
string
accountAddress
string
validatorClassHash
string
chainId
string
expires
string
policyManager?
Returns
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
>
Defined in: sdks/module-sessionkey/src/sessionkey.ts:98
Parameters
signature
string
[]
Returns
Promise
<void
>
get_session_key()
get_session_key():
Promise
<string
>
Defined in: sdks/module-sessionkey/src/sessionkey.ts:83
Returns
Promise
<string
>
prefix()
prefix(
calls
):object
Defined in: sdks/module-sessionkey/src/sessionkey.ts:112
Parameters
calls
Call
| Call
[]
Returns
object
calldata
calldata:
string
[]
contractAddress
contractAddress:
string
entrypoint
entrypoint:
string
="__module_validate__"
Implementation of
AccountModuleInterface.prefix
request()
request(
grantorClass
):Promise
<Authorization
>
Defined in: sdks/module-sessionkey/src/sessionkey.ts:62
Parameters
grantorClass
string
Returns
Promise
<Authorization
>
reset()
reset(
signature
):Promise
<void
>
Defined in: sdks/module-sessionkey/src/sessionkey.ts:105
Parameters
signature
string
[]
Returns
Promise
<void
>