Skip to main content

Usage

Parameters

  • external_user_id (str): Your application’s unique identifier for the user

Return Value

Returns a GetWalletResponse object containing:
  • id: Internal wallet ID
  • public_key: Wallet’s public address
  • encrypted_private_key: AES encrypted private key
  • wallet_type: Type of wallet
  • normalized_public_key: Normalized public key
  • chain: Blockchain network
  • is_deployed: Whether the wallet contract is deployed
  • external_user_id: Your application’s user ID
  • organization_id: Organization ID (optional)
  • api_public_key: Organization API public key
  • created_at: Wallet creation timestamp
  • updated_at: Last update timestamp
Returns None if wallet is not found.

Example Implementation

Async Version

For async applications, use aget_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