stellar_contract_restore
Restore evicted Stellar contract storage entries by rebuilding and resubmitting entries lost to ledger expiry, returning them to active state on testnet, mainnet, futurenet, or local.
Instructions
Restore evicted contract data 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": {
"source_account": "<source_account>",
"network": "<network>"
},
"name": "stellar_contract_restore"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fee | No | Transaction fee in stroops | |
| key | No | Storage key to restore | |
| key_xdr | No | Storage key as base64-encoded XDR | |
| network | Yes | Stellar network | |
| build_only | No | Only build transaction, do not submit | |
| durability | No | Storage durability type | |
| contract_id | No | Contract ID to restore | |
| source_account | Yes | Account that will pay for restoration | |
| ttl_ledger_only | No | Only print the new TTL ledger | |
| ledgers_to_extend | No | Number of ledgers to extend after restoration |