contract_spend
Spends funds from a Simplicity contract by submitting a base64 program with a witness file and optional UTXO and destination details.
Instructions
Spend funds from a Simplicity contract
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": {
"program": "<program>",
"witness_file": "<witness_file>"
},
"name": "contract_spend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| program | Yes | Base64-encoded Simplicity program | |
| utxo_txid | No | Transaction ID of UTXO to spend | |
| utxo_vout | No | Output index of UTXO to spend | |
| destination | No | Destination address | |
| witness_file | Yes | Path to witness file |