TWaasContext
@coinbase/waas-sdk-web-react • API
Type alias: TWaasContext
TWaasContext:
Object
Type declaration
error
error:
Error
|undefined
If an error occurs during initialization, it will surface here.
isCreatingWallet
isCreatingWallet:
boolean
If true, WaaS is actively creating or restoring a wallet via MPC.
isLoggingIn
isLoggingIn:
boolean
If true, WaaS is actively logging in the user.
user
user:
TReactUser
|undefined
The current logged in user.
If this is null, the user is not yet logged in.
waas
waas:
TReactWaas
|undefined
The current loaded Waas instance.
If this is null, it is assumed that Waas is still loading.
wallet
wallet:
Wallet
|undefined
Waas's active wallet.
If this is null, then;
- ($isCreatingWallet == true) implies that a wallet is actively being created via MPC, or
- ($isCreatingWallet == false) implies that the user has no wallet.