<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sadiqur Rahman on Medium]]></title>
        <description><![CDATA[Stories by Sadiqur Rahman on Medium]]></description>
        <link>https://medium.com/@sadiqurrahman_46598?source=rss-fe53b21b7871------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*BGiKdbJGbGFTUwT_</url>
            <title>Stories by Sadiqur Rahman on Medium</title>
            <link>https://medium.com/@sadiqurrahman_46598?source=rss-fe53b21b7871------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 06:53:16 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sadiqurrahman_46598/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[ChainSafe Storage — A step by step tutorial on how to store and retrieve NFT data]]></title>
            <link>https://medium.com/chainsafe-systems/chainsafe-storage-a-step-by-step-tutorial-on-how-to-store-and-retrieve-nft-data-f70988983ca?source=rss-fe53b21b7871------2</link>
            <guid isPermaLink="false">https://medium.com/p/f70988983ca</guid>
            <category><![CDATA[learn]]></category>
            <category><![CDATA[filecoin]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[product]]></category>
            <category><![CDATA[ipfs]]></category>
            <dc:creator><![CDATA[Sadiqur Rahman]]></dc:creator>
            <pubDate>Thu, 13 Jan 2022 22:25:13 GMT</pubDate>
            <atom:updated>2022-01-13T22:25:13.733Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>A step by step tutorial on how to store and retrieve NFT data with ChainSafe Storage</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pRSEahHak4waRpggdQt5kQ.png" /></figure><p><em>ChainSafe Storage provides a ready-made, distributed storage solution for any use case. Our product uses IPFS for hot storage and Filecoin for archival storage and extra redundancy. This makes storage more robust and decentralized than traditional cloud alternatives and ensures that the user’s data will always be available and resistant to censorship.</em></p><p><em>The storage UI presents an intuitive pinning service that allows users to easily pin and retrieve files on IPFS and Filecoin. Storage also delivers a set of exposed APIs that allow developers to integrate our software as the storage layer for their product with just a few clicks. In addition to the Storage APIs, the product provides S3 compatible API keys which means the creators of most traditional websites and applications can replace their storage layer with robust, distributed storage by changing a single field! Try </em><a href="https://storage.chainsafe.io/"><em>Storage</em></a><em> today!</em></p><blockquote>Non-Fungible Tokens (NFTs) are unique, decentralized assets. One of the most compelling use cases for ChainSafe Storage is the storage of off-chain data associated with NFTs. With Storage, users can rest easy knowing that the associated off-chain data for their NFTs will always be just as available and decentralized as the asset itself!</blockquote><p>In this article, we will go through how to store and retrieve the off-chain data for any NFT.</p><p><strong>Prerequisites</strong></p><ol><li>Sign-up on <a href="https://storage.chainsafe.io/">Storage</a></li><li>Create an <a href="https://docs.storage.chainsafe.io/#section/NFT-Metadata-Storage">API key</a></li><li>Create a <a href="https://docs.storage.chainsafe.io/#section/NFT-Metadata-Storage/Prerequisites">bucket</a></li></ol><p><strong>Sign-up on Storage</strong></p><p>Go to <a href="https://app.storage.chainsafe.io/">https://app.storage.chainsafe.io</a> if you haven’t created an account already.</p><p><strong>Create an API key</strong></p><ol><li>Go to settings and click on “Add API key”</li><li>This will generate a key and a secret. Store your secret somewhere safe like you would back up a private key for a crypto wallet. It won’t be displayed again in the API Key List of the settings page.</li><li>All of the following steps we will use this secret as <strong>&lt;API_SECRET&gt;</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KFzby1t48jKuxb6j" /></figure><p><strong>Create a bucket</strong></p><p>To store an object in <em>Storage</em>, you need to create a <em>bucket</em>. A <em>bucket</em> is a container for data.</p><p>When creating a bucket, provide the following two params as a request body:</p><ol><li>name — The name of the bucket. Must be unique in case you have multiple buckets</li><li>type — For buckets in Storage, this value is always fps</li></ol><p>Now, let’s create a bucket with the following http request:</p><pre>POST /api/v1/buckets HTTP/1.1<br>Host: https://api.chainsafe.io<br>Authorization: Bearer &lt;API_SECRET&gt;<br>Content-Type: application/json<br>{<br> “name”: “Test Bucket”,<br> “type”: “fps”, <br>}</pre><p>You will get a json response with ID. We will refer to this ID as <strong>BUCKET_ID</strong> in the following steps.</p><p><strong>Storing NFT data</strong></p><p>To store NFT data you must provide the following fields:</p><ol><li><strong>BUCKET_ID</strong> as path param</li><li><strong>path</strong> : Path for where to upload file data. You can provide a non-existing directory path. In that case directories according to the path will be created as well.</li><li><strong>file</strong> : The file that you are uploading</li></ol><p>Now, let’s upload a file (example_nft) on the path /my_data</p><pre><strong>POST</strong> /api/v1/bucket/&lt;BUCKET_ID&gt;/upload HTTP/1.1<br>Host: <a href="https://api.chainsafe.io/">https://api.chainsafe.io</a><br>Content-Type: multipart/form-data; boundary= — — WebKitFormBoundary7MA4YWxkTrZu0gW<br>Authorization: Bearer &lt;API_SECRET&gt;</pre><pre> — — WebKitFormBoundary7MA4YWxkTrZu0gW<br>Content-Disposition: form-data; name=”file”; filename=”example_nft”<br>Content-Type: application/json</pre><pre>(data)<br> — — WebKitFormBoundary7MA4YWxkTrZu0gW<br>Content-Disposition: form-data; name=”path”</pre><pre>/my_data<br> — — WebKitFormBoundary7MA4YWxkTrZu0gW</pre><p><strong>Retrieving NFT data</strong></p><p>NFT data stored on ChainSafe Storage can be accessed from the <em>storage</em> download API or from any public IPFS network from any peer that has the content.</p><p><strong>Retrieving via download endpoint</strong></p><p>Simply provide this path in the json request body</p><pre><strong>POST</strong> /api/v1/bucket/&lt;BUCKET_ID&gt;/download HTTP/1.1<br>Host: <a href="https://api.chainsafe.io/">https://api.chainsafe.io</a></pre><pre>Authorization: Bearer &lt;API_SECRET&gt;<br>Content-Type: application/json</pre><pre>{<br> “path”: “/my_data/example_nft”<br>}</pre><p><strong>Retrieving via ipfs gateway</strong></p><p>First, get the CID of the uploaded file. Then, perform the following request to get file details in json format:</p><pre>POST /api/v1/bucket/&lt;BUCKET_ID&gt;/file HTTP/1.1<br>Host: <a href="https://api.chainsafe.io/">https://api.chainsafe.io</a><br>Authorization: Bearer &lt;API_SECRET&gt;<br>Content-Type: application/json</pre><pre>{<br> “path”: “/my_data/example_nft”<br>}</pre><p><strong>Response:</strong></p><pre>{<br>“content”:<br>{<br>“name”: “file1.pdf”,<br>“cid”: “QmfPaBnVAR48UbcjF8crcX7TtJKiV8g3DJkTUsBB6pXb7e”,<br>“size”: 10121,<br>…<br>},<br>…<br>}</pre><p>Copy the CID. Using the CID, data can be fetched directly from any public IPFS gateway. You can also use ChainSafe’s IPFS gateway (<a href="https://ipfs.chainsafe.io/">https://ipfs.chainsafe.io</a>)</p><p>The URL should be in this format:</p><p><a href="https://{gateway/">https://{gateway</a> URL}/ipfs/{content ID}/{optional path to resource}</p><p>If we want to get our uploaded file through Chainsafe’s IPFS gateway, the URL will be:</p><p><a href="https://ipfs.chainsafe.io/ipfs/QmfPaBnVAR48UbcjF8crcX7TtJKiV8g3DJkTUsBB6pXb7e">https://ipfs.chainsafe.io/ipfs/QmfPaBnVAR48UbcjF8crcX7TtJKiV8g3DJkTUsBB6pXb7e</a></p><p>And there you have it. You now have everything you need to upload, store and download your NFT’s off-chain data using ChainSafe Storage.</p><p>Note: There are some additional storage APIs that are not covered here. View the remaining Storage Docs (<a href="https://docs.storage.chainsafe.io/">https://docs.storage.chainsafe.io</a>) for more details of each storage API.</p><h3>About ChainSafe</h3><p>ChainSafe is a leader in blockchain development and infrastructure solutions for Web3. We’re working toward a more decentralized future by building client implementations for Ethereum, Filecoin, Polkadot, and Mina. We’re also maintaining the Web3.js library, working on a Gaming SDK that connects NFTs to Unity, building a distributed cloud storage application, and bootstrapping a multi-chain bridge. To learn more, <a href="https://chainsafe.io/projects">click here</a>.</p><p><strong>Want to help build the foundations of Web3? Join us!</strong></p><p>Have a question, comment, or suggestion? Drop into our <a href="http://discord.gg/n2U6x9c">Discord</a> and join the conversation! We’re also always looking for talented people. Check out our <a href="https://chainsafe.io/careers">open positions</a> and get in touch <a href="https://emojipedia.org/right-arrow/">➡️➡️</a> careers@chainsafe.io</p><p><a href="https://chainsafe.io/">Website</a> |<a href="https://www.youtube.com/channel/UCpm0lKkxhEKWutbPt1hOgRg">Youtube</a> |<a href="https://twitter.com/chainsafeth">Twitter</a> |<a href="https://www.linkedin.com/company/chainsafe-systems">Linkedin</a> |<a href="https://github.com/ChainSafe/">GitHub</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f70988983ca" width="1" height="1" alt=""><hr><p><a href="https://medium.com/chainsafe-systems/chainsafe-storage-a-step-by-step-tutorial-on-how-to-store-and-retrieve-nft-data-f70988983ca">ChainSafe Storage — A step by step tutorial on how to store and retrieve NFT data</a> was originally published in <a href="https://medium.com/chainsafe-systems">ChainSafe</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>