NEAR Protocol: Storing Off-Chain Data on IPFS using Filebase
Learn how to use Filebase for off-chain NEAR Protocol data storage on IPFS.
What is NEAR Protocol?
1. To pin data to IPFS, you can use the Filebase Web Console Dashboard or S3-Compatible API.
2. Start by clicking on the ‘Buckets’ option from the menu to open the Buckets dashboard.

3. Select your IPFS Bucket.
4. After clicking on the bucket name, you will see any previously uploaded files.

5. Select the file you want to upload to the IPFS.
6. Once uploaded, you will be able to view and copy the IPFS CID from the 'CID' category, as seen below.

7. Next, clone the following NEAR Protocol NFT example repository:
8. Navigate inside this new director, then build the smart contract.
9. Next, deploy the smart contract for the NFT with the command. This command uses an auto-generated, testnet wallet:
10. To set this testnet address as a local environment variable, use the following command:
11. Then, use the following command to initialize the contract:
12. To mint your NFT, run the following command, changing the following fields to match your desired NFT configuration:
Last updated