Gateways
get
Retrieve a file from IPFS through the config’s pinataGateway
Usage
Returns
Returns the data from the CID in the form of JSON
, string
, or Blob
as well as the ContentType
Parameters
cid
- Type:
string
Accepts CID or IPFS gateway link.
Methods
optimizeImage (Optional)
- Type: OptimizeImageOptions
If the content being fetched is an image you can apply image optimizations to the image.