Add withdrawal address
curl --request POST \
--url https://api.breet.io/v1/payments/wallet-addresses \
--header 'Content-Type: application/json' \
--header 'X-Breet-Env: <api-key>' \
--header 'x-app-id: <api-key>' \
--header 'x-app-secret: <api-key>' \
--data '
{
"address": "14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5",
"network": "SOL",
"token": "USDT",
"label": "Main payout wallet"
}
'import requests
url = "https://api.breet.io/v1/payments/wallet-addresses"
payload = {
"address": "14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5",
"network": "SOL",
"token": "USDT",
"label": "Main payout wallet"
}
headers = {
"x-app-id": "<api-key>",
"x-app-secret": "<api-key>",
"X-Breet-Env": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-app-id': '<api-key>',
'x-app-secret': '<api-key>',
'X-Breet-Env': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
address: '14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5',
network: 'SOL',
token: 'USDT',
label: 'Main payout wallet'
})
};
fetch('https://api.breet.io/v1/payments/wallet-addresses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.breet.io/v1/payments/wallet-addresses",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'address' => '14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5',
'network' => 'SOL',
'token' => 'USDT',
'label' => 'Main payout wallet'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Breet-Env: <api-key>",
"x-app-id: <api-key>",
"x-app-secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.breet.io/v1/payments/wallet-addresses"
payload := strings.NewReader("{\n \"address\": \"14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5\",\n \"network\": \"SOL\",\n \"token\": \"USDT\",\n \"label\": \"Main payout wallet\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-app-id", "<api-key>")
req.Header.Add("x-app-secret", "<api-key>")
req.Header.Add("X-Breet-Env", "<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))
}HttpResponse<String> response = Unirest.post("https://api.breet.io/v1/payments/wallet-addresses")
.header("x-app-id", "<api-key>")
.header("x-app-secret", "<api-key>")
.header("X-Breet-Env", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5\",\n \"network\": \"SOL\",\n \"token\": \"USDT\",\n \"label\": \"Main payout wallet\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.breet.io/v1/payments/wallet-addresses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-app-id"] = '<api-key>'
request["x-app-secret"] = '<api-key>'
request["X-Breet-Env"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5\",\n \"network\": \"SOL\",\n \"token\": \"USDT\",\n \"label\": \"Main payout wallet\"\n}"
response = http.request(request)
puts response.read_body{
"message": "wallet address added successfully",
"success": true,
"data": {
"_id": "6932dc98c2ceccdea367388a",
"user": "68ca0d24604d65932aac2fc8",
"address": "14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5",
"network": "SOL",
"token": "USDT",
"label": "Main payout wallet",
"avatar": "https://assets.breet.io/token-network-assets/USDT_SOL.png",
"id": "6932dc98c2ceccdea367388a"
},
"meta": {},
"summary": {},
"stats": {}
}Wallet addresses
Add withdrawal address
Add a withdrawal (payout) wallet address for stable coins. If the same address, network, and token are sent with a different label, the existing address is updated instead of creating a duplicate. Maximum 3 addresses per user.
POST
/
payments
/
wallet-addresses
Add withdrawal address
curl --request POST \
--url https://api.breet.io/v1/payments/wallet-addresses \
--header 'Content-Type: application/json' \
--header 'X-Breet-Env: <api-key>' \
--header 'x-app-id: <api-key>' \
--header 'x-app-secret: <api-key>' \
--data '
{
"address": "14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5",
"network": "SOL",
"token": "USDT",
"label": "Main payout wallet"
}
'import requests
url = "https://api.breet.io/v1/payments/wallet-addresses"
payload = {
"address": "14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5",
"network": "SOL",
"token": "USDT",
"label": "Main payout wallet"
}
headers = {
"x-app-id": "<api-key>",
"x-app-secret": "<api-key>",
"X-Breet-Env": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
'x-app-id': '<api-key>',
'x-app-secret': '<api-key>',
'X-Breet-Env': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
address: '14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5',
network: 'SOL',
token: 'USDT',
label: 'Main payout wallet'
})
};
fetch('https://api.breet.io/v1/payments/wallet-addresses', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.breet.io/v1/payments/wallet-addresses",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'address' => '14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5',
'network' => 'SOL',
'token' => 'USDT',
'label' => 'Main payout wallet'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Breet-Env: <api-key>",
"x-app-id: <api-key>",
"x-app-secret: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.breet.io/v1/payments/wallet-addresses"
payload := strings.NewReader("{\n \"address\": \"14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5\",\n \"network\": \"SOL\",\n \"token\": \"USDT\",\n \"label\": \"Main payout wallet\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-app-id", "<api-key>")
req.Header.Add("x-app-secret", "<api-key>")
req.Header.Add("X-Breet-Env", "<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))
}HttpResponse<String> response = Unirest.post("https://api.breet.io/v1/payments/wallet-addresses")
.header("x-app-id", "<api-key>")
.header("x-app-secret", "<api-key>")
.header("X-Breet-Env", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"address\": \"14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5\",\n \"network\": \"SOL\",\n \"token\": \"USDT\",\n \"label\": \"Main payout wallet\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.breet.io/v1/payments/wallet-addresses")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-app-id"] = '<api-key>'
request["x-app-secret"] = '<api-key>'
request["X-Breet-Env"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": \"14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5\",\n \"network\": \"SOL\",\n \"token\": \"USDT\",\n \"label\": \"Main payout wallet\"\n}"
response = http.request(request)
puts response.read_body{
"message": "wallet address added successfully",
"success": true,
"data": {
"_id": "6932dc98c2ceccdea367388a",
"user": "68ca0d24604d65932aac2fc8",
"address": "14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5",
"network": "SOL",
"token": "USDT",
"label": "Main payout wallet",
"avatar": "https://assets.breet.io/token-network-assets/USDT_SOL.png",
"id": "6932dc98c2ceccdea367388a"
},
"meta": {},
"summary": {},
"stats": {}
}Authorizations
Your application ID from the Breet dashboard
Your application secret from the Breet dashboard
Environment selector: development or production
Body
application/json
The wallet address (valid for the given network).
Example:
"14grJpemFaf88c8tiVb77W7TYg2W3ir6pfkKz3YjhhZ5"
Blockchain network. Supported: ERC20, TRC20, BSC, SOL, TON.
Available options:
ERC20, TRC20, BSC, SOL, TON Token symbol.
Available options:
USDT, USDC A label for this address (e.g. for display or reference).
Response
Address added or updated successfully
Was this page helpful?
⌘I