Sponsored SOL/SPL withdrawal (passkey-authorized, V3)
curl --request POST \
--url https://api.pid.peridotvault.com/v1/wallet/withdraw \
--header 'Content-Type: application/json' \
--cookie pid_access= \
--data '
{
"asset": "<string>",
"to": "<string>",
"amount": "<string>",
"nonce": "<string>",
"expiry": 123,
"feePolicyVersion": 123,
"quotedNetworkFeeLamports": "<string>",
"assertion": {
"id": "<string>",
"signature": "<string>",
"authenticatorData": "<string>",
"clientDataJSON": "<string>"
}
}
'const options = {
method: 'POST',
headers: {cookie: 'pid_access=', 'Content-Type': 'application/json'},
body: JSON.stringify({
asset: '<string>',
to: '<string>',
amount: '<string>',
nonce: '<string>',
expiry: 123,
feePolicyVersion: 123,
quotedNetworkFeeLamports: '<string>',
assertion: {
id: '<string>',
signature: '<string>',
authenticatorData: '<string>',
clientDataJSON: '<string>'
}
})
};
fetch('https://api.pid.peridotvault.com/v1/wallet/withdraw', 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"
payload = {
"asset": "<string>",
"to": "<string>",
"amount": "<string>",
"nonce": "<string>",
"expiry": 123,
"feePolicyVersion": 123,
"quotedNetworkFeeLamports": "<string>",
"assertion": {
"id": "<string>",
"signature": "<string>",
"authenticatorData": "<string>",
"clientDataJSON": "<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"
payload := strings.NewReader("{\n \"asset\": \"<string>\",\n \"to\": \"<string>\",\n \"amount\": \"<string>\",\n \"nonce\": \"<string>\",\n \"expiry\": 123,\n \"feePolicyVersion\": 123,\n \"quotedNetworkFeeLamports\": \"<string>\",\n \"assertion\": {\n \"id\": \"<string>\",\n \"signature\": \"<string>\",\n \"authenticatorData\": \"<string>\",\n \"clientDataJSON\": \"<string>\"\n }\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))
}{
"signature": "<string>",
"networkFeeLamports": "<string>",
"protocolFeeLamports": "<string>",
"status": "confirmed"
}{
"statusCode": 400,
"message": [
"handle must be 3-20 chars: lowercase letters, numbers, underscore"
]
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 404,
"message": "No Identity found"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}wallet
Sponsored SOL/SPL withdrawal (passkey-authorized, V3)
The relayer submits and floats the network fee; the smart account reimburses the attested network cost in full plus the on-chain-recomputed protocol fee, atomically. The backend rejects drift beyond 120% of the quoted network fee.
POST
/
wallet
/
withdraw
Sponsored SOL/SPL withdrawal (passkey-authorized, V3)
curl --request POST \
--url https://api.pid.peridotvault.com/v1/wallet/withdraw \
--header 'Content-Type: application/json' \
--cookie pid_access= \
--data '
{
"asset": "<string>",
"to": "<string>",
"amount": "<string>",
"nonce": "<string>",
"expiry": 123,
"feePolicyVersion": 123,
"quotedNetworkFeeLamports": "<string>",
"assertion": {
"id": "<string>",
"signature": "<string>",
"authenticatorData": "<string>",
"clientDataJSON": "<string>"
}
}
'const options = {
method: 'POST',
headers: {cookie: 'pid_access=', 'Content-Type': 'application/json'},
body: JSON.stringify({
asset: '<string>',
to: '<string>',
amount: '<string>',
nonce: '<string>',
expiry: 123,
feePolicyVersion: 123,
quotedNetworkFeeLamports: '<string>',
assertion: {
id: '<string>',
signature: '<string>',
authenticatorData: '<string>',
clientDataJSON: '<string>'
}
})
};
fetch('https://api.pid.peridotvault.com/v1/wallet/withdraw', 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"
payload = {
"asset": "<string>",
"to": "<string>",
"amount": "<string>",
"nonce": "<string>",
"expiry": 123,
"feePolicyVersion": 123,
"quotedNetworkFeeLamports": "<string>",
"assertion": {
"id": "<string>",
"signature": "<string>",
"authenticatorData": "<string>",
"clientDataJSON": "<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"
payload := strings.NewReader("{\n \"asset\": \"<string>\",\n \"to\": \"<string>\",\n \"amount\": \"<string>\",\n \"nonce\": \"<string>\",\n \"expiry\": 123,\n \"feePolicyVersion\": 123,\n \"quotedNetworkFeeLamports\": \"<string>\",\n \"assertion\": {\n \"id\": \"<string>\",\n \"signature\": \"<string>\",\n \"authenticatorData\": \"<string>\",\n \"clientDataJSON\": \"<string>\"\n }\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))
}{
"signature": "<string>",
"networkFeeLamports": "<string>",
"protocolFeeLamports": "<string>",
"status": "confirmed"
}{
"statusCode": 400,
"message": [
"handle must be 3-20 chars: lowercase letters, numbers, underscore"
]
}{
"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
"SOL" or an SPL mint address
Chain-time expiry (unix seconds, TTL ≤ 600s)
Signed fee-policy version selecting the fixed protocol percentage
Quoted network fee the client signed against (drift reference, not a cap)
Show child attributes
Show child attributes