Create the wallet
curl --request POST \
--url https://api.pid.peridotvault.com/v1/wallet \
--header 'Content-Type: application/json' \
--cookie pid_access= \
--data '
{
"address": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'pid_access=', 'Content-Type': 'application/json'},
body: JSON.stringify({address: '<string>'})
};
fetch('https://api.pid.peridotvault.com/v1/wallet', 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"
payload = { "address": "<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"
payload := strings.NewReader("{\n \"address\": \"<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))
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"chain": "solana",
"address": "<string>",
"status": "active",
"createdAt": "2023-11-07T05:31:56Z"
}{
"statusCode": 400,
"message": [
"handle must be 3-20 chars: lowercase letters, numbers, underscore"
]
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}wallet
Create the wallet
deprecated
Creates the wallet for the authenticated PID with a user-supplied Solana address.
The chain is fixed to solana for V3 (single-chain MVP).
A PID has at most one wallet: creating again returns the existing wallet. Custody is record-only — Peridot does not generate, hold, or return any key material.
POST
/
wallet
Create the wallet
curl --request POST \
--url https://api.pid.peridotvault.com/v1/wallet \
--header 'Content-Type: application/json' \
--cookie pid_access= \
--data '
{
"address": "<string>"
}
'const options = {
method: 'POST',
headers: {cookie: 'pid_access=', 'Content-Type': 'application/json'},
body: JSON.stringify({address: '<string>'})
};
fetch('https://api.pid.peridotvault.com/v1/wallet', 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"
payload = { "address": "<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"
payload := strings.NewReader("{\n \"address\": \"<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))
}{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"chain": "solana",
"address": "<string>",
"status": "active",
"createdAt": "2023-11-07T05:31:56Z"
}{
"statusCode": 400,
"message": [
"handle must be 3-20 chars: lowercase letters, numbers, underscore"
]
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 429,
"message": "ThrottlerException: Too Many Requests"
}Authorizations
JWT access token set by /auth/google/callback or /auth/refresh
Body
application/json
The Solana address to associate with this PID
Required string length:
1 - 64Response
The wallet (existing or newly created)
Blockchain the wallet is on — fixed to solana for V3
Example:
"solana"
User-supplied wallet address. Public data only — no key material is stored or returned.
Maximum string length:
64Wallet lifecycle status (mirrors the identity status convention)
Available options:
active, suspended, deleted