Usage
Parameters
externalUserId
(string): Your application’s unique identifier for the user
Return Value
Returns a Promise that resolves to an object containing:publicKey
(string): The wallet’s public address on StarkNetencryptedPrivateKey
(string): The encrypted private key for the wallet
Example Implementation
Security Considerations
Important Security Notes:
- Never expose encrypted private keys in API responses
- Validate user IDs before making requests
- Implement proper access controls in your application
- Use HTTPS for all communications
- Log wallet access for audit purposes
Chipi never stores your decrypted sensitive data. All private keys remain encrypted and are never accessible to Chipi servers.
Related Methods
- createWallet - Create a new wallet for users who don’t have one
- transfer - Send tokens from the retrieved wallet