From my client
The React SDK supports automatically creating embedded wallets for your users when they login to your app. View this guide to learn more and configure automatic wallet creation.
To create a wallet with the React SDK, use the createWallet
method from the useCreateWallet
hook:
Usage
Parameters
Whether or not to create an additional Ethereum wallet for the user if they already have an existing Ethereum embedded wallet. Must be set to true
to create additional wallets. Defaults to false
. Learn more
HD index to create the Ethereum wallet at. User must have an existing Ethereum embedded wallet in order to use this parameter.
Returns
A Promise
for the linked account object for the created wallet.
Callbacks
You can optionally register an onSuccess
or onError
callback on the useCreateWallet
hook.
Optional callback to run after a user successfully creates a wallet.
Optional callback to run after there is an error during wallet creation.
To create a wallet with the React SDK, use the createWallet
method from the useCreateWallet
hook:
Usage
Parameters
Whether or not to create an additional Ethereum wallet for the user if they already have an existing Ethereum embedded wallet. Must be set to true
to create additional wallets. Defaults to false
. Learn more
HD index to create the Ethereum wallet at. User must have an existing Ethereum embedded wallet in order to use this parameter.
Returns
A Promise
for the linked account object for the created wallet.
Callbacks
You can optionally register an onSuccess
or onError
callback on the useCreateWallet
hook.
Optional callback to run after a user successfully creates a wallet.
Optional callback to run after there is an error during wallet creation.
To create a wallet with the React SDK, use the createWallet
method from the useSolanaWallets
hook:
Usage
Parameters
The createWallet
method optionally accepts as a parameter an opts
object with the following fields:
Whether or not to create an additional Solana wallet for the user if they already have an existing Solana embedded wallet. Must be set to true
to create additional wallets. Defaults to false
. Learn more
HD index to create the Solana wallet at. User must have an existing Solana embedded wallet in order to use this parameter.
Returns
The linked account object for the created wallet.
The React SDK supports automatically creating embedded wallets for your users when they login to your app. View this guide to learn more and configure automatic wallet creation.
To create a wallet with the React SDK, use the createWallet
method from the useCreateWallet
hook:
Usage
Parameters
Whether or not to create an additional Ethereum wallet for the user if they already have an existing Ethereum embedded wallet. Must be set to true
to create additional wallets. Defaults to false
. Learn more
HD index to create the Ethereum wallet at. User must have an existing Ethereum embedded wallet in order to use this parameter.
Returns
A Promise
for the linked account object for the created wallet.
Callbacks
You can optionally register an onSuccess
or onError
callback on the useCreateWallet
hook.
Optional callback to run after a user successfully creates a wallet.
Optional callback to run after there is an error during wallet creation.
To create a wallet with the React SDK, use the createWallet
method from the useCreateWallet
hook:
Usage
Parameters
Whether or not to create an additional Ethereum wallet for the user if they already have an existing Ethereum embedded wallet. Must be set to true
to create additional wallets. Defaults to false
. Learn more
HD index to create the Ethereum wallet at. User must have an existing Ethereum embedded wallet in order to use this parameter.
Returns
A Promise
for the linked account object for the created wallet.
Callbacks
You can optionally register an onSuccess
or onError
callback on the useCreateWallet
hook.
Optional callback to run after a user successfully creates a wallet.
Optional callback to run after there is an error during wallet creation.
To create a wallet with the React SDK, use the createWallet
method from the useSolanaWallets
hook:
Usage
Parameters
The createWallet
method optionally accepts as a parameter an opts
object with the following fields:
Whether or not to create an additional Solana wallet for the user if they already have an existing Solana embedded wallet. Must be set to true
to create additional wallets. Defaults to false
. Learn more
HD index to create the Solana wallet at. User must have an existing Solana embedded wallet in order to use this parameter.
Returns
The linked account object for the created wallet.
The React Native SDK supports automatically creating embedded wallets for your users when they login to your app. View this guide to learn more and configure automatic wallet creation.
To create a wallet with the React Native SDK, use the create
method from the useEmbeddedEthereumWallet
hook:
Usage
Parameters
The create
method optionally accepts as a parameter an opts
object with the following fields:
Whether or not to create an additional Ethereum wallet for the user if they already have an existing Ethereum embedded wallet. Must be set to true
to create additional wallets. Defaults to false
. Learn more
Returns
A Promise
for an object containing the updated user
object for the user.
To create a wallet with the React Native SDK, use the create
method from the useEmbeddedEthereumWallet
hook:
Usage
Parameters
The create
method optionally accepts as a parameter an opts
object with the following fields:
Whether or not to create an additional Ethereum wallet for the user if they already have an existing Ethereum embedded wallet. Must be set to true
to create additional wallets. Defaults to false
. Learn more
Returns
A Promise
for an object containing the updated user
object for the user.
To create a wallet with the React Native SDK, use the create
method from the useEmbeddedSolanaWallet
hook:
Usage
Parameters
The create
method optionally accepts as a parameter an opts
object with the following fields:
Whether or not to create an additional Solana wallet for the user if they already have an existing Solana embedded wallet. Must be set to true
to create additional wallets. Defaults to false
. Learn more
Returns
A Promise
for an object containing the updated user
object.
To create a wallet with the React Native SDK, use the create
method from the useEmbeddedBitcoinWallet
hook:
Usage
Parameters
The create
method optionally accepts as a parameter an opts
object with the following fields:
The type of Bitcoin wallet to create.
Whether or not to create an additional Bitcoin wallet for the user if they already have an existing Bitcoin embedded wallet. Must be set to true
to create additional wallets. Defaults to false
. Learn more
Returns
A Promise
for an object containing the updated user
object.
To create a wallet with the Swift SDK, use the createEthereumWallet
method from the PrivyUser
instance:
Parameters
The createEthereumWallet
method optionally accepts the following parameters:
Whether or not to create an additional Ethereum wallet for the user if they already have an existing Ethereum embedded wallet. Must be set to true
to create additional wallets. Defaults to false
.
Returns
The newly created EmbeddedEthereumWallet
.
To create a wallet with the Swift SDK, use the createEthereumWallet
method from the PrivyUser
instance:
Parameters
The createEthereumWallet
method optionally accepts the following parameters:
Whether or not to create an additional Ethereum wallet for the user if they already have an existing Ethereum embedded wallet. Must be set to true
to create additional wallets. Defaults to false
.
Returns
The newly created EmbeddedEthereumWallet
.
To create a wallet with the Android SDK, use the createEthereumWallet
method from the PrivyUser
instance:
Parameters
The createEthereumWallet
method optionally accepts the following parameters:
Whether or not to create an additional Ethereum wallet for the user if they already have an existing Ethereum embedded wallet. Must be set to true
to create additional wallets. Defaults to false
.
Returns
A Result
containing the EmbeddedEthereumWallet
for the user.
To create a wallet with the Android SDK, use the createEthereumWallet
method from the PrivyUser
instance:
Parameters
The createEthereumWallet
method optionally accepts the following parameters:
Whether or not to create an additional Ethereum wallet for the user if they already have an existing Ethereum embedded wallet. Must be set to true
to create additional wallets. Defaults to false
.
Returns
A Result
containing the EmbeddedEthereumWallet
for the user.
To create a wallet with the Unity SDK, use the CreateWallet
method on your PrivyUser
instance:
Parameters
The CreateWallet
method accepts the following parameter:
Whether or not to create an additional wallet for the user if they already have an existing ethereum wallet.
Must be set to true
to create additional wallets.
Defaults to false
.
Returns
A Task
for the created ethereum wallet object.
To create a wallet with the Unity SDK, use the CreateWallet
method on your PrivyUser
instance:
Parameters
The CreateWallet
method accepts the following parameter:
Whether or not to create an additional wallet for the user if they already have an existing ethereum wallet.
Must be set to true
to create additional wallets.
Defaults to false
.
Returns
A Task
for the created ethereum wallet object.
To create a wallet with the Unity SDK, use the CreateSolanaWallet
method on your PrivyUser
instance:
Parameters
The CreateSolanaWallet
method accepts the following parameter:
Whether or not to create an additional wallet for the user if they already have an existing solana wallet.
Must be set to true
to create additional wallets.
Defaults to false
.
Returns
A Task
for the created solana wallet object.
To create a wallet with the Flutter SDK, use the createEthereumWallet
method from the PrivyUser
instance:
Parameters
The createEthereumWallet
method optionally accepts as a parameter an opts
object with the following fields:
Whether or not to create an additional Ethereum wallet for the user if they already have an existing Ethereum embedded wallet. Must be set to true
to create additional wallets. Defaults to false
.
Returns
A Result
containing the EmbeddedEthereumWallet
for the user.
To create a wallet with the Flutter SDK, use the createEthereumWallet
method from the PrivyUser
instance:
Parameters
The createEthereumWallet
method optionally accepts as a parameter an opts
object with the following fields:
Whether or not to create an additional Ethereum wallet for the user if they already have an existing Ethereum embedded wallet. Must be set to true
to create additional wallets. Defaults to false
.
Returns
A Result
containing the EmbeddedEthereumWallet
for the user.
To create a wallet with the Android SDK, use the createSolanaWallet
method from the PrivyUser
instance:
Parameters
The createSolanaWallet
method optionally accepts the following parameters:
Whether or not to create an additional Solana wallet for the user if they already have an existing Solana embedded wallet. Must be set to true
to create additional wallets. Defaults to false
.
Returns
A Result
containing the EmbeddedSolanaWallet
for the user.