verify_session_key
Documentation for eth_defi.derive.onboarding.verify_session_key function.
- verify_session_key(client)
Verify that the session key works by reading account data.
Makes an authenticated API call to
private/get_subaccountsto confirm the session key is valid and can access the account. This endpoint works even when no subaccounts exist yet.- Parameters
client (eth_defi.derive.authentication.DeriveApiClient) – Derive API client with session_key_private set.
- Returns
True if the session key works, False otherwise.
- Return type