analyze_contract_storage
Inspect Soroban contract instance storage and optional LedgerKey XDRs to compute remaining TTL, flag oversized entries, and identify expiring or archived storage before it causes issues.
Instructions
Inspect a Soroban contract instance storage (and optional extra LedgerKey XDRs), compute remaining TTL in ledgers/days, and flag oversized or expiring/archived entries.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"contract_id": "<contract_id>"
},
"name": "analyze_contract_storage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Optional network override (defaults to configured STELLAR_NETWORK). | |
| contract_id | Yes | Soroban contract ID (C...) | |
| additional_keys | No | Optional base64 LedgerKey XDRs (max 50) | |
| size_threshold_bytes | No | Flag entries larger than this byte size (default 1024) |