Sponsored generic execute (passkey-authorized, V3)
curl --request POST \
--url https://api.pid.peridotvault.com/v1/wallet/execute \
--header 'Content-Type: application/json' \
--cookie pid_access= \
--data '
{
"target": "<string>",
"metas": [
{
"address": "<string>",
"writable": true,
"signer": true
}
],
"data": "<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({
target: '<string>',
metas: [{address: '<string>', writable: true, signer: true}],
data: '<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/execute', 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/execute"
payload = {
"target": "<string>",
"metas": [
{
"address": "<string>",
"writable": True,
"signer": True
}
],
"data": "<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/execute"
payload := strings.NewReader("{\n \"target\": \"<string>\",\n \"metas\": [\n {\n \"address\": \"<string>\",\n \"writable\": true,\n \"signer\": true\n }\n ],\n \"data\": \"<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 generic execute (passkey-authorized, V3)
One passkey-signed intent drives an arbitrary Solana call with the PDA as
signer (wallet parity with the EVM execute). 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
/
execute
Sponsored generic execute (passkey-authorized, V3)
curl --request POST \
--url https://api.pid.peridotvault.com/v1/wallet/execute \
--header 'Content-Type: application/json' \
--cookie pid_access= \
--data '
{
"target": "<string>",
"metas": [
{
"address": "<string>",
"writable": true,
"signer": true
}
],
"data": "<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({
target: '<string>',
metas: [{address: '<string>', writable: true, signer: true}],
data: '<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/execute', 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/execute"
payload = {
"target": "<string>",
"metas": [
{
"address": "<string>",
"writable": True,
"signer": True
}
],
"data": "<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/execute"
payload := strings.NewReader("{\n \"target\": \"<string>\",\n \"metas\": [\n {\n \"address\": \"<string>\",\n \"writable\": true,\n \"signer\": true\n }\n ],\n \"data\": \"<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
Target program (never the smart-account program)
Required array length:
1 - 64 elementsShow child attributes
Show child attributes
base64url inner instruction data (≤ 10_240 bytes)
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