Usage
Parameters
external_user_id(str): Your application’s unique identifier for the user
Return Value
Returns aGetWalletResponse object containing:
id: Internal wallet IDuser_id: Internal user ID (optional)org_id: Organization ID (optional)wallet:WalletDataobject with:public_key: Wallet’s public addressencrypted_private_key: AES encrypted private keywallet_type: Type of walletnormalized_public_key: Normalized public key
external_user_id: Your application’s user IDcreated_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
