curl --request POST \
--url https://api.totalis.trade/v1/wallet/withdraw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"recipient": "<string>",
"amount_usdc": 1.000001
}
'import requests
url = "https://api.totalis.trade/v1/wallet/withdraw"
payload = {
"recipient": "<string>",
"amount_usdc": 1.000001
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({recipient: '<string>', amount_usdc: 1.000001})
};
fetch('https://api.totalis.trade/v1/wallet/withdraw', 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.totalis.trade/v1/wallet/withdraw",
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([
'recipient' => '<string>',
'amount_usdc' => 1.000001
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.totalis.trade/v1/wallet/withdraw"
payload := strings.NewReader("{\n \"recipient\": \"<string>\",\n \"amount_usdc\": 1.000001\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.totalis.trade/v1/wallet/withdraw")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"recipient\": \"<string>\",\n \"amount_usdc\": 1.000001\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.totalis.trade/v1/wallet/withdraw")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"recipient\": \"<string>\",\n \"amount_usdc\": 1.000001\n}"
response = http.request(request)
puts response.read_body{
"data": {
"signature": "<string>",
"explorer_url": "<string>",
"vault_signature": "<string>",
"vault_amount": 123,
"recipient_ata_created": true,
"chargeback_usdc": 123,
"delivered_usdc": 123
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {},
"retry_after": 123
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Missing or invalid authentication"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {},
"retry_after": 123
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {},
"retry_after": 123
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {},
"retry_after": 123
}
}{
"error": {
"code": "PARTIAL_VAULT_ONLY",
"message": "<string>",
"details": {
"signature": "<string>",
"vault_signature": "<string>",
"vault_amount": 123,
"chargeback_usdc": 123,
"delivered_usdc": 123,
"partial": "vault_only"
}
}
}Withdraw to external address
Withdraw USDC from the embedded wallet to an external Solana address.
curl --request POST \
--url https://api.totalis.trade/v1/wallet/withdraw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"recipient": "<string>",
"amount_usdc": 1.000001
}
'import requests
url = "https://api.totalis.trade/v1/wallet/withdraw"
payload = {
"recipient": "<string>",
"amount_usdc": 1.000001
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({recipient: '<string>', amount_usdc: 1.000001})
};
fetch('https://api.totalis.trade/v1/wallet/withdraw', 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.totalis.trade/v1/wallet/withdraw",
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([
'recipient' => '<string>',
'amount_usdc' => 1.000001
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$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.totalis.trade/v1/wallet/withdraw"
payload := strings.NewReader("{\n \"recipient\": \"<string>\",\n \"amount_usdc\": 1.000001\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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.totalis.trade/v1/wallet/withdraw")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"recipient\": \"<string>\",\n \"amount_usdc\": 1.000001\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.totalis.trade/v1/wallet/withdraw")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"recipient\": \"<string>\",\n \"amount_usdc\": 1.000001\n}"
response = http.request(request)
puts response.read_body{
"data": {
"signature": "<string>",
"explorer_url": "<string>",
"vault_signature": "<string>",
"vault_amount": 123,
"recipient_ata_created": true,
"chargeback_usdc": 123,
"delivered_usdc": 123
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {},
"retry_after": 123
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Missing or invalid authentication"
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {},
"retry_after": 123
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {},
"retry_after": 123
}
}{
"error": {
"code": "VALIDATION_ERROR",
"message": "<string>",
"details": {},
"retry_after": 123
}
}{
"error": {
"code": "PARTIAL_VAULT_ONLY",
"message": "<string>",
"details": {
"signature": "<string>",
"vault_signature": "<string>",
"vault_amount": 123,
"chargeback_usdc": 123,
"delivered_usdc": 123,
"partial": "vault_only"
}
}
}Authorizations
Privy JWT issued to the web dashboard. Sent as Authorization: Bearer <jwt>. The Privy session signer underpins all wallet-signed actions.
Headers
Client-generated UUID. Successful (2xx) responses are cached for 24h and replayed on retry with the same key. The request body is not part of the cache key, so use a fresh UUID whenever the payload differs (e.g. updated odds), otherwise the original response is replayed. Non-2xx responses are not cached.
Body
Destination Solana wallet address (base58). Must be on-curve. PDAs, program IDs, and token-account addresses are rejected because funds sent to a derived ATA-of-an-ATA are unrecoverable.
USDC amount to send. Minimum is one USDC base unit (1e-6). Must not exceed the caller's total spendable pool (ATA + vault free_balance - in-flight RFQ holds); requests exceeding this are rejected with 400.
x >= 0.000001Response
Withdrawal submitted. signature is the external SPL transfer
signature. vault_signature and vault_amount are present
only when the request required a vault to ATA hop.
Show child attributes
Show child attributes
Was this page helpful?

