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?: CreateSolanaEmbeddedWalletOpts
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
>
Returns
Promise
<OAuthProviderType
| null
>
The provider.
Deprecated
Use the useRecoverEmbeddedWallet
hook instead.
Recover the user's embedded wallet
wallets
wallets:
ConnectedEmbeddedSolanaWallet
[]
List of embeded solana wallets at each derived HD index.