Skip to content

Latest commit

 

History

History
32 lines (26 loc) · 1.24 KB

NFT.md

File metadata and controls

32 lines (26 loc) · 1.24 KB

NFTStorage::NFT

Properties

Name Type Description Notes
cid String Self-describing content-addressed identifiers for distributed systems. Check spec for more info. [optional]
size Float Size in bytes of the NFT data. [optional][default to 132614]
created Time This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ. [optional]
type String MIME type of the upload file or 'directory' when uploading multiple files. [optional]
scope String Name of the JWT token used to create this NFT. [optional][default to 'default']
pin Pin [optional]
files Array<Object> Files in the directory (only if this NFT is a directory). [optional]
deals Array<Deal> [optional]

Example

require 'nft_storage'

instance = NFTStorage::NFT.new(
  cid: bafkreidivzimqfqtoqxkrpge6bjyhlvxqs3rhe73owtmdulaxr5do5in7u,
  size: null,
  created: 2021-03-12T17:03:07.787Z,
  type: image/jpeg,
  scope: null,
  pin: null,
  files: null,
  deals: null
)