Quote the realtime network fee for a sponsored withdrawal
curl --request POST \
--url https://api.pid.peridotvault.com/v1/wallet/withdraw/quote \
--header 'Content-Type: application/json' \
--cookie pid_access= \
--data '
{
"asset": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'pid_access=', 'Content-Type': 'application/json'},
body: JSON.stringify({asset: '<string>'})
};
fetch('https://api.pid.peridotvault.com/v1/wallet/withdraw/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/wallet/withdraw/quote"
payload = { "asset": "<string>" }
headers = {
"cookie": "pid_access=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/wallet/withdraw/quote"
payload := strings.NewReader("{\n \"asset\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "pid_access=")
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))
}{
"networkFeeLamports": "<string>",
"protocolFeeBps": 123,
"feePolicyVersion": 123,
"totalFeeLamports": "<string>",
"chainTime": 123,
"treasury": "<string>"
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 404,
"message": "No Identity found"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}wallet
Quote the realtime network fee for a sponsored withdrawal
Returns the backend’s realtime network-cost estimate plus the fixed protocol percentage for the active fee policy. The client signs the intent + policy (never amounts) and echoes the quoted network fee as the drift reference.
POST
/
wallet
/
withdraw
/
quote
Quote the realtime network fee for a sponsored withdrawal
curl --request POST \
--url https://api.pid.peridotvault.com/v1/wallet/withdraw/quote \
--header 'Content-Type: application/json' \
--cookie pid_access= \
--data '
{
"asset": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'pid_access=', 'Content-Type': 'application/json'},
body: JSON.stringify({asset: '<string>'})
};
fetch('https://api.pid.peridotvault.com/v1/wallet/withdraw/quote', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/wallet/withdraw/quote"
payload = { "asset": "<string>" }
headers = {
"cookie": "pid_access=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.pid.peridotvault.com/v1/wallet/withdraw/quote"
payload := strings.NewReader("{\n \"asset\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("cookie", "pid_access=")
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))
}{
"networkFeeLamports": "<string>",
"protocolFeeBps": 123,
"feePolicyVersion": 123,
"totalFeeLamports": "<string>",
"chainTime": 123,
"treasury": "<string>"
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 404,
"message": "No Identity found"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}Authorizations
JWT access token set by /auth/google/callback or /auth/refresh
Body
application/json
Response
Fee quote
Realtime network-cost estimate the backend will attest near
Fixed protocol percentage in bps for the quoted policy version
Fee-policy version the quote was computed under (must be signed)
networkFee + protocolFee at quote time (informational)
Canonical revenue vault (informational — enforced on-chain)