Auth
Register with Wallet
Create a new account linked to a Solana wallet. Requires a valid challenge signature.
POST
/
customer
/
v2
/
auth
/
wallet
/
register
Register with Wallet
curl --request POST \
--url https://orbitflare.com/api/customer/v2/auth/wallet/register \
--header 'Content-Type: application/json' \
--data '
{
"wallet_address": "<string>",
"signature": "<string>",
"name": "<string>",
"email": "jsmith@example.com"
}
'import requests
url = "https://orbitflare.com/api/customer/v2/auth/wallet/register"
payload = {
"wallet_address": "<string>",
"signature": "<string>",
"name": "<string>",
"email": "jsmith@example.com"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
wallet_address: '<string>',
signature: '<string>',
name: '<string>',
email: 'jsmith@example.com'
})
};
fetch('https://orbitflare.com/api/customer/v2/auth/wallet/register', 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://orbitflare.com/api/customer/v2/auth/wallet/register",
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([
'wallet_address' => '<string>',
'signature' => '<string>',
'name' => '<string>',
'email' => 'jsmith@example.com'
]),
CURLOPT_HTTPHEADER => [
"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://orbitflare.com/api/customer/v2/auth/wallet/register"
payload := strings.NewReader("{\n \"wallet_address\": \"<string>\",\n \"signature\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://orbitflare.com/api/customer/v2/auth/wallet/register")
.header("Content-Type", "application/json")
.body("{\n \"wallet_address\": \"<string>\",\n \"signature\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://orbitflare.com/api/customer/v2/auth/wallet/register")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"wallet_address\": \"<string>\",\n \"signature\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"data": {
"token_type": "Bearer",
"access_token": "<string>",
"expires_in": 123,
"user": {
"id": 123,
"name": "<string>",
"email": "jsmith@example.com",
"wallet_address": "<string>",
"payment_wallet_address": "<string>",
"balance": 123,
"created_at": "2023-11-07T05:31:56Z"
},
"api_key": {
"name": "<string>",
"key": "<string>"
}
}
}{
"success": false,
"message": "<string>",
"errors": {},
"error": "<string>"
}{
"success": false,
"message": "<string>",
"errors": {},
"error": "<string>"
}{
"success": false,
"message": "<string>",
"errors": {},
"error": "<string>"
}Body
application/json
Was this page helpful?
⌘I
Register with Wallet
curl --request POST \
--url https://orbitflare.com/api/customer/v2/auth/wallet/register \
--header 'Content-Type: application/json' \
--data '
{
"wallet_address": "<string>",
"signature": "<string>",
"name": "<string>",
"email": "jsmith@example.com"
}
'import requests
url = "https://orbitflare.com/api/customer/v2/auth/wallet/register"
payload = {
"wallet_address": "<string>",
"signature": "<string>",
"name": "<string>",
"email": "jsmith@example.com"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
wallet_address: '<string>',
signature: '<string>',
name: '<string>',
email: 'jsmith@example.com'
})
};
fetch('https://orbitflare.com/api/customer/v2/auth/wallet/register', 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://orbitflare.com/api/customer/v2/auth/wallet/register",
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([
'wallet_address' => '<string>',
'signature' => '<string>',
'name' => '<string>',
'email' => 'jsmith@example.com'
]),
CURLOPT_HTTPHEADER => [
"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://orbitflare.com/api/customer/v2/auth/wallet/register"
payload := strings.NewReader("{\n \"wallet_address\": \"<string>\",\n \"signature\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://orbitflare.com/api/customer/v2/auth/wallet/register")
.header("Content-Type", "application/json")
.body("{\n \"wallet_address\": \"<string>\",\n \"signature\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://orbitflare.com/api/customer/v2/auth/wallet/register")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"wallet_address\": \"<string>\",\n \"signature\": \"<string>\",\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "<string>",
"data": {
"token_type": "Bearer",
"access_token": "<string>",
"expires_in": 123,
"user": {
"id": 123,
"name": "<string>",
"email": "jsmith@example.com",
"wallet_address": "<string>",
"payment_wallet_address": "<string>",
"balance": 123,
"created_at": "2023-11-07T05:31:56Z"
},
"api_key": {
"name": "<string>",
"key": "<string>"
}
}
}{
"success": false,
"message": "<string>",
"errors": {},
"error": "<string>"
}{
"success": false,
"message": "<string>",
"errors": {},
"error": "<string>"
}{
"success": false,
"message": "<string>",
"errors": {},
"error": "<string>"
}