curl --request POST \
--url https://api.sx.bet/user/transfer-to-proxy \
--header 'Content-Type: application/json' \
--header 'x-sx-api-key: <api-key>' \
--data '
{
"owner": "0xbcc6D643e4159A75ED1dB4e13330230B82F2AEe5",
"spender": "0x0000000000000000000000000000000000000000",
"tokenAddress": "0x1BC6326EA6aF2aB8E4b6Bc83418044B1923b2956",
"value": "500000000",
"deadline": "1785527222",
"signature": "0x00"
}
'import requests
url = "https://api.sx.bet/user/transfer-to-proxy"
payload = {
"owner": "0xbcc6D643e4159A75ED1dB4e13330230B82F2AEe5",
"spender": "0x0000000000000000000000000000000000000000",
"tokenAddress": "0x1BC6326EA6aF2aB8E4b6Bc83418044B1923b2956",
"value": "500000000",
"deadline": "1785527222",
"signature": "0x00"
}
headers = {
"x-sx-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-sx-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
owner: '0xbcc6D643e4159A75ED1dB4e13330230B82F2AEe5',
spender: '0x0000000000000000000000000000000000000000',
tokenAddress: '0x1BC6326EA6aF2aB8E4b6Bc83418044B1923b2956',
value: '500000000',
deadline: '1785527222',
signature: '0x00'
})
};
fetch('https://api.sx.bet/user/transfer-to-proxy', 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.sx.bet/user/transfer-to-proxy",
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([
'owner' => '0xbcc6D643e4159A75ED1dB4e13330230B82F2AEe5',
'spender' => '0x0000000000000000000000000000000000000000',
'tokenAddress' => '0x1BC6326EA6aF2aB8E4b6Bc83418044B1923b2956',
'value' => '500000000',
'deadline' => '1785527222',
'signature' => '0x00'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-sx-api-key: <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.sx.bet/user/transfer-to-proxy"
payload := strings.NewReader("{\n \"owner\": \"0xbcc6D643e4159A75ED1dB4e13330230B82F2AEe5\",\n \"spender\": \"0x0000000000000000000000000000000000000000\",\n \"tokenAddress\": \"0x1BC6326EA6aF2aB8E4b6Bc83418044B1923b2956\",\n \"value\": \"500000000\",\n \"deadline\": \"1785527222\",\n \"signature\": \"0x00\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-sx-api-key", "<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.sx.bet/user/transfer-to-proxy")
.header("x-sx-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"owner\": \"0xbcc6D643e4159A75ED1dB4e13330230B82F2AEe5\",\n \"spender\": \"0x0000000000000000000000000000000000000000\",\n \"tokenAddress\": \"0x1BC6326EA6aF2aB8E4b6Bc83418044B1923b2956\",\n \"value\": \"500000000\",\n \"deadline\": \"1785527222\",\n \"signature\": \"0x00\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sx.bet/user/transfer-to-proxy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-sx-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"owner\": \"0xbcc6D643e4159A75ED1dB4e13330230B82F2AEe5\",\n \"spender\": \"0x0000000000000000000000000000000000000000\",\n \"tokenAddress\": \"0x1BC6326EA6aF2aB8E4b6Bc83418044B1923b2956\",\n \"value\": \"500000000\",\n \"deadline\": \"1785527222\",\n \"signature\": \"0x00\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"sessionId": "9c8f5b21e4d0a7c3f18b6e94d2a05c7318fa4b62d9e0173c5a8b2f4e6019d3c7",
"proxyAddress": "0x4361123dbdc1D812fdf7D27045aF358C9C8AA70A",
"value": "500000000"
}
}{
"message": "TRANSFER_ALREADY_SUBMITTED",
"error": "Bad Request",
"statusCode": 400
}{
"message": "BAD_AUTH",
"error": "Unauthorized",
"statusCode": 401
}{
"message": "Service Unavailable",
"statusCode": 503
}Fund a proxy wallet
Transfer tokens from your wallet to your proxy wallet on SX Bet.
curl --request POST \
--url https://api.sx.bet/user/transfer-to-proxy \
--header 'Content-Type: application/json' \
--header 'x-sx-api-key: <api-key>' \
--data '
{
"owner": "0xbcc6D643e4159A75ED1dB4e13330230B82F2AEe5",
"spender": "0x0000000000000000000000000000000000000000",
"tokenAddress": "0x1BC6326EA6aF2aB8E4b6Bc83418044B1923b2956",
"value": "500000000",
"deadline": "1785527222",
"signature": "0x00"
}
'import requests
url = "https://api.sx.bet/user/transfer-to-proxy"
payload = {
"owner": "0xbcc6D643e4159A75ED1dB4e13330230B82F2AEe5",
"spender": "0x0000000000000000000000000000000000000000",
"tokenAddress": "0x1BC6326EA6aF2aB8E4b6Bc83418044B1923b2956",
"value": "500000000",
"deadline": "1785527222",
"signature": "0x00"
}
headers = {
"x-sx-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-sx-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
owner: '0xbcc6D643e4159A75ED1dB4e13330230B82F2AEe5',
spender: '0x0000000000000000000000000000000000000000',
tokenAddress: '0x1BC6326EA6aF2aB8E4b6Bc83418044B1923b2956',
value: '500000000',
deadline: '1785527222',
signature: '0x00'
})
};
fetch('https://api.sx.bet/user/transfer-to-proxy', 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.sx.bet/user/transfer-to-proxy",
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([
'owner' => '0xbcc6D643e4159A75ED1dB4e13330230B82F2AEe5',
'spender' => '0x0000000000000000000000000000000000000000',
'tokenAddress' => '0x1BC6326EA6aF2aB8E4b6Bc83418044B1923b2956',
'value' => '500000000',
'deadline' => '1785527222',
'signature' => '0x00'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-sx-api-key: <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.sx.bet/user/transfer-to-proxy"
payload := strings.NewReader("{\n \"owner\": \"0xbcc6D643e4159A75ED1dB4e13330230B82F2AEe5\",\n \"spender\": \"0x0000000000000000000000000000000000000000\",\n \"tokenAddress\": \"0x1BC6326EA6aF2aB8E4b6Bc83418044B1923b2956\",\n \"value\": \"500000000\",\n \"deadline\": \"1785527222\",\n \"signature\": \"0x00\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-sx-api-key", "<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.sx.bet/user/transfer-to-proxy")
.header("x-sx-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"owner\": \"0xbcc6D643e4159A75ED1dB4e13330230B82F2AEe5\",\n \"spender\": \"0x0000000000000000000000000000000000000000\",\n \"tokenAddress\": \"0x1BC6326EA6aF2aB8E4b6Bc83418044B1923b2956\",\n \"value\": \"500000000\",\n \"deadline\": \"1785527222\",\n \"signature\": \"0x00\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sx.bet/user/transfer-to-proxy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-sx-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"owner\": \"0xbcc6D643e4159A75ED1dB4e13330230B82F2AEe5\",\n \"spender\": \"0x0000000000000000000000000000000000000000\",\n \"tokenAddress\": \"0x1BC6326EA6aF2aB8E4b6Bc83418044B1923b2956\",\n \"value\": \"500000000\",\n \"deadline\": \"1785527222\",\n \"signature\": \"0x00\"\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"sessionId": "9c8f5b21e4d0a7c3f18b6e94d2a05c7318fa4b62d9e0173c5a8b2f4e6019d3c7",
"proxyAddress": "0x4361123dbdc1D812fdf7D27045aF358C9C8AA70A",
"value": "500000000"
}
}{
"message": "TRANSFER_ALREADY_SUBMITTED",
"error": "Bad Request",
"statusCode": 400
}{
"message": "BAD_AUTH",
"error": "Unauthorized",
"statusCode": 401
}{
"message": "Service Unavailable",
"statusCode": 503
}POST /user/transfer-to-proxy moves tokens from your EOA into your proxy wallet. You authorise it with
an EIP-2612 permit — a signature over (owner, spender, value, nonce, deadline). Funding walks the
whole deposit end to end.
200 means recorded, not completed. This is an asynchronous endpoint. Poll
GET /user/transfer-to-proxy/status
with the returned sessionId until status is SUCCESS or FAILED.Authorizations
API key, sent as the x-sx-api-key header. Generate one from the API keys section of your account page on sx.bet.
Body
Your EOA. Must equal the address you authenticated as, or the request is a 401 OWNER_MISMATCH.
The environment's transfer-to-proxy executor — not the token contract, and not your proxy. The per-environment address is listed on the References page. It is part of the signed payload, so a wrong value returns ERC20_PERMIT_BAD_SPENDER and has to be re-signed.
The ERC-20 being moved.
Base units, as a positive big-number string.
Unix seconds, as a string rather than a number. Must be at least one hour in the future: a permit expiring in fifty-nine minutes is refused even though it is valid ERC-20, so sign with a margin of several hours.
The EIP-2612 permit signature, 65 bytes hex. Recovery is checked last, so a ERC20_PERMIT_SIGNATURE_MISMATCH means the deadline, spender and token were all accepted and the fault is in the signing — a wrong nonce, a wrong token name in the domain, or a chain-id mismatch.
Optional destination proxy, defaulting to your own. A named proxy is checked only for being deployed and having an owner — not for being yours — so a stale or copy-pasted value sends your deposit to a proxy you cannot bet from, and the call still returns 200. Omit it unless you mean it.