Get Deposit Address
curl --request GET \
--url https://api.example.com/v1/stablecoin/addressimport requests
url = "https://api.example.com/v1/stablecoin/address"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/stablecoin/address', 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.example.com/v1/stablecoin/address",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/stablecoin/address"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/stablecoin/address")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/stablecoin/address")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"project_id": "<string>",
"chain": "<string>",
"address": "<string>",
"currency": "<string>"
}Agent API
Get Deposit Address
Get the on-chain USDC deposit address for your project. A Bridge wallet is auto-created if one doesn’t exist.
GET
/
v1
/
stablecoin
/
address
Get Deposit Address
curl --request GET \
--url https://api.example.com/v1/stablecoin/addressimport requests
url = "https://api.example.com/v1/stablecoin/address"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/v1/stablecoin/address', 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.example.com/v1/stablecoin/address",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/v1/stablecoin/address"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/v1/stablecoin/address")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/v1/stablecoin/address")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"project_id": "<string>",
"chain": "<string>",
"address": "<string>",
"currency": "<string>"
}Returns the project’s USDC deposit address on Base. Send USDC to this address to fund the project wallet. The balance updates automatically when the deposit is confirmed on-chain via Bridge.xyz webhook.
If the project does not yet have a Bridge.xyz wallet, one is created automatically on first call.
Requires a bearer token with the
read permission.Request
This endpoint takes no query parameters or request body.Response
Examples
curl https://api.unwall.xyz/v1/stablecoin/address \
-H "Authorization: Bearer aw_live_xxxxxxxxxxxx"
import requests
resp = requests.get(
"https://api.unwall.xyz/v1/stablecoin/address",
headers={"Authorization": "Bearer aw_live_xxxxxxxxxxxx"},
)
data = resp.json()
print(f"Deposit USDC on {data['chain']} to: {data['address']}")
const resp = await fetch("https://api.unwall.xyz/v1/stablecoin/address", {
headers: {
Authorization: "Bearer aw_live_xxxxxxxxxxxx",
},
});
const data = await resp.json();
console.log(`Deposit USDC on ${data.chain} to: ${data.address}`);
Response (200 OK)
{
"project_id": "proj_abc123",
"chain": "base",
"address": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD28",
"currency": "usdc"
}
Only send USDC on the Base network to this address. Sending other tokens or using the wrong network may result in permanently lost funds.