Skip to main content
Creates a temporary access link for a file on private IPFS

Usage

Returns

  • Type: string
The full signed URL

Parameters

cid

  • Type: string
Accepts CID of the file you are trying to create an access link for

expires

  • Type: number
The number of seconds the access link should be valid for

date (Optional)

  • Type: number
A UNIX timestamp of the date the link is created

gateway (Optional)

  • Type: string
Use a Gateway domain other than the default domain from the config

optimizeImage (Optional)

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