Grant an item to a player
To grant an item to a player, simply POST to /items, providing the new owner's playerId. If metadata is not provided, the default metadata configured on the item type will be used.
Granting an item means that an NFT will be minted from the defined collection to the players wallet on-chain. This is an asynchronous operation which can take several seconds. It’s handled differently by different apps:
In-game ownership is optimistic, meaning ownership is immediately reflected in the platform API. This ensures the player has a fast and seamless experience in-game.
Mythical Marketplace ownership is not optimistic, meaning ownership is reflected in marketplace inventory once the mint transaction finalizes on-chain, which can take several seconds. This ensures the player has a fault proof experience in the Mythical Marketplace.
Last updated