Identity
Create Blockchain Wallet
Create a wallet in your application.
Create blockchain wallet using network ID
Make a POST request to /wallets to create and return a new wallet object in your application. The wallet will also be accessible through the Console.
const response = await fetch('https://api.utiliti.ai/wallets', { method: 'POST', headers: { 'Content-Type': 'application/json', 'X-API-key': '<YOUR_API_KEY_HERE>', }, body: JSON.stringify({ name: 'Dylpickles wallet', network_id: '1', //ethereum }), })
SDK coming soon...
CURL *hnd = curl_easy_init(); curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST"); curl_easy_setopt(hnd, CURLOPT_URL, "https://api.utiliti.ai/wallets"); 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>"); headers = curl_slist_append(headers, "content-type: application/json"); curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers); curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\"name\":\"TestWallet\",\"network_id\":\"1\"}"); CURLcode ret = curl_easy_perform(hnd);
curl --request POST \ --url https://api.utiliti.ai/wallets \ --header '<YOUR_API_KEY_HERE>' \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "name": "Dylpickles wallet", "network_id": "1" }
$python -m pip install requests --- import requests url = "https://api.utiliti.ai/wallets" payload = { "name": "Dylpickles wallet", "network_id": "1" } headers = { "accept": "application/json", "X-API-key": "<YOUR_API_KEY_HERE>", "content-type": "application/json" } response = requests.post(url, json=payload, headers=headers) print(response.text)
You can find a list of all the support networks and their corresponding network ids here.