Skip to content

Files

Latest commit

author
Evgeny Kuzyakov
Aug 31, 2023
e5d1f6c · Aug 31, 2023

History

History
40 lines (32 loc) · 777 Bytes

Image.md

File metadata and controls

40 lines (32 loc) · 777 Bytes

Image

A common image.

Schema

Key Type Description
url URL String A direct URL to the image source.
ipfs_cid CID String IPFS CID to the image.
nft NFT Pointer to an NFT.

At least one the keys is required. Ideally, you should provide exactly one of the keys, but it's not strictly required. The image should be displayed in the following priority order:

  1. nft
  2. ipfs_cid
  3. url

Example

{
  "url": "https://cloudflare-ipfs.com/ipfs/QmQqzMTavQgT4f4T5v6PWBp7XNKtoPmC9jvn12WPT3gkSE"
}
{
  "ipfs_cid": "bafkreigfsxev7mc6hkdc55ey6hx4zmbrhipsvy32vwn45vw6zbg2hgzugu"
}
{
  "nft": {
    "contractId": "mrbrownproject.near",
    "tokenId": "3107"
  }
}