# NBA TopShot Chain/Account Information

**URL:** <https://forum.flow.com/t/nba-topshot-chain-account-information/1558>\
**Category:** Flow Go SDK\
**Tags:** flow-sdk-go\
**Created:** [March 24, 2021, 7:51am UTC](https://forum.flow.com/t/nba-topshot-chain-account-information/1558 "2021-03-24T07:51:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deetow](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@Deetow](https://forum.flow.com/u/Deetow)\
**Post date:** [March 24, 2021, 7:51am UTC](https://forum.flow.com/t/nba-topshot-chain-account-information/1558/1 "2021-03-24T07:51:03Z")

</div>

Hi,

I was wondering how we can correlate account addresses stored on chain with NBA Top Shot usernames. It would be nice to have a human readable format for seller/buyer in transactions, and it seems like other sites are able to make that correlation like evaluate.market.

I was also wondering how to retrieve moment listing encodings that’s used in the URLs

ex: [https://nbatopshot.com/listings/p2p/](https://nbatopshot.com/listings/p2p/) **208ae30a-a4fe-42d4-9e51-e6fd1ad2a7a9+59770a29-6764-45e2-96d7-682ba3ae5cd5**

[https://nbatopshot.com/moment/adored\_octopusAIR+](https://nbatopshot.com/moment/adored_octopusAIR+) **be275690-2943-4bf7-9891-ccc3d08b6722**

Each moment has their own formatted schema, and I was wondering how to access these parts of the URL.

Thanks!

---

<div class="post-metadata">

**Author:** ![Gianni-PopMint](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/gianni-popmint/32/282_2.png) [@Gianni-PopMint](https://forum.flow.com/u/Gianni-PopMint)\
**Post date:** [March 24, 2021, 8:42pm UTC](https://forum.flow.com/t/nba-topshot-chain-account-information/1558/2 "2021-03-24T20:42:55Z")

</div>

You might find some value from this article: [Polling NBA Top Shot Purchase Events from Flow Blockchain with flow-go-sdk | by Eric Ren | Medium](https://medium.com/@eric.ren_51534/polling-nba-top-shot-p2p-market-purchase-events-from-flow-blockchain-using-flow-go-sdk-3ec80119e75f)

---

<div class="post-metadata">

**Author:** ![Deetow](https://avatars.discourse-cdn.com/v4/letter/d/71e660/32.png) [@Deetow](https://forum.flow.com/u/Deetow)\
**Post date:** [March 24, 2021, 8:55pm UTC](https://forum.flow.com/t/nba-topshot-chain-account-information/1558/3 "2021-03-24T20:55:37Z")

</div>

Hi @Gianni-PopMint,

Thanks for the response! I have looked through that article before to gain a basic understanding of how to query the chain.

However the final output that you get from there looks like this

> moment purchased: momentid: 113499, price: 4.000000, seller: 9cf0e3443ebc8bf9  
> saleMoment: serialNumber: 509, setID: 2, setName: Base Set, playID: 144, playerName: Jimmy Butler  
> transactionID: 5143ea740f7bb6e76c3f9298aa577b0df43a9619987ef4324b7a8e6f8c508633, block height: 6633113

Seller is an address stored in the flow chain, but I would like to know what the actual username associated with that TopShot/Dapper account address is.

I also havn’t found any information about how TopShot URLs are formatted, and where that’s located in the TopShot database in that article

---

<div class="post-metadata">

**Author:** ![flowjosh](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.flow.com/flowjosh/32/362_2.png) [@flowjosh](https://forum.flow.com/u/flowjosh)\
**Post date:** [March 31, 2021, 12:54pm UTC](https://forum.flow.com/t/nba-topshot-chain-account-information/1558/4 "2021-03-31T12:54:15Z")

</div>

@Deetow Top Shot usernames aren’t stored on-chain, so you can’t get it from that. You’ll need to check with the top shot community for how they do that.

---

<div class="post-metadata">

**Author:** ![crunchy777](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@crunchy777](https://forum.flow.com/u/crunchy777)\
**Post date:** [April 6, 2021, 2:00pm UTC](https://forum.flow.com/t/nba-topshot-chain-account-information/1558/5 "2021-04-06T14:00:59Z")

</div>

As flowjosh mentioned, the TopShot usernames are not stored on-chain.  
What is stored on-chain are some ids such as set id, play id, moment id.  
These are not the same as the set id, play id, moment id on TopShot.

There is some sort of mapping… which I am sure sites like evaluate.market has figured out. But if you did, this is how those URLs work:

/listings/p2p/{setID}+{playID}  
/moment/{momentID}

---

<div class="post-metadata">

**Author:** ![laf](https://avatars.discourse-cdn.com/v4/letter/l/13edae/32.png) [@laf](https://forum.flow.com/u/laf)\
**Post date:** [April 30, 2022, 6:39pm UTC](https://forum.flow.com/t/nba-topshot-chain-account-information/1558/6 "2022-04-30T18:39:03Z")

</div>

@crunchy777 How do you get a setID or a playID from your own moments? Also, /listings/p2p/{setID}+{playID} doesn’t seem to be valid anymore.
