Moralis Pinata IPFS Plugin
5/5
5 out of 5
Moralis Pinata IPFS Plugin
Pinata IPFS
Developed by
Moralis
Version

1.1.4

last updated:

07/02/2022

100,000

Moralis Pinata IPFS Plugin

This plugin enables interaction with the Pinata IPFS API (https://www.pinata.cloud/).

Get started

Grab a free api key here: https://www.pinata.cloud/

Functions

Pin JSON to IPFS

Description: Send a file to Pinata for direct pinning to IPFS.

interface PinJSONDto {
  body: object;
}

await Moralis.Plugins.pinata.pinJson(PinJSONDto);

Pin File or Folder to IPFS

Description: Read from a location on your local file system and recursively pin the contents to IPFS.

Both individual files, as well as directories can be read from.

interface PinFileDto {
  path: string;
}

await Moralis.Plugins.pinata.pinFile(PinFileDto);

interface PinFolderDto {
  path: string;
}

await Moralis.Plugins.pinata.pinFolder(PinFolderDto);

Get Pin List

Description: Retrieve pin records for your Pinata account.

await Moralis.Plugins.pinata.pinList();

Tags
IPFS
Want to Build Your Own Plugin?
Moralis is ready and waiting for you to rapidly build your new dApp. And then bring it to scale.

Already have an account? Log in

Become a Web3 Expert
Subscribe to our newsletter and get our E-book Web3 Speed run for FREE