epam / near-nftchecker

MIT License
1 stars 0 forks source link

Contract: Check for ContractMetadata #2

Closed zahhar closed 3 years ago

zahhar commented 3 years ago

When only NFT contract address is given, first thig to check - call nft_metadata method on the contract.

Full JSON:

{
  spec: string, // required, essentially a version like "nft-1.0.0"
  name: string, // required, ex. "Mochi Rising — Digital Edition" or "Metaverse 3"
  symbol: string, // required, ex. "MOCHI"
  icon: string|null, // Data URL
  base_uri: string|null, // Centralized gateway known to have reliable access to decentralized storage assets referenced by `reference` or `media` URLs
  reference: string|null, // URL to a JSON file with more info
  reference_hash: string|null, // Base64-encoded sha256 hash of JSON from reference field. Required if `reference` is included.
}

spec, name and symbol are required:

sxurik commented 3 years ago

Closed by #15