translate_contract
Translate a smart contract between programming languages such as Solidity, Vyper, Move, and Rust/Anchor. Provide the source code and specify the source and target languages to get the converted contract.
Instructions
Translate a smart contract between languages (Solidity ↔ Vyper ↔ Move ↔ Anchor). Required: source_code, source_language, target_language. Async, Team tier.
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_code": "<source_code>",
"source_language": "<source_language>",
"target_language": "<target_language>"
},
"name": "translate_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_code | Yes | Source contract code. | |
| source_language | Yes | Source contract language. | |
| target_language | Yes | Target contract language. |