Skip to content
/ pin Public

IPFS pinning script for FA2 tokens. Supports pinning to a local node and Pinata.

License

Notifications You must be signed in to change notification settings

metanivek/pin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pin

A simple node script for pinning FA2 tokens to Pinata or a local IPFS node. You can pin your created or collected tokens.

Supported tokens

Some tokens only support pinning your collected tokens. This is due to how some tokens store their metadata (see comments in ./src/tzkt.js for more info). I hope to improve this in the future, but for now, all tokens that you have collected should work.

I know that the following tokens support pinning for both created and collected:

  1. Teia / Hic et Nunc
  2. Objkt.com
  3. Versum

Prerequisites

  1. Install IPFS: https://ipfs.io/#install (only for local pinning)
  2. Install Node.js: https://nodejs.com

How to use

  1. Download or clone repo
  2. cd into directory from the terminal
  3. cp .env.sample .env
  4. Replace values in .env with your Pinata keys and your Tezos addresses
  5. npm i to install dependencies
  6. Run one of the pinning commands: npm run pinata created, npm run pinata collected, npm run local created, or npm run local collected

Note: pinning locally can take a long time and is prone to failure due to failed discovery in the IPFS network. If you try enough times, it will usually succeed. :)

About

IPFS pinning script for FA2 tokens. Supports pinning to a local node and Pinata.

Topics

Resources

License

Stars

Watchers

Forks