Using the Subgraph
The Namoshi Subgraph indexes all registration and transfer events, making it easy to query names by owner. For endpoints and full schema details, see the Subgraph Documentation.GraphQL Query
Using the Name Wrapper
If the names are wrapped via theNameWrapper.sol, they are standard ERC-1155 tokens. You can use standard token indexing services or the balanceOf and transfer events to track ownership of wrapped names.
Client-Side Considerations
If you are building a profile page, you should:- Fetch the list of names from the Subgraph.
- Filter out expired names.
- Check which name is set as the Primary Name.