Skip to main content
Pin an existing CID on IPFS to your Pinata account

Usage

Returns

Parameters

cid

  • Type: string
Target CID already on IPFS

keyvalues (Optional)

  • Type: Record<string, string>
Add optional keyvalues to file

name (Optional)

  • Type: string
Add optional name to file

group (Optional)

  • Type: string
Upload to a specific group by passing in the groupId

key (Optional)

  • Type: string
Upload a file using a secondary API key generated through keys.create()

peerAddress (Optional)

  • Type: string[]
Accepts an array of host node IDs to peer with