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.
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 |
Input Schema (JSON Schema)
{
"properties": {
"amount": {
"description": "The STX amount in microSTX (1 STX = 1,000,000 microSTX)",
"type": "number"
},
"conditionCode": {
"description": "The condition type (usually 'equal' for exact transfers)",
"enum": [
"equal",
"greater",
"greater_equal",
"less",
"less_equal"
],
"type": "string"
},
"principal": {
"description": "The Stacks address for the post-condition",
"type": "string"
}
},
"required": [
"principal",
"conditionCode",
"amount"
],
"type": "object"
}