Register a wallet credential
Register your recovery keys, signing keys and spending limit for one chain family.
Public keys only. The answer is setup_required: its setup action, listed
under the credential, carries what your recovery keys sign (none on Solana).
Once setup verifies on chain the credential is active and smart-account
wallets can be created.
curl -X POST "https://sandbox.rasto.co/api/wallets/credentials" \
-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 '{
"chain_family": "solana",
"recovery_keys": {
"keys": [
"s2Uje5tQPbaRYFm97iNWt4Nddw7qdDpfNtT49aL9SUg"
],
"threshold": 1
},
"signing_keys": [
"GcMSp8Shx4esFRw5rxkrXqs2GjK7iVbrQ5JW8GwvRUr8"
],
"spending_limit": {
"currency": "usdc",
"per_wallet": "1000",
"period": "day"
}
}'
import requests
import json
url = "https://sandbox.rasto.co/api/wallets/credentials"
headers = {
"Content-Type": "application/json",
"Api-Version": "2026-08-01",
"Idempotency-Key": "6f1c9a0e-2b7d-4c3a-9e58-0d4b7a1f2c63",
"Api-Key": "YOUR_API_KEY"
}
data = {
"chain_family": "solana",
"recovery_keys": {
"keys": [
"s2Uje5tQPbaRYFm97iNWt4Nddw7qdDpfNtT49aL9SUg"
],
"threshold": 1
},
"signing_keys": [
"GcMSp8Shx4esFRw5rxkrXqs2GjK7iVbrQ5JW8GwvRUr8"
],
"spending_limit": {
"currency": "usdc",
"per_wallet": "1000",
"period": "day"
}
}
response = requests.post(url, headers=headers, json=data)
print(response.json())
const response = await fetch("https://sandbox.rasto.co/api/wallets/credentials", {
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({
"chain_family": "solana",
"recovery_keys": {
"keys": [
"s2Uje5tQPbaRYFm97iNWt4Nddw7qdDpfNtT49aL9SUg"
],
"threshold": 1
},
"signing_keys": [
"GcMSp8Shx4esFRw5rxkrXqs2GjK7iVbrQ5JW8GwvRUr8"
],
"spending_limit": {
"currency": "usdc",
"per_wallet": "1000",
"period": "day"
}
})
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
"bytes"
"encoding/json"
)
func main() {
data := []byte(`{
"chain_family": "solana",
"recovery_keys": {
"keys": [
"s2Uje5tQPbaRYFm97iNWt4Nddw7qdDpfNtT49aL9SUg"
],
"threshold": 1
},
"signing_keys": [
"GcMSp8Shx4esFRw5rxkrXqs2GjK7iVbrQ5JW8GwvRUr8"
],
"spending_limit": {
"currency": "usdc",
"per_wallet": "1000",
"period": "day"
}
}`)
req, err := http.NewRequest("POST", "https://sandbox.rasto.co/api/wallets/credentials", 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')
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 = '{
"chain_family": "solana",
"recovery_keys": {
"keys": [
"s2Uje5tQPbaRYFm97iNWt4Nddw7qdDpfNtT49aL9SUg"
],
"threshold": 1
},
"signing_keys": [
"GcMSp8Shx4esFRw5rxkrXqs2GjK7iVbrQ5JW8GwvRUr8"
],
"spending_limit": {
"currency": "usdc",
"per_wallet": "1000",
"period": "day"
}
}'
response = http.request(request)
puts response.body
{
"activated_at": null,
"chain_family": "solana",
"created_at": "2026-11-29T18:03:17.234722+00:00",
"id": "wcr_03567kJ5x4MBGM6Fc8QHou",
"network": "testnet",
"object": "wallet_credential",
"recovery_keys": {
"keys": [
"s2Uje5tQPbaRYFm97iNWt4Nddw7qdDpfNtT49aL9SUg"
],
"threshold": 1
},
"signing_keys": [
{
"algorithm": "ed25519",
"key": "GcMSp8Shx4esFRw5rxkrXqs2GjK7iVbrQ5JW8GwvRUr8",
"status": "active"
}
],
"spending_limit": {
"currency": "usdc",
"per_wallet": "1000",
"period": "day",
"total": null
},
"status": "setup_required"
}
{
"error": {
"code": "missing_api_key",
"kind": "authentication_error",
"message": "Provide your secret key in the Api-Key header.",
"param": null,
"request_id": "req_03567lF0X90JbcdrXSVd54"
}
}
{
"error": {
"code": "invalid_parameter",
"kind": "invalid_request_error",
"message": "Field required",
"param": "chain_family",
"request_id": "req_03567lF0vM3lDg0JtItdsg"
}
}
{
"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_03567lF0X90JbcdrXSVd54"
}
}
{
"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_03567lF0X90JbcdrXSVd54"
}
}
/api/wallets/credentials
Target 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 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. evm or solana. You hold one credential per family in each environment; a second returns 409 wallet_credential_exists.
Required. Your recovery keys and how many of them must sign an action. No action replaces them later.
Required. Your signing public keys, 1 to 64 of them and all distinct: addresses on the EVM chains, Ed25519 public keys in base58 on Solana. A signing key may not also be a recovery key, and sandbox and live never share a key.
Required. What your signing keys may move per period. A limit above our ceiling returns 400 spending_limit_too_high.
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.
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. evm or solana. You hold one credential per family in each environment; a second returns 409 wallet_credential_exists.
evmsolanaRequired. Your recovery keys and how many of them must sign an action. No action replaces them later.
Required. Your signing public keys, 1 to 64 of them and all distinct: addresses on the EVM chains, Ed25519 public keys in base58 on Solana. A signing key may not also be a recovery key, and sandbox and live never share a key.
Required. What your signing keys may move per period. A limit above our ceiling returns 400 spending_limit_too_high.