Identity
Delete Blockchain Wallet
Delete a wallet from your application.
Delete blockchain wallet using wallet ID
Make a DELETE request to /wallets/{wallet_id} where {wallet_id} is replaced with the wallet's id to delete a wallet.
WARNING: Wallets are permanently deleted.
const wallet_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6' const response = await fetch('https://api.utiliti.ai/wallets/' + wallet_id, { method: 'DELETE', headers: { 'Content-Type': 'application/json', 'X-API-key': '<YOUR_API_KEY_HERE', }, })
SDK coming soon...
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "DELETE"); curl_easy_setopt(hnd, CURLOPT_URL, "https://api.utiliti.ai/wallets/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 DELETE \ --url https://api.utiliti.ai/wallets/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.delete(url, headers=headers) print(response.text)
A successful deletion of the wallet will create a status code 200