Ensure the caller's RFQ subaccount exists (Joyride pays the rent once)
Asks core to make sure the authenticated wallet’s margin-vault
Subaccount PDA exists, with Joyride paying its rent at most once per
wallet. The owner is always the bearer’s wallet — the request has no
body fields and cannot provision another wallet. Idempotent and safe
to retry: exists costs nothing, submitted reports the in-flight
init_subaccount signature (concurrent callers share one send), and
refused is an answer, not an error. Paced at one call per minute
per wallet. On-chain presence is visible within seconds; the RFQ
desk’s RFQ_NOT_READY gate clears once the vault watcher attributes
the new subaccount, up to about a minute later.
curl --request POST \
--url https://joyride.exchange/api/v1/rfq/subaccount \
--header 'Authorization: Bearer <token>'import requests
url = "https://joyride.exchange/api/v1/rfq/subaccount"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://joyride.exchange/api/v1/rfq/subaccount', 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://joyride.exchange/api/v1/rfq/subaccount",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://joyride.exchange/api/v1/rfq/subaccount"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://joyride.exchange/api/v1/rfq/subaccount")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://joyride.exchange/api/v1/rfq/subaccount")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "submitted",
"signature": "5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uZ6YpUDkH5Gy8dn3sq8tuDdBhCPq8tAgeKxb7hW"
}{
"error": "Instrument not found"
}{
"error": "Instrument not found"
}{
"error": "Instrument not found"
}{
"error": "Instrument not found"
}{
"error": "Instrument not found"
}Authorizations
Joyride Core session JWT obtained from the SIWS flow
(public/get_nonce + public/auth on the Core trading WebSocket).
Include as: Authorization: Bearer <jwt>
Response
Provisioning outcome
exists: the subaccount is on chain (nothing sent). submitted: an init_subaccount is in flight. refused: see reason.
exists, submitted, refused Base58 signature of the in-flight init_subaccount; present on submitted when known.
Present on refused. provisioner_disabled and payer_unavailable mean "fund the subaccount from a wallet, or try again shortly"; vault_paused means RFQ is paused; already_provisioned is the per-wallet spend bound (unreachable while the program has no close path).
provisioner_disabled, invalid_owner, already_provisioned, payer_unavailable, vault_paused curl --request POST \
--url https://joyride.exchange/api/v1/rfq/subaccount \
--header 'Authorization: Bearer <token>'import requests
url = "https://joyride.exchange/api/v1/rfq/subaccount"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://joyride.exchange/api/v1/rfq/subaccount', 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://joyride.exchange/api/v1/rfq/subaccount",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://joyride.exchange/api/v1/rfq/subaccount"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://joyride.exchange/api/v1/rfq/subaccount")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://joyride.exchange/api/v1/rfq/subaccount")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "submitted",
"signature": "5VERv8NMvzbJMEkV8xnrLkEaWRtSz9CosKDYjCJjBRnbJLgp8uZ6YpUDkH5Gy8dn3sq8tuDdBhCPq8tAgeKxb7hW"
}{
"error": "Instrument not found"
}{
"error": "Instrument not found"
}{
"error": "Instrument not found"
}{
"error": "Instrument not found"
}{
"error": "Instrument not found"
}