private/reject_deposit_request
Curator-only endpoint that removes a queued deposit request off-chain (no on-chain settlement), recording the rejection with an optional short reason. Takes the request id and returns an acknowledgement. Requires the curator mint-and-burn permission.
curl --request POST \
--url https://api.derive.xyz/v3/private/reject_deposit_request \
--header 'Content-Type: application/json' \
--data '
{
"request_id": {
"vault_nonce": "<string>",
"vault_subaccount_id": 1,
"wallet": "<string>"
},
"subaccount_id": 1,
"reason": null
}
'import requests
url = "https://api.derive.xyz/v3/private/reject_deposit_request"
payload = {
"request_id": {
"vault_nonce": "<string>",
"vault_subaccount_id": 1,
"wallet": "<string>"
},
"subaccount_id": 1,
"reason": None
}
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({
request_id: {vault_nonce: '<string>', vault_subaccount_id: 1, wallet: '<string>'},
subaccount_id: 1,
reason: null
})
};
fetch('https://api.derive.xyz/v3/private/reject_deposit_request', 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.derive.xyz/v3/private/reject_deposit_request",
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([
'request_id' => [
'vault_nonce' => '<string>',
'vault_subaccount_id' => 1,
'wallet' => '<string>'
],
'subaccount_id' => 1,
'reason' => null
]),
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://api.derive.xyz/v3/private/reject_deposit_request"
payload := strings.NewReader("{\n \"request_id\": {\n \"vault_nonce\": \"<string>\",\n \"vault_subaccount_id\": 1,\n \"wallet\": \"<string>\"\n },\n \"subaccount_id\": 1,\n \"reason\": null\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://api.derive.xyz/v3/private/reject_deposit_request")
.header("Content-Type", "application/json")
.body("{\n \"request_id\": {\n \"vault_nonce\": \"<string>\",\n \"vault_subaccount_id\": 1,\n \"wallet\": \"<string>\"\n },\n \"subaccount_id\": 1,\n \"reason\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.derive.xyz/v3/private/reject_deposit_request")
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 \"request_id\": {\n \"vault_nonce\": \"<string>\",\n \"vault_subaccount_id\": 1,\n \"wallet\": \"<string>\"\n },\n \"subaccount_id\": 1,\n \"reason\": null\n}"
response = http.request(request)
puts response.read_body{
"request_id": {
"vault_nonce": "<string>",
"vault_subaccount_id": 1,
"wallet": "<string>"
}
}Body
Composite vault request id: (vault_subaccount_id, wallet, vault_nonce)
Useful as a stable dedup key across off-chain and on-chain vault events.
Show child attributes
Show child attributes
The vault's subaccount ID; the caller must be the vault's curator.
x >= 0Optional human-readable reason for the rejection.
Response
Success
Returned by request_vault_deposit / request_vault_withdraw: the id the queued request was assigned (the user's handle for polling / cancelling).
Composite vault request id: (vault_subaccount_id, wallet, vault_nonce)
Useful as a stable dedup key across off-chain and on-chain vault events.
Show child attributes
Show child attributes
curl --request POST \
--url https://api.derive.xyz/v3/private/reject_deposit_request \
--header 'Content-Type: application/json' \
--data '
{
"request_id": {
"vault_nonce": "<string>",
"vault_subaccount_id": 1,
"wallet": "<string>"
},
"subaccount_id": 1,
"reason": null
}
'import requests
url = "https://api.derive.xyz/v3/private/reject_deposit_request"
payload = {
"request_id": {
"vault_nonce": "<string>",
"vault_subaccount_id": 1,
"wallet": "<string>"
},
"subaccount_id": 1,
"reason": None
}
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({
request_id: {vault_nonce: '<string>', vault_subaccount_id: 1, wallet: '<string>'},
subaccount_id: 1,
reason: null
})
};
fetch('https://api.derive.xyz/v3/private/reject_deposit_request', 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.derive.xyz/v3/private/reject_deposit_request",
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([
'request_id' => [
'vault_nonce' => '<string>',
'vault_subaccount_id' => 1,
'wallet' => '<string>'
],
'subaccount_id' => 1,
'reason' => null
]),
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://api.derive.xyz/v3/private/reject_deposit_request"
payload := strings.NewReader("{\n \"request_id\": {\n \"vault_nonce\": \"<string>\",\n \"vault_subaccount_id\": 1,\n \"wallet\": \"<string>\"\n },\n \"subaccount_id\": 1,\n \"reason\": null\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://api.derive.xyz/v3/private/reject_deposit_request")
.header("Content-Type", "application/json")
.body("{\n \"request_id\": {\n \"vault_nonce\": \"<string>\",\n \"vault_subaccount_id\": 1,\n \"wallet\": \"<string>\"\n },\n \"subaccount_id\": 1,\n \"reason\": null\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.derive.xyz/v3/private/reject_deposit_request")
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 \"request_id\": {\n \"vault_nonce\": \"<string>\",\n \"vault_subaccount_id\": 1,\n \"wallet\": \"<string>\"\n },\n \"subaccount_id\": 1,\n \"reason\": null\n}"
response = http.request(request)
puts response.read_body{
"request_id": {
"vault_nonce": "<string>",
"vault_subaccount_id": 1,
"wallet": "<string>"
}
}