With Privy, you can pregenerate self-custodial Ethereum and Solana embedded wallets for existing users, or create a new user with other login methods, like an email address or phone number, without requiring the user to login. You can even send assets to the wallet before the user logs in to your app for the first time.
Once the user associated with the account logs in, they will be able to access the pregenerated wallet and any assets sent to them.
To pregenerate embedded wallets for a given user, use the importUser
method from PrivyClient
.
An array of linked accounts to associate with the user.
(Optional) Custom metadata to associate with the user.
(Optional) An array of wallets to create for the user.
The user with the newly created wallets.
To pregenerate embedded wallets for a given user, use the importUser
method from PrivyClient
.
An array of linked accounts to associate with the user.
(Optional) Custom metadata to associate with the user.
(Optional) An array of wallets to create for the user.
The user with the newly created wallets.
To pregenerate embedded wallets for a given user, make a POST request to https://auth.privy.io/api/v1/users
.
Below is a sample cURL command for generating a new wallet for a user with Privy:
A successful response will include the new user object along with their user ID and embedded wallet address, like below:
An array of linked accounts to associate with the user.
(Optional) Custom metadata to associate with the user.
(Optional) An array of wallets to create for the user.
To create embedded wallets for an existing user, use the createWallets
method from PrivyClient
.
The Privy user ID to create wallets for.
(Optional) An array of wallets to create for the user.
The user with the newly created wallets.
To create embedded wallets for an existing user, use the createWallets
method from PrivyClient
.
The Privy user ID to create wallets for.
(Optional) An array of wallets to create for the user.
The user with the newly created wallets.
To pregenerate embedded wallets for a given user, make a POST request to https://auth.privy.io/api/v1/apps/<your-app-id>/users/wallet
.
Below is a sample cURL command for generating a new wallet for a user with Privy:
A successful response will include the new user object along with their user ID and embedded wallet address, like below:
The Privy user ID to create wallets for.
(Optional) An array of wallets to create for the user.
With Privy, you can pregenerate self-custodial Ethereum and Solana embedded wallets for existing users, or create a new user with other login methods, like an email address or phone number, without requiring the user to login. You can even send assets to the wallet before the user logs in to your app for the first time.
Once the user associated with the account logs in, they will be able to access the pregenerated wallet and any assets sent to them.
To pregenerate embedded wallets for a given user, use the importUser
method from PrivyClient
.
An array of linked accounts to associate with the user.
(Optional) Custom metadata to associate with the user.
(Optional) An array of wallets to create for the user.
The user with the newly created wallets.
To pregenerate embedded wallets for a given user, use the importUser
method from PrivyClient
.
An array of linked accounts to associate with the user.
(Optional) Custom metadata to associate with the user.
(Optional) An array of wallets to create for the user.
The user with the newly created wallets.
To pregenerate embedded wallets for a given user, make a POST request to https://auth.privy.io/api/v1/users
.
Below is a sample cURL command for generating a new wallet for a user with Privy:
A successful response will include the new user object along with their user ID and embedded wallet address, like below:
An array of linked accounts to associate with the user.
(Optional) Custom metadata to associate with the user.
(Optional) An array of wallets to create for the user.
To create embedded wallets for an existing user, use the createWallets
method from PrivyClient
.
The Privy user ID to create wallets for.
(Optional) An array of wallets to create for the user.
The user with the newly created wallets.
To create embedded wallets for an existing user, use the createWallets
method from PrivyClient
.
The Privy user ID to create wallets for.
(Optional) An array of wallets to create for the user.
The user with the newly created wallets.
To pregenerate embedded wallets for a given user, make a POST request to https://auth.privy.io/api/v1/apps/<your-app-id>/users/wallet
.
Below is a sample cURL command for generating a new wallet for a user with Privy:
A successful response will include the new user object along with their user ID and embedded wallet address, like below:
The Privy user ID to create wallets for.
(Optional) An array of wallets to create for the user.