Usage
Parameters
params(GetWalletParams):externalUserId(string): User ID from your auth provider
getBearerToken(() => Promise<string>): Function returning the auth tokenqueryOptions(UseQueryOptions, optional): React Query options (e.g.enabled)
Return Value
Returns an object containing:fetchWallet: Function to manually fetch wallet data with custom paramsdata: The wallet object (publicKey,encryptedPrivateKey,walletType, etc.)isLoading: Boolean indicating if the operation is in progressisError: Boolean indicating if an error occurredisSuccess: Boolean indicating if the query succeedederror: Any error that occurred during the processrefetch: Function to re-run the query
Example Implementation
Chipi never stores your decrypted sensitive data. All private keys and
authentication tokens remain secure and are never accessible to Chipi servers.
