Skip to main content
Retrieve a file through the config’s pinataGateway

Usage

Returns

Returns the data in the form of JSON, string, or Blob as well as the ContentType

Parameters

cid

  • Type: string
Accepts CID of the file you are trying to fetch

optimizeImage (Optional)

If the content being fetched is an image you can apply image optimizations to the image.