Item
Item is an NFT minted from the particular blueprint. Item has the same interpretation list, specified by blueprint at the time of its minting, but can be different in future with upgrading of blueprint. Owner of item might not want to upgrade his item according to latest upgrades in blueprint. Item inherits properties of the RMRK's NFT.
Item Standard
An item MUST adhere to the following standard.
{
"blueprint": {
"type": "number",
"description": "Blueprint ID, e.g. 42"
},
"owner": {
"type": "string",
"description": "Account which owns the NFT. Computed from MINTITEM interaction."
},
"metadata": {
"type": "string",
"description": "HTTP(s) or IPFS URI. If IPFS, MUST be in the format of ipfs://hash"
},
"interpretations": {
"type": Interpretation[],
"description": "The list of supported interpretation types and interpretations for these types"
}
}
Metadata
An item MUST have metadata to describe it and help developers of the IMP ecosystem in the best way of leveraging this blueprint.
{
"name": {
"type": "string",
"description": "The name of the interpretation blueprint"
},
"description": {
"type": "string",
"description": "Description of the blueprint as a whole. Markdown is supported."
}
}
Examples
Item:
{
"blueprint": 42,
"owner": "CpjsLDC1JFyrhm3ftC9Gs4QoyrkHKhZKtK7YqGTRFtTafgp",
"metadata": "ipfs://QmavoTVbVHnGEUztnBT2p3rif3qBPeCfyyUE5v4Z7oFvs4",
"interpretations": [
{
"id": 1,
"src": "hash-of-pixel-2D-source",
"metadata": "hash-of-pixel-2D-source-metadata",
"tags": ["inventory-view", "2D"]
},
{
"id": 2,
"src": "hash-of-anime-2D-source",
"metadata": "hash-of-anime-2D-metadata",
"tags": ["2D"]
}
]
}
Metadata:
{
"name": "Sword 1",
"description": "Item supports two 2D views: inventory pixel and anime"
}
Interactions
- MINTITEM - mints item from blueprint
- TRANSFERITEM - transfers item
- BURNITEM - burn item
- ACCEPTITEMUPDATE - accept the update to the latest blueprint state