Minty

Learn how to configure Minty for use with Filebase.

What is Minty?

Minty is a CLI tool that can be used to mint NFTs and pin their assets to an IPFS pinning provider such as Filebase.

Read below to learn how to use Minty with Filebase.

Prerequisites:

1. Clone the Github repository:

git clone https://github.com/yusefnapora/minty

cd minty

2. Install the project’s dependencies:

npm install

npm link

4. Navigate to the Filebase Access Keys page, then view the IPFS Pinning Service API Endpoint.

Click the drop-down menu for 'Choose Bucket to Generate Token', then choose the IPFS Filebase Bucket you want to use.

5. Then copy the generated Secret Access Token:

6. Edit the ./config/.env file to configure Minty to use Filebase:

PINNING_SERVICE_KEY="Filebase API Key"
PINNING_SERVICE_NAME="Filebase"
PINNING_SERVICE_ENDPOINT="https://api.filebase.io/v1/ipfs/pins"

7. Start Minty in your local environment:

./start-local-environment.sh

8. Mint an NFT with the following command:

minty mint ~/image.png --name "Filebase NFT #1" --description "This is an NFT minted using Minty and Filebase."

Take note of the Token ID that gets returned.

9. Then, pin your NFT’s data to Filebase with the command:

minty pin 1

Replace ‘1’ with the Token ID of your minted NFT.

Last updated