Request a wallet action
Request a change your recovery keys sign.
The kinds are freeze, unfreeze, rotate_signing_keys, update_spending_limit
and recover. A freeze stops new transfers at once; disable your signing keys in your key
management service first, then sign the freeze so it lands on chain. The action's
authorizations are signed through /wallets/authorizations/{id}/signatures.
curl -X POST "https://sandbox.rasto.co/api/wallets/credentials/wcr_03567dB0OlrqCpJ7d8GIp9/actions" \
-H "Content-Type: application/json" \
-H "Api-Version: 2026-08-01" \
-H "Idempotency-Key: 6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63" \
-H "Api-Key: YOUR_API_KEY" \
-d '{
"kind": "freeze"
}'
import requests
import json
url = "https://sandbox.rasto.co/api/wallets/credentials/wcr_03567dB0OlrqCpJ7d8GIp9/actions"
headers = {
"Content-Type": "application/json",
"Api-Version": "2026-08-01",
"Idempotency-Key": "6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63",
"Api-Key": "YOUR_API_KEY"
}
data = {
"kind": "freeze"
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://sandbox.rasto.co/api/wallets/credentials/wcr_03567dB0OlrqCpJ7d8GIp9/actions", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Api-Version": "2026-08-01",
"Idempotency-Key": "6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63",
"Api-Key": "YOUR_API_KEY"
},
body: JSON.stringify({
"kind": "freeze"
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"kind": "freeze"
}`)
req, err := http.NewRequest("POST", "https://sandbox.rasto.co/api/wallets/credentials/wcr_03567dB0OlrqCpJ7d8GIp9/actions", bytes.NewBuffer(data))
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Api-Version", "2026-08-01")
req.Header.Set("Idempotency-Key", "6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63")
req.Header.Set("Api-Key", "YOUR_API_KEY")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://sandbox.rasto.co/api/wallets/credentials/wcr_03567dB0OlrqCpJ7d8GIp9/actions')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Post.new(uri)
request['Content-Type'] = 'application/json'
request['Api-Version'] = '2026-08-01'
request['Idempotency-Key'] = '6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63'
request['Api-Key'] = 'YOUR_API_KEY'
request.body = '{
"kind": "freeze"
}'
response = http.request(request)
puts response.body
{
"authorizations": [
{
"action_id": "wca_03567hhKDrsmd9ywCPg9LI",
"chain": "solana",
"created_at": "2026-11-29T18:01:34.760140+00:00",
"expires_at": "2026-11-29T18:02:36.007679+00:00",
"id": "wau_03567hk2xmHyQYHdvQYxiK",
"kind": "action",
"network": "testnet",
"object": "wallet_authorization",
"partner_reference_id": null,
"payload": {
"format": "solana_message",
"message": "eyJhY3Rpb25faWQiOiAid2NhXzAzNTY3aGhLRHJzbWQ5eXdDUGc5TEkiLCAiY2hhaW4iOiAic29sYW5hIiwgImtpbmQiOiAi...",
"message_version": "legacy"
},
"signer": {
"key": "72SE7cez3GLt8VrWA9je73tfWeo8z5tQV5aZdBLMyfjU",
"role": "recovery"
},
"status": "pending",
"summary": {},
"supersedes": null,
"transaction_id": null,
"wallet_id": null
}
],
"completed_at": null,
"created_at": "2026-11-29T18:01:34.760140+00:00",
"expires_at": "2026-11-29T18:02:36.007679+00:00",
"failure_code": null,
"id": "wca_03567hhKDrsmd9ywCPg9LI",
"kind": "freeze",
"object": "wallet_action",
"required": 1,
"status": "awaiting_authorization",
"wallet_credential_id": "wcr_03567dAE32COhj6nsKq1uY"
}
{
"error": {
"code": "missing_api_key",
"kind": "authentication_error",
"message": "Provide your secret key in the Api-Key header.",
"param": null,
"request_id": "req_03567lJmByDCcE1pSucR0N"
}
}
{
"error": {
"code": "invalid_parameter",
"kind": "invalid_request_error",
"message": "Field required",
"param": "kind",
"request_id": "req_03567lJmgDk1iDuDzPjUdz"
}
}
{
"error": {
"code": "rate_limited",
"kind": "rate_limit_error",
"message": "Too many requests. Back off and retry after the indicated delay.",
"param": null,
"request_id": "req_03567lJmByDCcE1pSucR0N"
}
}
{
"error": {
"code": "upstream_error",
"kind": "api_error",
"message": "The request could not be completed right now. Nothing was charged or changed; retry shortly, and contact support if it persists.",
"param": null,
"request_id": "req_03567lJmByDCcE1pSucR0N"
}
}
/api/wallets/credentials/{credential_id}/actionsTarget server for requests. Edit to use your own host.
Your secret API key, sent in the Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.
Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.The wallet credential's id (wcr_...).
The media type of the request body
The API version to use for this request, as a date (YYYY-MM-DD). Optional: without it you get version 2026-08-01, and that never changes. A later breaking change reaches you only when you send its newer date. Supported: 2026-08-01.
A value you choose, unique per request (a UUID works), at most 255 characters. Retrying with the same key and the same body replays the first answer instead of acting again. Keys are kept for 24 hours.
Required. freeze (stop every signing key), unfreeze, rotate_signing_keys, update_spending_limit or recover (take every wallet under your recovery keys alone; final).
The replacement signing keys, 1 to 64 of them. Required when kind is rotate_signing_keys, and taken by an unfreeze on the EVM chains; any other kind refuses it. Each must be new: never a current, retired or recovery key.
The new spending limit. Required when kind is update_spending_limit. Its currency cannot change.
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Your secret API key, sent in the Api-Key header on every request. Create keys on the dashboard. A sandbox key starts with sk_test_ and works only on https://sandbox.rasto.co; a live key starts with sk_live_ and works only on https://api.rasto.co. A read-only key can call every GET and is refused on anything that changes state. Keep keys on your server: never ship one in a browser or mobile app.
Path Parameters
Headers
The API version to use for this request, as a date (YYYY-MM-DD). Optional: without it you get version 2026-08-01, and that never changes. A later breaking change reaches you only when you send its newer date. Supported: 2026-08-01.
2026-08-01A value you choose, unique per request (a UUID works), at most 255 characters. Retrying with the same key and the same body replays the first answer instead of acting again. Keys are kept for 24 hours.
6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63Body
Required. freeze (stop every signing key), unfreeze, rotate_signing_keys, update_spending_limit or recover (take every wallet under your recovery keys alone; final).
freezeunfreezerotate_signing_keysupdate_spending_limitrecoverThe replacement signing keys, 1 to 64 of them. Required when kind is rotate_signing_keys, and taken by an unfreeze on the EVM chains; any other kind refuses it. Each must be new: never a current, retired or recovery key.
The new spending limit. Required when kind is update_spending_limit. Its currency cannot change.