IPFS Dedicated Gateways: Using IPFS Dedicated Gateways in Metadata Files

Using IPFS Dedicated Gateways in Metadata Files.

Using IPFS Dedicated Gateways in Metadata Files

Filebase’s IPFS Dedicated Gateways offer a way to create unique, branded IPFS gateway URLs that can be used in place of public IPFS gateways, like ipfs.io.

An IPFS-dedicated gateway can be used in a metadata file to ensure that the content referenced in the metadata file can be accessed reliably and efficiently.

1. Navigate to the Gateways page on the Filebase web console.

2. Select the ‘Create Gateway’ button in the upper right corner.

3. A new window will open prompting you to provide a gateway name and select the gateway’s access level. Pick a name that reflects your project or application’s branding.

Gateway names are subject to the same naming restrictions as bucket names. All gateway names must be lowercase, between 3-63 characters, and must be unique.

Then, IPFS CIDs can be retrieved using this gateway, such as:


4. Then, upload some NFT image files to IPFS through Filebase.

We’ll start by uploading 3 images to Filebase for us to use.

5. Select ‘Buckets’ from the left side bar menu, or navigate to console.filebase.com/buckets.

Select ‘Create Bucket’ in the top right corner to create a new bucket for your NFTs.

6. Enter a bucket name and choose the IPFS storage network to create the bucket.

Bucket names must be unique across all Filebase users, be between 3 and 63 characters long, and can contain only lowercase characters, numbers, and dashes.

7. Next, select the bucket from your list of buckets, then select ‘Upload’ in the top right corner to upload your image files.

8. Select your images to be uploaded.

Once uploaded, they will be listed in the bucket.

9. You can view the object’s IPFS CID in the CID column, or you can click on your uploaded object to display the metadata for the object, which includes the IPFS CID.

Choose the method you prefer, and take note of the IPFS CID.

10. Next, create a .JSON file for each NFT you plan to create in your collection. The format for this JSON file is as follows:

  "name": "NFT #1",
  "description": "The first NFT in my collection",
  "image": "https://my-gateway.myfilebase.com/ipfs/IPFS_FILEBASE_CID",
  "attributes": [
      "trait_type": "Rarity",
      "value": "Average"

Replace IPFS_FILEBASE_CID with the CID for each NFT image you uploaded to Filebase.

If you have any questions, please join our Discord server, or send us an email at hello@filebase.com

Last updated