Generate user session and SDK secret key.
Unique system generated identifier for the user.
Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
1from circle.web3 import user_controlled_wallets
2from circle.web3 import utils
3
4client = utils.init_user_controlled_wallets_client(api_key=key)
5
6api_instance = user_controlled_wallets.PINAuthenticationApi(client)
7request = user_controlled_wallets.UserTokenRequest.from_dict({
8 "userId": "kakarot",
9})
10response = api_instance.get_user_token(user_token_request=request)
11print(response.json())
12
1{
2 "data": {
3 "user_token": "eyJhbGciOiJS...-F8EFYDYjAxIUw",
4 "encryption_key": "7LcOsm4lUAK2Mg...+6fPjr58="
5 }
6}