CryptoClient

interface CryptoClient

Crypto wallet authentication methods.

Functions

Link copied to clipboard
abstract suspend fun authenticate(request: ICryptoWalletsAuthenticateParameters, signChallenge: suspend (String) -> String): CryptoWalletsAuthenticateResponse

Authenticates a crypto wallet by signing a server-issued challenge with the wallet's private key. Performs a two-step flow: calls POST /sdk/v1/crypto_wallets/authenticate/start/primary (no session) or POST /sdk/v1/crypto_wallets/authenticate/start/secondary (with session) to get a challenge string, invokes signChallenge to sign it, then calls POST /sdk/v1/crypto_wallets/authenticate to complete authentication.