Get deposit addresses
curl --request POST \
--url https://api.kraken.com/0/private/DepositAddresses \
--header 'API-Key: <api-key>' \
--header 'API-Sign: <api-key>' \
--header 'Content-Type: application/json' \
--header 'x-vault-id: <x-vault-id>' \
--data '
{
"nonce": 123,
"asset": "<string>",
"method": "<string>",
"aclass": "currency",
"new": false
}
'import requests
url = "https://api.kraken.com/0/private/DepositAddresses"
payload = {
"nonce": 123,
"asset": "<string>",
"method": "<string>",
"aclass": "currency",
"new": False
}
headers = {
"x-vault-id": "<x-vault-id>",
"API-Key": "<api-key>",
"API-Sign": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-vault-id': '<x-vault-id>',
'API-Key': '<api-key>',
'API-Sign': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
nonce: 123,
asset: '<string>',
method: '<string>',
aclass: 'currency',
new: false
})
};
fetch('https://api.kraken.com/0/private/DepositAddresses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kraken.com/0/private/DepositAddresses"
payload := strings.NewReader("{\n \"nonce\": 123,\n \"asset\": \"<string>\",\n \"method\": \"<string>\",\n \"aclass\": \"currency\",\n \"new\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-vault-id", "<x-vault-id>")
req.Header.Add("API-Key", "<api-key>")
req.Header.Add("API-Sign", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": [
{
"severity": "E",
"errorClass": "<string>",
"type": "<string>",
"errorMessage": "<string>"
}
],
"result": [
{
"address": "<string>",
"expiretm": 0,
"memo": "<string>",
"new": true,
"tag": "<string>"
}
]
}Portfolios
Get deposit addresses
Retrieve (or generate a new) deposit addresses for a particular asset and funding method. Use the Get Deposit Methods API to identify the appropriate deposit method.
POST
/
0
/
private
/
DepositAddresses
Get deposit addresses
curl --request POST \
--url https://api.kraken.com/0/private/DepositAddresses \
--header 'API-Key: <api-key>' \
--header 'API-Sign: <api-key>' \
--header 'Content-Type: application/json' \
--header 'x-vault-id: <x-vault-id>' \
--data '
{
"nonce": 123,
"asset": "<string>",
"method": "<string>",
"aclass": "currency",
"new": false
}
'import requests
url = "https://api.kraken.com/0/private/DepositAddresses"
payload = {
"nonce": 123,
"asset": "<string>",
"method": "<string>",
"aclass": "currency",
"new": False
}
headers = {
"x-vault-id": "<x-vault-id>",
"API-Key": "<api-key>",
"API-Sign": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-vault-id': '<x-vault-id>',
'API-Key': '<api-key>',
'API-Sign': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
nonce: 123,
asset: '<string>',
method: '<string>',
aclass: 'currency',
new: false
})
};
fetch('https://api.kraken.com/0/private/DepositAddresses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.kraken.com/0/private/DepositAddresses"
payload := strings.NewReader("{\n \"nonce\": 123,\n \"asset\": \"<string>\",\n \"method\": \"<string>\",\n \"aclass\": \"currency\",\n \"new\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-vault-id", "<x-vault-id>")
req.Header.Add("API-Key", "<api-key>")
req.Header.Add("API-Sign", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"error": [
{
"severity": "E",
"errorClass": "<string>",
"type": "<string>",
"errorMessage": "<string>"
}
],
"result": [
{
"address": "<string>",
"expiretm": 0,
"memo": "<string>",
"new": true,
"tag": "<string>"
}
]
}Authorizations
The "API-Key" header should contain your API key.
Authenticated requests should be signed with the "API-Sign" header, using a signature generated with your private key, nonce, encoded payload, and URI path.
Headers
Vault ID or Vault IIBAN
Required string length:
12 - 19Pattern:
(^V[A-Z2-7]{12}[ACEGIKMOQSUWY246]$|AA[A-Z0-9]{2} ?[A-Z0-9]{4} ?[A-Z0-9]{4} ?[A-Z0-9]{4})Body
application/json
Nonce used in construction of API-Sign header
Required string length:
1 - 16Name of the deposit method
Available options:
currency, forex, equity, equitypair, nft, volume Whether or not to generate a new address
Was this page helpful?