Removes stored content by its CID from this account. Please note that even if content is removed from the service other nodes that have replicated it might still continue providing it.
Encodes a directory of files to a CAR file and also returns the root CID.
Provided files MUST be within the same directory, otherwise error is
raised e.g. foo/bar.png
, foo/bla/baz.json
is ok but foo/bar.png
,
bla/baz.json
is not.
Encodes the given token and all resources it references (in the form of a
File or a Blob) along with a metadata JSON as specificed in ERC-1155 to a
CAR file. The token.image
must be either a File
or a Blob
instance,
which will be stored and the corresponding content address URL will be
saved in the metadata JSON file under image
field.
If token.properties
contains properties with File
or Blob
values,
those also get stored and their URLs will be saved in the metadata JSON
file in their place.
Note: URLs for File
objects will retain file names e.g. in case of
new File([bytes], 'cat.png', { type: 'image/png' })
will be transformed
into a URL that looks like ipfs://bafy...hash/image/cat.png
. For Blob
objects, the URL will not have a file name name or mime type, instead it
will be transformed into a URL that looks like
ipfs://bafy...hash/image/blob
.
Returns current status of the stored NFT by its CID. Note the NFT must have previously been stored by this account.
Stores the given token and all resources it references (in the form of a
File or a Blob) along with a metadata JSON as specificed in ERC-1155. The
token.image
must be either a File
or a Blob
instance, which will be
stored and the corresponding content address URL will be saved in the
metadata JSON file under image
field.
If token.properties
contains properties with File
or Blob
values,
those also get stored and their URLs will be saved in the metadata JSON
file in their place.
Note: URLs for File
objects will retain file names e.g. in case of
new File([bytes], 'cat.png', { type: 'image/png' })
will be transformed
into a URL that looks like ipfs://bafy...hash/image/cat.png
. For Blob
objects, the URL will not have a file name name or mime type, instead it
will be transformed into a URL that looks like
ipfs://bafy...hash/image/blob
.
Stores a single file and returns it's CID.
Stores a CAR file and returns it's root CID.
Stores a directory of files and returns a CID. Provided files MUST
be within the same directory, otherwise error is raised e.g. foo/bar.png
,
foo/bla/baz.json
is ok but foo/bar.png
, bla/baz.json
is not.
Generated using TypeDoc
Check if a CID of an NFT is being stored by NFT.Storage.