Refreshing Metadata
If you update NFT metadata, this API endpoint triggers an update of the GhostMarket metadata database.
GhostMarket indexes and caches NFT metadata, so it can be quickly and efficiently retrieved without requiring multiple accesses of the blockchain RPC nodes.
If you update the metadata manually, it may be necessary to force a refresh of our cached metadata.
To do this, use the refreshMetadata
API endpoint, specifying the chain, contract and tokenId params as required.
https://api.ghostmarket.io/api/v2/refreshMetadata
Request method has to be a PATCH, with the following data
data : {chain: "n3", contract: "0xaa4fb927b3fe004e689a278d188689c9f050a8b2", tokenId: "QzAyMzY2"}
See the Blockchain Short Name table for the list of supported chain names.
The tokenId is the token id specifying the NFT within the collection (NFT contract)
Example:
200: Success Response
200: Error Responses
Last updated