radiant_compile_script
Compile RadiantScript source into a deployment artifact, returning ABI, ASM bytecode, and hex. Uses the rxdc compiler offline to produce deployable output.
Instructions
Compile RadiantScript (.cash/.rxd) source code into a deployment artifact. Returns ABI, ASM bytecode, and hex. Works offline — requires the rxdc compiler binary (set RXDC_PATH env var or ensure RadiantScript repo is a sibling directory).
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": "<source>"
},
"name": "radiant_compile_script"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| debug | No | Include source code and source map in artifact for debugging with rxdeb | |
| format | No | Output format: full artifact JSON, ASM text, or hex bytecode | artifact |
| source | Yes | RadiantScript source code to compile |