Refreshing metadata

Routes to refresh metadata are Admin routes and need the proper authentication. Those routes will queue a job to refresh the assets metadata but the refresh might not be instantaneous.

Cached images might not always be available so we advise you to always use the default image as a back-up in your front-end code.

Refreshing all collection assets metadata

await marketplaceSdk.collection.refreshCollectionMetadata(
    MY_COLLECTION_ADDRESS
)

All our API routes are also available without the SDK. See the

refresh collection metadata route.

Refreshing a single asset metadata

await marketplaceSdk.asset.refreshAssetMetadata(
    MY_COLLECTION_ADDRESS,
    'token_id'
)

All our API routes are also available without the SDK. See the

refresh collection metadata route.

Last updated