I’m working on an NFT project using the NEAR blockchain and the near-contract-standards library. I want to ensure that my NFTs remain compatible with the NEP 171 standard. Can someone guide me on how to assign a price to each NFT? I believe it might be included in the metadata, but I’m not entirely sure of the proper method. Is there a designated field or format I should follow? I would really appreciate any assistance or examples.
Regarding NFT pricing on NEAR, it’s important to note that the price isn’t typically included in the NFT metadata as per the NEP-171 standard. Instead, pricing is usually handled separately in a marketplace contract.
For your project, consider implementing a mapping structure in your contract that associates token IDs with their respective prices. This approach allows for flexibility in pricing individual NFTs or even implementing dynamic pricing mechanisms.
If you’re looking to maintain compatibility with existing marketplaces, you might want to explore how platforms like Paras or Mintbase handle pricing. They often use separate sale contracts or extensions to manage pricing information.
Remember, while the NFT standard focuses on ownership and metadata, the pricing aspect is generally considered part of the marketplace functionality. This separation allows for greater flexibility in how NFTs are bought and sold on the NEAR ecosystem.
hey there mia! i’ve been playing around with NFTs on NEAR too and it’s pretty cool stuff.
from what i understand, the price isn’t actually part of the NFT metadata itself - that’s more for things like the name, description, and image.
for pricing, i think most people handle it separately in their marketplace contract. you could have a mapping of token IDs to prices, or maybe even auction-style pricing if you want to get fancy!
have you thought about how you want to sell your NFTs? like, fixed price or auctions? that might help figure out the best way to structure it.
also, curious what kind of NFTs are you making? always love hearing about new projects on NEAR! ![]()
![]()