Identity
Update Blockchain Wallet
Update a wallet's metadata.
Update wallet metadata
Make a PUT request to /wallets/{wallet_id} where {wallet_id} is replaced with the wallet's id to update a wallet metadata with a new name or address.
const wallet_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6' const response = await fetch('https://api.utiliti.ai/wallets/' + wallet_id, { method: 'PUT', headers: { 'Content-Type': 'application/json', 'X-API-key': '<YOUR_API_KEY_HERE>', //replace }, body: JSON.stringify({ name: 'Niks wallet', }), })
SDK coming soon...
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "PUT"); curl_easy_setopt(hnd, CURLOPT_URL, "https://api.utiliti.ai/wallets/?wallet_id=3fa85f64-5717-4562-b3fc-2c963f66afa6"); struct curl_slist *headers = NULL; headers = curl_slist_append(headers, "accept: application/json"); headers = curl_slist_append(headers, "X-API-key: <YOUR_API_KEY_HERE>"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); CURLcode ret = curl_easy_perform(hnd);
curl --request PUT \ --url 'https://api.utiliti.ai/wallets/?wallet_id=3fa85f64-5717-4562-b3fc-2c963f66afa6' \ --header 'X-API-key: <YOUR_API_KEY_HERE>' \ --header 'accept: application/json'
$python -m pip install requests --- import requests url = "https://api.utiliti.ai/wallets/?wallet_id=3fa85f64-5717-4562-b3fc-2c963f66afa6" headers = { "accept": "application/json", "X-API-key": "<YOUR_API_KEY_HERE>" } response = requests.put(url, headers=headers) print(response.text)