peerchemist / trotter

Trotter does abstraction on creation of NFT tokens on multiple evm-based blockchain networks.
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Create apis to store/get nft metadata for opensea integration #18

Closed bigchiano closed 3 years ago

bigchiano commented 3 years ago

Can use the trotter url or something like https://www.trotter.finance/api/NFTs/{token_id}

The api needs two endpoints to

peerchemist commented 3 years ago

So OpenSea can not parse this on its own from ipfs, it needs to go through a middleman?

I would not do this as part of Trotter really, I would separate this feature in a new piece of software.

peerchemist commented 3 years ago

Why? Because trotter is for NFT creation, it's not designed to be fetching metadata for 3rd parties. Trotter is designed to be brought down and be raised up often, and this piece for OpenSea should be permanently online.

bigchiano commented 3 years ago

So OpenSea can not parse this on its own from ipfs, it needs to go through a middleman?

I would not do this as part of Trotter really, I would separate this feature in a new piece of software.

Nope, opensea does not specify a structure for metadata on chain and all their doc is only talking about hosting a metadata apis.

You are right we should create the metadata as a seprate service.

bigchiano commented 3 years ago

Why? Because trotter is for NFT creation, it's not designed to be fetching metadata for 3rd parties. Trotter is designed to be brought down and be raised up often, and this piece for OpenSea should be permanently online.

Trotter itself does not get metadata offchain but opensea does. perhaps we could adapt to that?

peerchemist commented 3 years ago

OpenSea does not read metadata from the contract?

peerchemist commented 3 years ago

This is how I would handle it:

image

https://miro.com/app/board/o9J_lKSaXAg=/

bigchiano commented 3 years ago

This is how I would handle it:

image

https://miro.com/app/board/o9J_lKSaXAg=/

This diagram has been implemented, can I close this now?