Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

How to get a list of my assets (NFTs)? #1060

Open
CiFrameVladislavB opened this issue Nov 17, 2021 · 3 comments
Open

How to get a list of my assets (NFTs)? #1060

CiFrameVladislavB opened this issue Nov 17, 2021 · 3 comments

Comments

@CiFrameVladislavB
Copy link

No description provided.

@bradlhart
Copy link
Contributor

That depends on how atomicassets has their smart contract setup. Wax and atomicassets might have guides to assist in this.

@BattleBlockz
Copy link

Your going to either need to use the atomicassets module if your using something like react or create your fetch to their api and grab the assets based on collection name and the users name.

I'm guessing you already have the login part figured out as well as showing/storing the persons username (ie. ab1123.wam). Api link looks something like this

`https://wax.api.atomicassets.io/atomicassets/v1/assets?owner=${accountName}&collection_name=${collection}&page=1&limit=100&order=desc&sort=asset_id``

Where as the account name would be the persons username and the collection name you can set to whatever collection you want to show. It's best to put the fetch into it's own file such as a config.js and just import it into the "nft showcase" page that you are trying to view the assets on. To keep things clean create a styled wrapper for the cards such as cardwrap.js.

The cardwrap.js would basically be a styled div that organizes what data is displayed. After fetching from the api the info to grab in most cases are data.name, rarity, and data.img.

Honestly with as many dev's there are in the eos/wax space I can't believe more aren't open to teaching others :p

@macke89
Copy link

macke89 commented Jun 8, 2022

@BattleBlockz Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants