Usage
Parameters
external_user_id(str): Your application’s unique identifier for the user
Return Value
Returns aGetWalletResponse object containing:
id: Internal wallet IDpublic_key: Wallet’s public addressencrypted_private_key: AES encrypted private keywallet_type: Type of walletnormalized_public_key: Normalized public keychain: Blockchain networkis_deployed: Whether the wallet contract is deployedexternal_user_id: Your application’s user IDorganization_id: Organization ID (optional)api_public_key: Organization API public keycreated_at: Wallet creation timestampupdated_at: Last update timestamp
None if wallet is not found.
Example Implementation
Async Version
For async applications, useaget_wallet:
Handling Missing Wallets
Complete Example with Caching
Using Wallet Data for Transactions
After retrieving a wallet, you can use it for transactions:Error Handling
Related Methods
- create_wallet - Create a new wallet
- transfer - Send tokens from the wallet
- get_token_balance - Check wallet balance
