generate_non_fungible_post_condition
Create mandatory NFT transfer post-conditions for SIP-009 tokens to ensure secure blockchain transactions by specifying ownership requirements.
Instructions
Generate a non-fungible token post-condition for SIP-009 NFTs. Post-conditions are MANDATORY for all NFT transfers.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
assetName | Yes | The NFT asset name (usually same as contract name) | |
conditionCode | Yes | The condition type ('owns' or 'does_not_own') | |
contractAddress | Yes | The NFT contract address | |
contractName | Yes | The NFT contract name | |
principal | Yes | The Stacks address for the post-condition | |
tokenId | Yes | The NFT token ID |
Input Schema (JSON Schema)
{
"properties": {
"assetName": {
"description": "The NFT asset name (usually same as contract name)",
"type": "string"
},
"conditionCode": {
"description": "The condition type ('owns' or 'does_not_own')",
"enum": [
"owns",
"does_not_own"
],
"type": "string"
},
"contractAddress": {
"description": "The NFT contract address",
"type": "string"
},
"contractName": {
"description": "The NFT contract name",
"type": "string"
},
"principal": {
"description": "The Stacks address for the post-condition",
"type": "string"
},
"tokenId": {
"description": "The NFT token ID",
"type": "number"
}
},
"required": [
"principal",
"conditionCode",
"tokenId",
"contractAddress",
"contractName",
"assetName"
],
"type": "object"
}