I have recently purchased an NFT on Opensea:
I am keen to explore the Metadata – in particular extracting the image URL from the Metadata (which I believe is stored on Googles cloud platform).
If I view the contract (https://etherscan.io/tx/0xcf4a0a69f727380f9716fbe243f0a4b63da5bd9e3933cdbb6ff02bd4fe9221ee), I was expecting to see the URL in the metadata, however I can only see a hashed set of input data.
I believe that it is possibly because I am looking at the transaction, rather than the underlying contract, but I cannot figure out how to view the original ERC721 contract from the Etherscan page? All roads seem to lead to this page which I believe is the main Opensea contract: https://etherscan.io/address/0x495f947276749ce646f68ac8c248420045cb7b5e
Best Answer
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 raw representation of contracts/tokens/transactions/etc. either as the EVM bytecode or the source code of the contract. Also it looks like the contract for the linked NFT is actually a ERC-1155 rather than a ERC721 contract.
For Opensea contracts, by far the easiest and most reliable way to get any information is to use their API (which they provide a convenient browser explorer for): https://docs.opensea.io/reference/retrieving-a-single-asset
It looks like for the NFT you linked the relevant image urls are: