cURL
curl --request POST \
--url https://api.relay.link/deposit-addresses/{depositAddressId}/update/v2 \
--header 'Content-Type: application/json' \
--data '
{
"isEnabled": true,
"fixedRate": "<string>",
"subsidizeFees": true,
"sponsoredFeeComponents": [],
"maxSubsidizationAmount": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
isEnabled: true,
fixedRate: '<string>',
subsidizeFees: true,
sponsoredFeeComponents: [],
maxSubsidizationAmount: '<string>'
})
};
fetch('https://api.relay.link/deposit-addresses/{depositAddressId}/update/v2', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.relay.link/deposit-addresses/{depositAddressId}/update/v2"
payload = {
"isEnabled": True,
"fixedRate": "<string>",
"subsidizeFees": True,
"sponsoredFeeComponents": [],
"maxSubsidizationAmount": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "<string>",
"errorCode": "<string>"
}{
"message": "<string>",
"errorCode": "<string>"
}{
"message": "<string>",
"errorCode": "<string>"
}{
"message": "<string>",
"errorCode": "<string>"
}{
"message": "<string>",
"errorCode": "<string>"
}{
"message": "<string>",
"errorCode": "<string>"
}API Reference
Update Deposit Address
Enable or disable a deposit address, or change its fixed rate and fee sponsorship
POST
/
deposit-addresses
/
{depositAddressId}
/
update
/
v2
cURL
curl --request POST \
--url https://api.relay.link/deposit-addresses/{depositAddressId}/update/v2 \
--header 'Content-Type: application/json' \
--data '
{
"isEnabled": true,
"fixedRate": "<string>",
"subsidizeFees": true,
"sponsoredFeeComponents": [],
"maxSubsidizationAmount": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
isEnabled: true,
fixedRate: '<string>',
subsidizeFees: true,
sponsoredFeeComponents: [],
maxSubsidizationAmount: '<string>'
})
};
fetch('https://api.relay.link/deposit-addresses/{depositAddressId}/update/v2', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.relay.link/deposit-addresses/{depositAddressId}/update/v2"
payload = {
"isEnabled": True,
"fixedRate": "<string>",
"subsidizeFees": True,
"sponsoredFeeComponents": [],
"maxSubsidizationAmount": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "<string>",
"errorCode": "<string>"
}{
"message": "<string>",
"errorCode": "<string>"
}{
"message": "<string>",
"errorCode": "<string>"
}{
"message": "<string>",
"errorCode": "<string>"
}{
"message": "<string>",
"errorCode": "<string>"
}{
"message": "<string>",
"errorCode": "<string>"
}What are deposit addresses?
Headers
Body
application/json
Was this page helpful?