chain.guard.v1.GuardSignerService
BatchSignProtectedActions
Method
POST
Path
chain.guard.v1.GuardSignerService/BatchSignProtectedActions
Service
chain.guard.v1.GuardSignerService
Visibility
Authentication
Session token
MFA Requirement
POST
chain.guard.v1.GuardSignerService/BatchSignProtectedActions Request
Testnet
curl --request POST \ \
--url 'https://api.testnet.polyester.com/chain.guard.v1.GuardSignerService/BatchSignProtectedActions' \
--header 'Content-Type: application/json' \
--header 'Connect-Protocol-Version: 1' \
--data '{
"actions": [
{
"action": "PROTECTED_ACTION_FUNDING_SET_EXTERNAL_WHITELIST_REQUIRED",
"args": {
"externalWhitelist": {
"addresses": [
"0x3333333333333333333333333333333333333333"
],
"polychainChainId": 1
}
}
}
],
"subaccountId": "6789012345678"
}'Responses
{
"approvals": [
{
"deadlineUnix": "1",
"nonceSpace": "1",
"signature": "0xabcdefg..............................."
}
]
}Request
chain.guard.v1.BatchSignProtectedActionsRequestResponse
chain.guard.v1.BatchSignProtectedActionsResponse subaccountId string (fixed64)
Optional subaccount public id. When omitted, the authenticated caller's root account is used as the target account.
actions object[]
Ordered protected actions to sign, max 20 items.
Edit in JSON
3 fields
nonceSpace string (uint64)
Nonce space used for the signed approval. Normal flows use 0.
deadlineUnix string (uint64)
Deadline as a unix timestamp in seconds, derived from chain time.
signature string (byte)
EIP-712 signature over the guard approval message. Must not be empty.
| Key | HTTP status | Connect code | Error | When |
|---|---|---|---|---|
| unauthenticated | 401 | unauthenticated | Unauthenticated | Authentication required. |
| permission-denied | 403 | permission_denied | Permission Denied | Permission denied. |
| invalid-argument | 400 | invalid_argument | Invalid Argument | Invalid argument. |
| not-found | 404 | not_found | Not Found | Not found. |
| unavailable | 503 | unavailable | Unavailable | Service unavailable. |