Generate a constant crypto address for deposit [Private]
Generates and returns your constant deposit address or returns to you the address that you generated earlier.
To call any private endpoint, headers should include authorization key(s).
You may use a single API key or a public-private key pair based on your current tasks. Here you may find typical Header configurations for both options.
Method name: | /v4/deposit/private/crypto/generateAddress |
Request type: | POST |
Data dictionary
Name | Type | Parameter type | Required | Range | Description |
---|---|---|---|---|---|
source | string | QUERY | YES | - | Blockchain name for which you want to get the address to deposit into the account, e.g. BTC, ETH, TRX. |
source
for TRC20 and ERC20 tokens:USDT TRC20 and other TRC20 tokens -
TRX
.
USDT ERC20 and other ERC20 tokens -ETH
.You can learn more about all the blockchains in our knowledge base.
Exemplary request
const apiKey = "YOUR_API_KEY"; // put here your Api key
const url = "https://api.kuna.io";
const path = "/v4/deposit/private/crypto/generateAddress";
const body = {
"source": "BTC"
};
const options = {
method: "POST",
headers: {
accept: "application/json",
"Content-Type": "application/json",
"api-key": apiKey,
},
body: JSON.stringify(body),
};
fetch(url + path, options)
.then((response) => response.json())
.then((showResponse) => console.log(showResponse.data));
import requests
api_key = "YOUR_API_KEY" # put here your Api key
url = "https://api.kuna.io"
path = "/v4/deposit/private/crypto/generateAddress"
headers = {
"accept": "application/json",
"Content-Type": "application/json",
"api-key": api_key,
}
body = {
"source": "BTC",
}
request = requests.post(url + path, headers=headers, json=body)
print(request.json())
How to call private endpoints here
Response
{
"id": "1300c2b6-ree4-4f1e-2a9d-e0f7ed0991a7", // ID of your address
"source": "BTC", // Blockchain name for which you want to get the address to deposit into the account
"address": "bc1qm6xfv0qsaaanx0egn6hca5vgsd4r7ak9ttha2a" // Your deposit address
}
Updated over 1 year ago