User Wallet
Overview
The UserWallet
entity is used to store the relationship between users and their wallet addresses, which are generated using Web3Auth. This entity links each user with a unique wallet address that is associated with one of the supported applications, either Crowdex or RentInvesto.
Use Cases
-
Wallet Generation When a user registers or connects via Web3Auth, a new wallet address is generated and stored in the
UserWallet
entity. This ensures that each user has a unique wallet associated with their account. -
Application-Specific Wallets The
application
attribute allows for differentiation between wallets used for different platforms. A user can have a wallet specific toCROWDEX
orRENTINVESTO
, ensuring proper transaction routing and account management.
Attributes
- userId: A unique and required identifier linking the user to their wallet.
- application: Specifies whether the wallet is used for the
CROWDEX
orRENTINVESTO
platform. - address: The user's unique wallet address, generated by Web3Auth and required for blockchain interactions.