[Ethereum] How to extract the URL of a crypto art as it appears within the NFT? and technical details like ERC-token type

erc-1155erc-721nft

The following piece of crypto art has a title, description, and additional details regarding file and image size, provided by the NFT platform (Makersplace) where the artist (Lumi) minted the NFT for the image.

How can I view the URL link to the associated image file as it appears within the metadata/code of the NFT itself? and get technical details such as whether the NFT is an ERC-721 or ERC-1155 token?

Best Answer

I can't find that particular piece in their contracts, but the below applies to the 2 of 10 edition.

How can I view the URL link to the associated image file as it appears within the metadata/code of the NFT itself?

The 2 of 10 edition is here.

From that we see their contract - MakersTokenV2 - is at 0x2a46f2ffd99e19a89476e2f62270e0a35bbf0756.

You can use Etherscan to read data from the contract here.

The token ID is 42497, which we can use with the tokenURI() method from that Etherscan page, to get the following as the location of the artwork's metadata (not the artwork itself):

ipfs://ipfs/QmdNvqCbd7qYvtyFJdd3zoJC84cvyCiSxYDfsiYYQZVCec

Which is an IPFS path. To view it through a browser requires you to use a gateway:

https://ipfs.io/ipfs/QmdNvqCbd7qYvtyFJdd3zoJC84cvyCiSxYDfsiYYQZVCec

From there we can see the image's metadata, which includes the actual location of the art:

{
  title: 'Trajectory',
  name: 'Trajectory',
  type: 'object',
  imageUrl:
    'https://ipfsgateway.makersplace.com/ipfs/QmNopeEan1r728EGpAYZw8fFvCXfuXtnadC3JCeY5mo9LB',
  description: 'Created by artist ThinkLumi',
  attributes: [
    {
      trait_type: 'Creator',
      value: 'Think Lumi',
    },
  ],
  properties: {
    name: {
      type: 'string',
      description: 'Trajectory',
    },
    description: {
      type: 'string',
      description: 'Created by artist ThinkLumi',
    },
    preview_media_file: {
      type: 'string',
      description:
        'https://ipfsgateway.makersplace.com/ipfs/QmNopeEan1r728EGpAYZw8fFvCXfuXtnadC3JCeY5mo9LB',
    },
    preview_media_file_type: {
      type: 'string',
      description: 'jpg',
    },
    created_at: {
      type: 'datetime',
      description: '2020-05-06T18:24:35.578285+00:00',
    },
    total_supply: {
      type: 'int',
      description: 10,
    },
    digital_media_signature_type: {
      type: 'string',
      description: 'SHA-256',
    },
    digital_media_signature: {
      type: 'string',
      description:
        '72fd9dc05cc5b630c28d749eb56dc4f99173e6769556f7ac10c8204dd1de8721',
    },
  },
}
Related Topic