generate_stx_post_condition
Create STX transfer post-conditions for payment and fee transactions by specifying recipient address, amount, and condition type to ensure secure blockchain operations.
Instructions
Generate an STX post-condition for STX transfers. Essential for payment and fee transactions.
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": {
"principal": "<principal>",
"conditionCode": "<conditionCode>",
"amount": "<amount>"
},
"name": "generate_stx_post_condition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | The STX amount in microSTX (1 STX = 1,000,000 microSTX) | |
| conditionCode | Yes | The condition type (usually 'equal' for exact transfers) | |
| principal | Yes | The Stacks address for the post-condition |