NEAR Protocol: Storing Off-Chain Data on IPFS using Filebase
Learn how to use Filebase for off-chain NEAR Protocol data storage on IPFS.
Last updated
Learn how to use Filebase for off-chain NEAR Protocol data storage on IPFS.
Last updated
NEAR Protocol is a decentralized blockchain platform that enables developers to build decentralized applications with a focus on usability and scalability. It was designed to address some of the scalability and usability issues faced by other blockchain platforms.
Read below to learn how to use Filebase for off-chain NEAR Protocol data storage on IPFS. By storing data on IPFS, it can be referenced via NEAR Protocol smart contracts using the file or folder’s IPFS CID value.
This tutorial will showcase how to use Web Console Dashboard. For information on our S3-Compatible API, check out our documentation.
To upload another file, select 'Upload', then select 'File' from the options.
Then, take note of the file’s CID to be used in your NEAR Protocol smart contract.
git clone https://github.com/near-examples/NFT.git
cd NFT
./scripts/build.sh
near dev-deploy --wasmFile non_fungible_token.wasm
This command will return your testnet address.
source neardev/dev-account.env
near call $CONTRACT_NAME new_default_meta '{"owner_id": "'$CONTRACT_NAME'"}' --accountId $CONTRACT_NAME
title: Your NFT’s Title.
description: Your NFT’s Description
CID: Your IPFS CID that you received when you uploaded your image to Filebase.
near call $ID nft_mint '{"token_id": "0", "receiver_id": "'$ID'", "token_metadata": { "title": "<TITLE>", "description": "<DESCRIPTION>", "media": "https://ipfs.filebase.io/ipfs/<CID>", "copies": 1}}' --accountId $ID --deposit 0.1