Skip to content

Commit

Permalink
NFT Pallets - Add option to use Apillon Storage (#5647)
Browse files Browse the repository at this point in the history
* Replace Pinata with Apillon

* Add Pinata as an alternative
  • Loading branch information
dimitrov-d authored Mar 4, 2024
1 parent 694ebee commit 5c04496
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions docs/learn/learn-nft-pallets.md
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,32 @@ Creating an item usually involves setting some attributes specific to that item.

### Uploading Files and Metadata

#### Using Apillon

When you have a collection ID and an item ID you need to:

- Open an account on [Apillon](https://app.apillon.io/) and create a new project.
- Navigate to [the Apillon Storage service](https://app.apillon.io/dashboard/service/storage) and
create a new storage bucket. Upload the file you want to mint to the bucket.
- After the file has been uploaded and pinned to IPFS, click on the file to open its details and
copy the
[Content Identifier (CID)](https://docs.ipfs.tech/concepts/content-addressing/#what-is-a-cid).
This unique string of letters and numbers will act as a marker to link the data uploaded onto
[IPFS](https://ipfs.tech/#how) to the collection or item ID you own.
- Prepare the JSON metadata file and add your CID (see below):

```
{
"name":"Your Collection Name",
"description":"Collection's Description",
"image":"Your Collection CID"
}
```

- Upload the metadata file to Apillon Storage and get the updated CID.

#### Alternative - Using Pinata

- Open an account on [Pinata](https://www.pinata.cloud/).
- Follow
[these steps](https://docs.pinata.cloud/what-can-i-learn-here/pinning-your-first-file-with-pinata)
Expand All @@ -211,9 +235,10 @@ When you have a collection ID and an item ID you need to:
```

- Upload the metadata file to Pinata and get the updated CID.
- After minting your NFT on the Polkadot-JS UI, you can add the CID. Go to Developer > Extrinsics
and select the `nfts.setCollectionMetadata` (for collections) or `nfts.setMetadata` (for single
NFTs) extrinsic. Under the `data: Bytes` field you can enter the CID or upload the metadata file.

After minting your NFT on the Polkadot-JS UI, you can add the CID. Go to Developer > Extrinsics and
select the `nfts.setCollectionMetadata` (for collections) or `nfts.setMetadata` (for single NFTs)
extrinsic. Under the `data: Bytes` field you can enter the CID or upload the metadata file.

The collection can be created and its item minted before uploading the NFT file and related
metadata. The minting process on-chain will assign a collection and item ID to your account. Those
Expand Down

0 comments on commit 5c04496

Please sign in to comment.