Appearance
Documentation / expo / EmbeddedSolanaWalletActions
Type alias: EmbeddedSolanaWalletActions
EmbeddedSolanaWalletActions:
Object
Type declaration
create
create: (
args
?) =>Promise
<OAuthProviderType
|null
>
Create an embedded wallet for this user.
Parameters
• args?: CreateOrRecoverEmbeddedWalletProps
Returns
Promise
<OAuthProviderType
| null
>
The provider. If using google-drive recovery on Android, this will return null due to an Android bug with AuthSession. Use the createSolanaWalletCallbacks
to handle wallet creation success in such cases.
getProvider
getProvider: () =>
Promise
<OAuthProviderType
>
Return a provider for the Privy embedded wallet.
Returns
Promise
<OAuthProviderType
>
PrivyEmbeddedSolanaWalletProvider the Phantom provider
recover
recover: () =>
Promise
<OAuthProviderType
|null
>
Recover the user's embedded wallet
Returns
Promise
<OAuthProviderType
| null
>
The provider.