Metadata of NBA TopShot

Hi everyone, I would like to ask what metadata in the use case NBA TopShot is written on-chain and off-chain? Where can I see that?

Thank you so much

Welcome to the community @Jennydebug! It is great to have you here.:slight_smile:

Most of the text-related metadata for Top Shot is stored on-chain, in the metadata field of the Play struct.

You can query those with Cadence scripts: https://github.com/dapperlabs/nba-smart-contracts/blob/master/transactions/scripts/plays/get_play_metadata.cdc

All of the complex metadata, like images and videos, are stored in an off-chain database.

1 Like

Thank for your answer, is there anyway to get the images and videos programmatically?

Top Shot offers a graphql API for people to get some of the metadata, but for images and such, at this point I think it requires a license to display the data. I’m not on the top shot team so I don’t know for sure. Please reach out to top shot support

1 Like

thank you very much. I will try to contact top shot support!

Did you ever have any luck with this?