generate_post_condition_template
Create secure post-condition templates for blockchain transactions including token transfers, NFT operations, and DeFi swaps to protect assets and ensure transaction safety.
Instructions
Generate a complete post-condition template for common transaction patterns with security best practices.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
assets | Yes | The assets involved in the transaction | |
transactionType | Yes | The type of transaction pattern |
Input Schema (JSON Schema)
{
"properties": {
"assets": {
"description": "The assets involved in the transaction",
"items": {
"additionalProperties": false,
"properties": {
"assetName": {
"description": "Asset name for tokens/NFTs",
"type": "string"
},
"contractAddress": {
"description": "Contract address for tokens/NFTs",
"type": "string"
},
"contractName": {
"description": "Contract name for tokens/NFTs",
"type": "string"
},
"type": {
"description": "The asset type",
"enum": [
"fungible",
"non-fungible",
"stx"
],
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
},
"type": "array"
},
"transactionType": {
"description": "The type of transaction pattern",
"enum": [
"token_transfer",
"nft_transfer",
"marketplace_sale",
"defi_swap",
"staking",
"custom"
],
"type": "string"
}
},
"required": [
"transactionType",
"assets"
],
"type": "object"
}