How to Update the NFT Metadata

A tutorial showing how to update NFT metadata via Mantle Explorer

Mantle v2 Tectonic has been released, please move to the new documentation!

Mantle Explorer now offers a streamlined process for updating NFT metadata, ensuring that your NFT information stays accurate and current. There are two methods to update the metadata

Manual Update via Explorer Frontend

  1. Navigate to the specific NFT's detail page on our explorer.

  2. Click the Refetch Metadata button manually to initiate an immediate metadata update.

Update via the Explorer API

Developers and power users can leverage the Explorer API for a programmatic approach to metadata updates.

  1. Make a call to the API endpoint: https://explorer.mantle.xyz/api/v1/asset/{token_address}/{token_id}

  2. The metadata will be refreshed automatically after the API request is made.

For example: https://explorer.mantle.xyz/api/v1/asset/0xfebaf2241d4947e5724d136e8ba8cfeeef9b4157/2

Batch Updates for Developers

For developers handling multiple NFTs, implementing a loop to call the API interface for various token IDs allows for efficient batch updates.

  • Use the endpoint: https://explorer.mantle.xyz/api/v1/asset/{token_address}/{token_id} for requesting metadata of multiple token IDs and initiating updates.

Last updated