fetch_contract_spec
Fetch and decode a deployed Soroban contract's ABI/spec from its WASM, including functions, structs, enums, unions, and contract error codes for integration and debugging.
Instructions
Fetch and decode the ABI/spec (functions, structs, enums, unions, #[contracterror] codes) directly from a deployed Soroban contract WASM.
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": "fetch_contract_spec"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Optional network override (defaults to configured STELLAR_NETWORK). | |
| contract_id | Yes | Soroban contract ID (C...) |