Deploy the EVM counterfactual for one chain (relayer-submitted, passkey-authorized)
curl --request POST \
--url https://api.pid.peridotvault.com/v1/account/evm/{chainRef}/activate \
--header 'Content-Type: application/json' \
--cookie pid_access= \
--data '
{
"quotedNetworkFeeWei": "<string>",
"feePolicyVersion": 123,
"deadline": 123,
"assertion": {
"id": "<string>",
"r": "<string>",
"s": "<string>",
"authenticatorData": "<string>",
"clientDataJSON": "<string>"
}
}
'const options = {
method: 'POST',
headers: {cookie: 'pid_access=', 'Content-Type': 'application/json'},
body: JSON.stringify({
quotedNetworkFeeWei: '<string>',
feePolicyVersion: 123,
deadline: 123,
assertion: {
id: '<string>',
r: '<string>',
s: '<string>',
authenticatorData: '<string>',
clientDataJSON: '<string>'
}
})
};
fetch('https://api.pid.peridotvault.com/v1/account/evm/{chainRef}/activate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/account/evm/{chainRef}/activate"
payload = {
"quotedNetworkFeeWei": "<string>",
"feePolicyVersion": 123,
"deadline": 123,
"assertion": {
"id": "<string>",
"r": "<string>",
"s": "<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/account/evm/{chainRef}/activate"
payload := strings.NewReader("{\n \"quotedNetworkFeeWei\": \"<string>\",\n \"feePolicyVersion\": 123,\n \"deadline\": 123,\n \"assertion\": {\n \"id\": \"<string>\",\n \"r\": \"<string>\",\n \"s\": \"<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))
}{
"pid": "<string>",
"chainReference": "<string>",
"status": "<string>",
"smartAccountAddress": "<string>",
"deployed": true,
"balanceWei": "<string>",
"requiredWei": "<string>",
"networkFeeWei": "<string>",
"protocolFeeBps": 123
}{
"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"
}account
Deploy the EVM counterfactual for one chain (relayer-submitted, passkey-authorized)
POST
/
account
/
evm
/
{chainRef}
/
activate
Deploy the EVM counterfactual for one chain (relayer-submitted, passkey-authorized)
curl --request POST \
--url https://api.pid.peridotvault.com/v1/account/evm/{chainRef}/activate \
--header 'Content-Type: application/json' \
--cookie pid_access= \
--data '
{
"quotedNetworkFeeWei": "<string>",
"feePolicyVersion": 123,
"deadline": 123,
"assertion": {
"id": "<string>",
"r": "<string>",
"s": "<string>",
"authenticatorData": "<string>",
"clientDataJSON": "<string>"
}
}
'const options = {
method: 'POST',
headers: {cookie: 'pid_access=', 'Content-Type': 'application/json'},
body: JSON.stringify({
quotedNetworkFeeWei: '<string>',
feePolicyVersion: 123,
deadline: 123,
assertion: {
id: '<string>',
r: '<string>',
s: '<string>',
authenticatorData: '<string>',
clientDataJSON: '<string>'
}
})
};
fetch('https://api.pid.peridotvault.com/v1/account/evm/{chainRef}/activate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.pid.peridotvault.com/v1/account/evm/{chainRef}/activate"
payload = {
"quotedNetworkFeeWei": "<string>",
"feePolicyVersion": 123,
"deadline": 123,
"assertion": {
"id": "<string>",
"r": "<string>",
"s": "<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/account/evm/{chainRef}/activate"
payload := strings.NewReader("{\n \"quotedNetworkFeeWei\": \"<string>\",\n \"feePolicyVersion\": 123,\n \"deadline\": 123,\n \"assertion\": {\n \"id\": \"<string>\",\n \"r\": \"<string>\",\n \"s\": \"<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))
}{
"pid": "<string>",
"chainReference": "<string>",
"status": "<string>",
"smartAccountAddress": "<string>",
"deployed": true,
"balanceWei": "<string>",
"requiredWei": "<string>",
"networkFeeWei": "<string>",
"protocolFeeBps": 123
}{
"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
Path Parameters
CAIP-2 reference (e.g. 97, 10143)
Body
application/json
Quoted network fee the client signed against (drift reference, not a cap)
Signed fee-policy version selecting the fixed protocol percentage
Authorization deadline (unix seconds, TTL ≤ 600s)
Show child attributes
Show child attributes
Response
Activation result
Pattern:
^[a-z0-9_]{3,20}@pid$Total wei required (networkFee + protocolFee)
Realtime network-cost estimate the backend will attest near
Fixed protocol percentage in bps for the quoted policy version