Preparing search index...
The search index is not available
Documentation
Documentation
@mysten/enoki
EnokiFlow
Class EnokiFlow
Index
Constructors
constructor
Properties
$zk
Login
Session
$zk
Login
State
Accessors
enoki
Client
Methods
create
AuthorizationURL
execute
Transaction
get
Keypair
get
Proof
get
Session
handle
Auth
Callback
logout
sponsor
And
Execute
Transaction
sponsor
Transaction
Constructors
constructor
new
Enoki
Flow
(
config
)
:
EnokiFlow
Parameters
config
:
EnokiFlowConfig
Returns
EnokiFlow
Properties
$zk
Login
Session
$zk
Login
Session
:
WritableAtom
<
{
initialized
:
boolean
;
value
:
null
|
ZkLoginSession
;
}
>
$zk
Login
State
$zk
Login
State
:
WritableAtom
<
ZkLoginState
>
Accessors
enoki
Client
get
enokiClient
(
)
:
EnokiClient
Returns
EnokiClient
Methods
create
AuthorizationURL
create
AuthorizationURL
(
input
)
:
Promise
<
string
>
Parameters
input
:
{
clientId
:
string
;
extraParams
?:
Record
<
string
,
unknown
>
;
network
?:
"mainnet"
|
"testnet"
|
"devnet"
;
provider
:
AuthProvider
;
redirectUrl
:
string
;
}
client
Id
:
string
Optional
extra
Params
?:
Record
<
string
,
unknown
>
Optional
network
?:
"mainnet"
|
"testnet"
|
"devnet"
provider
:
AuthProvider
redirect
Url
:
string
Returns
Promise
<
string
>
execute
Transaction
execute
Transaction
(
__namedParameters
)
:
Promise
<
{
digest
:
string
;
}
>
Parameters
__namedParameters
:
{
bytes
:
string
;
client
:
SuiClient
;
digest
:
string
;
network
?:
"mainnet"
|
"testnet"
;
}
bytes
:
string
client
:
SuiClient
digest
:
string
Optional
network
?:
"mainnet"
|
"testnet"
Returns
Promise
<
{
digest
:
string
;
}
>
get
Keypair
get
Keypair
(
__namedParameters
?
)
:
Promise
<
EnokiKeypair
>
Parameters
__namedParameters
:
{
network
?:
"mainnet"
|
"testnet"
;
}
= {}
Optional
network
?:
"mainnet"
|
"testnet"
Returns
Promise
<
EnokiKeypair
>
get
Proof
get
Proof
(
__namedParameters
?
)
:
Promise
<
CreateZkLoginZkpApiResponse
>
Parameters
__namedParameters
:
{
network
?:
"mainnet"
|
"testnet"
;
}
= {}
Optional
network
?:
"mainnet"
|
"testnet"
Returns
Promise
<
CreateZkLoginZkpApiResponse
>
get
Session
get
Session
(
)
:
Promise
<
null
|
ZkLoginSession
>
Returns
Promise
<
null
|
ZkLoginSession
>
handle
Auth
Callback
handle
Auth
Callback
(
hash
?
)
:
Promise
<
null
|
string
>
Parameters
hash
:
string
= window.location.hash
Returns
Promise
<
null
|
string
>
logout
logout
(
)
:
Promise
<
void
>
Returns
Promise
<
void
>
sponsor
And
Execute
Transaction
sponsor
And
Execute
Transaction
(
__namedParameters
)
:
Promise
<
{
digest
:
string
;
}
>
Parameters
__namedParameters
:
{
client
:
SuiClient
;
network
?:
"mainnet"
|
"testnet"
;
transaction
:
Transaction
;
}
client
:
SuiClient
Optional
network
?:
"mainnet"
|
"testnet"
transaction
:
Transaction
Returns
Promise
<
{
digest
:
string
;
}
>
sponsor
Transaction
sponsor
Transaction
(
__namedParameters
)
:
Promise
<
CreateSponsoredTransactionApiResponse
>
Parameters
__namedParameters
:
{
client
:
SuiClient
;
network
?:
"mainnet"
|
"testnet"
;
transaction
:
Transaction
;
}
client
:
SuiClient
Optional
network
?:
"mainnet"
|
"testnet"
transaction
:
Transaction
Returns
Promise
<
CreateSponsoredTransactionApiResponse
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
$zk
Login
Session
$zk
Login
State
Accessors
enoki
Client
Methods
create
AuthorizationURL
execute
Transaction
get
Keypair
get
Proof
get
Session
handle
Auth
Callback
logout
sponsor
And
Execute
Transaction
sponsor
Transaction
Documentation
Loading...