Get the attestation to sign
curl --request GET \
--url https://api.sx.bet/partner/attestation \
--header 'x-sx-api-key: <api-key>'import requests
url = "https://api.sx.bet/partner/attestation"
headers = {"x-sx-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-sx-api-key': '<api-key>'}};
fetch('https://api.sx.bet/partner/attestation', 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/partner/attestation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.sx.bet/partner/attestation"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-sx-api-key", "<api-key>")
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.sx.bet/partner/attestation")
.header("x-sx-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sx.bet/partner/attestation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-sx-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"domain": {
"name": "SX Bet Partner Account",
"version": "1",
"chainId": 79479957
},
"types": {
"PartnerAccount": [
{
"name": "partnerId",
"type": "uint256"
},
{
"name": "account",
"type": "address"
}
]
},
"primaryType": "PartnerAccount",
"message": {
"partnerId": "48213",
"account": "0x8a1F9c2E4b7D3a6C5e0B9d8F2A4c6E1b3D5f7A90"
}
}
}{
"message": [
"address must be a valid address"
],
"error": "Bad Request",
"statusCode": 400
}{
"message": "BAD_AUTH",
"error": "Unauthorized",
"statusCode": 401
}{
"message": "PARTNER_DISABLED",
"error": "Forbidden",
"statusCode": 403
}{
"message": "Not Found",
"statusCode": 404
}Partner API
Get the attestation to sign
The EIP-712 typed data a wallet signs to become one of your users.
GET
/
partner
/
attestation
Get the attestation to sign
curl --request GET \
--url https://api.sx.bet/partner/attestation \
--header 'x-sx-api-key: <api-key>'import requests
url = "https://api.sx.bet/partner/attestation"
headers = {"x-sx-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-sx-api-key': '<api-key>'}};
fetch('https://api.sx.bet/partner/attestation', 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/partner/attestation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.sx.bet/partner/attestation"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-sx-api-key", "<api-key>")
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.sx.bet/partner/attestation")
.header("x-sx-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sx.bet/partner/attestation")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-sx-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": "success",
"data": {
"domain": {
"name": "SX Bet Partner Account",
"version": "1",
"chainId": 79479957
},
"types": {
"PartnerAccount": [
{
"name": "partnerId",
"type": "uint256"
},
{
"name": "account",
"type": "address"
}
]
},
"primaryType": "PartnerAccount",
"message": {
"partnerId": "48213",
"account": "0x8a1F9c2E4b7D3a6C5e0B9d8F2A4c6E1b3D5f7A90"
}
}
}{
"message": [
"address must be a valid address"
],
"error": "Bad Request",
"statusCode": 400
}{
"message": "BAD_AUTH",
"error": "Unauthorized",
"statusCode": 401
}{
"message": "PARTNER_DISABLED",
"error": "Forbidden",
"statusCode": 403
}{
"message": "Not Found",
"statusCode": 404
}Partner keys only. See Partner API for the full flow.
Have the user’s wallet sign the returned typed data exactly as returned, with
eth_signTypedData_v4, then send the signature to
POST /partner/users.
The signature must recover to the address, from eth_signTypedData_v4 on a
standard externally owned account. Contract-wallet signatures (EIP-1271) are
not accepted.Authorizations
API key, sent as the x-sx-api-key header.
Query Parameters
The wallet address of the user you are about to create.
Last modified on November 12, 2026