Identity
Query Blockchain Wallet Data
Retrieve wallet metadata in your application.
Retrieve all wallets
Make a GET request to /wallets to return a list of all wallet ids for the application.
const response = await fetch('https://api.utiliti.ai/wallets', { method: 'GET', headers: { 'Content-Type': 'application/json', 'X-API-key': '<YOUR_API_KEY_HERE>', }, })
SDK coming soon...
using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://api.utiliti.ai/wallets"), Headers = { { "accept", "application/json" }, { "X-API-key", "<YOUR_API_KEY_HERE>" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }
curl --request GET \ --url https://api.utiliti.ai/wallets \ --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" headers = { "accept": "application/json", "X-API-key": "<YOUR_API_KEY_HERE>" } response = requests.get(url, headers=headers) print(response.text)
Retrieve wallet metadata
Make a GET request to /wallets/{wallet_id} where {wallet_id} is replaced with the wallet's id to return the wallet metadata.
const wallet_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6' const response = await fetch('https://api.utiliti.ai/wallets/' + wallet_id, { method: 'GET', 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, "GET"); 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 GET \ --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/3fa85f64-5717-4562-b3fc-2c963f66afa6" headers = { "accept": "application/json", "X-API-key": "<YOUR_API_KEY_HERE>" } response = requests.get(url, headers=headers) print(response.text)