4 votes
Accepted

Updated token metadata not refreshing on OpenSea

I kind of encountered probably the same metadata update problem. In my case it was because I rushed through the opensea docs didn't use the correct api endpoint for force updating the metadata. ...
Octavian's user avatar
  • 156
4 votes

Reveal NFT metadata after buy

Inside SimpleNFT.sol, instead of the bool public revealed variable you could have a mapping (uint256 => bool) revealed. This maps each tokenId to a boolean value (it is false by default). This ...
Tudor B's user avatar
  • 193
3 votes

How do I access/read the metadata from my Opensea NFT purchase?

There may be a way to retrieve the metadata through Etherscan but because of the broadness of the space of possible Ethereum contracts (effectively infinite), Etherscan really only provides the most ...
Jonathan Dinu's user avatar
3 votes
Accepted

How to tell if a transaction is contract creation?

contract creation transaction will have "to" as 0 address, meaning that there is not recipient for this transaction. Another way to tell if a transaction is a contract creation is to check ...
Jiaming Li's user avatar
3 votes
Accepted

Can I delete, change or add a new metadata?

Yes, but not directly from the IPFS. Anything uploaded to IPFS cannot be altered further. However, if you want to change metadata of your NFTs you can upload updated version of your files(JSON ...
ofarukcaki's user avatar
2 votes
Accepted

Properly parse contract creation bytecode metadata hash using cbor module in npm

The bytecode is not CBOR-encoded as a whole. Only the part representing the metadata hash at the end is and you seem to be decoding it correctly. As to why it can start with 0xa264, 0xa265 or ...
cameel's user avatar
  • 2,151
2 votes

ERC721 Metadata - TokenURI - Return the full JSON String Instead of URL Pointer?

Yes, it's possible using Data URLs. OpenSea requires the tokenURI method to return a URI of a JSON containing properties such as image (which themselves can also have data URLs as values). Here's a ...
pwagner's user avatar
  • 890
2 votes

How to Download Metadata for an ERC721 NFT Collection

i gotchu the alchemy nft api has a getNFTsForCollection endpoint that allows you to fetch all the images, metadata, etc. for an NFT collection (based on contract address) here's an example request: // ...
thatguyintech's user avatar
2 votes
Accepted

How to populate a large amount of data into a mapping of struct

Your understanding of both the solutions is right. There are a few things that are needed to be considered. Solution 1 This is simple to implement, but as you mentioned, you'll pay gas for every ...
pbsh's user avatar
  • 2,391
2 votes

How can I make use of dynamic metadata for tokens?

Let's build from your 2nd approach: Can you create an erc-1155 that points to an IPNS directory and references a particular IPFS file within? If so, you could update a metadata file which dictates ...
Robert Ussery's user avatar
2 votes

Updatable attributes for ERC721 Tokens without touching to immutable rarity attributes

You could have some publicly readable data structure or mapping within your ERC-721 contract that allow other smart contracts and centralized applications to read the mutable values. So basically keep ...
Taras Filatov's user avatar
2 votes

my nft image not showing in opensea testnet

In metadata, you gave image attribute the wrong value (x.png). If you want Opensea to find your image you should provide a public uri to your image as the value. Usually you first upload the image to ...
Nal Luksic's user avatar
  • 1,069
2 votes

How to decode and update input data of a specific transaction?

no it's not possible. a transaction is an immutable record of something that has happened. It doesn't make sense to be able to change it as it would mean there could be no certainty on the blockchain. ...
sola24's user avatar
  • 1,188
1 vote

Decreasing size of the images, fetched from IPFS, before rendering

I think it is not possible until we cache the image somewhere on the server before downloading, which contradicts using IPFS. One way to overcome slow loading is to pick an IPFS gateway that is faster ...
JohnVersus's user avatar
1 vote
Accepted

ERC-721 metadata doesn't show up for rinkeby but does show up for mumbai?

You have a literal metadata document there. But you need a URI. Please see the data URL scheme which explains how to convert a literal document to a URI. This is an intended and supported use case for ...
William Entriken's user avatar
1 vote

Metadata isnt showing for opensea

With limited information about the real file, I can only think of two possibilities at the moment: the IPFS file may not work (e.g. the real link of ipfs://..../hidden.png may be invalid or some ...
minhhn2910's user avatar
  • 1,690
1 vote

search NFT collection by name

To complete Grizzly, Web3 contracts dont save the NFT data, but save the URI. NFT data are commonly saved on IPFS. If you have the full URI saved then just make the request to it. If you miss a part ...
Aurel's user avatar
  • 71
1 vote
Accepted

How to create many ERC721 tokens sharing the same metadata tokenURI but different TokenId?

I'm not convinced this is the best answer, because I found this post looking for a better one. But it at least works: // set the base uri at top of contract string public uri = "ipfs://&...
dmulvi's user avatar
  • 126
1 vote

How does Ethereum / the EVM know not to execute metadata/auxdata?

Basically, the auxdata/metadata is just unreachable code. It doesn't have any jump destinations that are jumped to by the rest of the code. It's sort of like having code after a return statement. It ...
Patrick Collins's user avatar
1 vote

Reveal NFT image/metadata after mint

Your best option is to use tho different URIs. One for the pre-mint containing the general image and then changing that URI to the one containing the real images. From what I see you can already do it ...
Francisco Aramburu's user avatar
1 vote

Updated token metadata not refreshing on OpenSea

The polygon version of this endpoint should be https://api.opensea.io/api/v1/asset/matic/<your_contract_address>/<token_id>/?force_update=true
Alfredo's user avatar
  • 11
1 vote

Can I delete, change or add a new metadata?

You need to elaborate more. How are you storing the URI in the contract? Do you want to change the URI of the directory that contains the metadata of all NFTs or just one specific NFT? Can the data be ...
Hamza Tariq's user avatar
1 vote
Accepted

Is it possible to write protect an IPFS base url?

If you are publishing to a URL that starts with ipfs://ABC then: Anybody can inspect all the files in all paths starting at ABC. Nobody can change the contents of the paths starting at ABC. This is ...
William Entriken's user avatar
1 vote

Why metadata is not valid "token_uri": null

What worked for me is removing the file extension from the files so the ipfs url reference didn't have the .json file extension a the end and nor did the tokenURI. Hope this helps everyone
Alfie Darko's user avatar
1 vote

Why metadata is not valid "token_uri": null

Having the same problem in last 5 days. Opensea is not showing any metadata Rarible is showing the metadata ok. I had wrote message to Opensea support and waiting the reply. regard tomas this is my ...
Tomas Zeman's user avatar
1 vote

Why metadata is not valid "token_uri": null

I am having the same problem, while the data is correct, it is getting a "token_uri" : null https://testnets-api.opensea.io/asset/0x2D8aC58b1957c5cb4A6158dBC9343dA0fE13f51f/0/validate The ...
Sergio Martell's user avatar
1 vote

ERC721 Contract: Adding Contract Level Metadata?

I struggled so much to find how to make this work but at the end was so simple. create a .json file with the metadata and serve it with a simple http server ie. if your file name is metadata.json your ...
Casareafer's user avatar
1 vote
Accepted

What is this CDN in NFT marketplace ? it this the replacement for IPFS.? any leads or links related to the same would be great help

CDN is content delivery network. It is a way of delivering content of HTTP/S protocol - your usual internet. It is an internet standard and used commonly for usual internet technologies. IPFS is a ...
abhinavmir's user avatar
1 vote

How to avoid user to get metadata from non-minted ERC721 token?

Your choices are either Hide the metadata (which means you could tell your friends which are the good ones and they could rush to get it); or Publish the metadata and so everybody knowns I just ...
William Entriken's user avatar
1 vote

I minted an NFT using an interface I created but the media (image) is not showing up on opensea

Reading through OpenSea Metadata standards, you'll find that your json data field with the image link needs to be called "image" instead of "imageCID".
phaze's user avatar
  • 1,555

Only top scored, non community-wiki answers of a minimum length are eligible