Upload a file to Pinata to be pinned to IPFS
Blobs
File
object.URL
arrayBuffer
, which then gets passed into a new Blob
that can then be uploaded to Pinata.base64
buffer
that is passed into a Blob
.Folders
file
entry and having multiple files for that one entry, which does not work.Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
The body is of type object
.
{ "IpfsHash": "This is the IPFS multi-hash (CID) provided back for your content," "PinSize": "This is how large (in bytes) the content you just pinned is," "Timestamp": "This is the timestamp for your content pinning (represented in ISO 8601 format)" }
The response is of type object
.