Dynamic NFT Creation
Dynamic NFTs enable the users to modify their metadata along with the content of the NFT with the help of predetermined triggers, interaction, or access to some other data such as scores or stock prices of the day. This is well-suited for NFTs which evolve and make a progression that is established in their timeline.
Example Use Case:
Mint is a sports collectibles card that receives updates about the player every time such a player has played a new game.
Endpoint: POST /api/nfts/dynamic
Request Body:
json
Copy code
{
"contractId": "{contractId}",
"recipient": "{walletAddress}",
"metadata": {
"name": "Dynamic Sports NFT",
"description": "Updates based on real-time player stats",
"attributes": [
{
"trait_type": "Player Score",
"value": "Pending"
}
]
},
"triggers": {
"externalApi": "https://sportsdataapi.com/player/{playerId}/stats",
"updateOnEvent": "PlayerScoreUpdate"
}
}
Description: This creates an interactive NFT in which certain characteristics (such as the player’s score) will change over time depending on other sources of information. You can determine the source of data in the form of external API and/or specify events such as game results, that will cause an update.
Last updated