Updates info for a single user-controlled wallet using it's unique identifier.
Name or description associated with the wallet or walletSet.
Reference or description used to identify the object.
The universally unique identifier of the resource.
Unique system generated JWT session token for specific user.
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.WalletsApi(client)
7request = user_controlled_wallets.UpdateWalletRequest.from_dict({
8 "name": "update-name",
9})
10response = api_instance.update_wallet(x_user_token=user_token, id='290926b7-3790-5789-a7a9-594a9b99f1cc', update_wallet_request=request)
11print(response.json())
12
1{
2 "data": {
3 "wallet": {
4 "id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
5 "address": "0xca9142d0b9804ef5e239d3bc1c7aa0d1c74e7350",
6 "blockchain": "MATIC-AMOY",
7 "create_date": "2023-01-01T12:04:05Z",
8 "update_date": "2023-01-01T12:04:05Z",
9 "custody_type": "DEVELOPER",
10 "name": "",
11 "ref_id": "custom_ref_id",
12 "state": "LIVE",
13 "user_id": "ext_user_id_1",
14 "wallet_set_id": "c4d1da72-111e-4d52-bdbf-2e74a2d803d5",
15 "initial_public_key": "3eQoJ3ex6uWX3R8F1THF6Y6oBQwPYpF1X9HBM1gjqw7w",
16 "account_type": "EOA"
17 }
18 }
19}