<?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 Jessie Mongeon on Medium]]></title>
        <description><![CDATA[Stories by Jessie Mongeon on Medium]]></description>
        <link>https://medium.com/@jmongeon?source=rss-445b73e19dcd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ncqnjdlg0XC6GXZA_AkldQ.png</url>
            <title>Stories by Jessie Mongeon on Medium</title>
            <link>https://medium.com/@jmongeon?source=rss-445b73e19dcd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 16 Nov 2026 02:17:03 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jmongeon/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[Deep Dive: Decentralized Digital Identity]]></title>
            <link>https://jmongeon.medium.com/deep-dive-decentralized-digital-identity-c46378378cfb?source=rss-445b73e19dcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/c46378378cfb</guid>
            <category><![CDATA[ipfs]]></category>
            <category><![CDATA[deep-div]]></category>
            <category><![CDATA[unstoppable-domains]]></category>
            <category><![CDATA[decentralized-identity]]></category>
            <category><![CDATA[filebase]]></category>
            <dc:creator><![CDATA[Jessie Mongeon]]></dc:creator>
            <pubDate>Thu, 09 Mar 2023 00:26:47 GMT</pubDate>
            <atom:updated>2023-03-09T00:26:47.932Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>This guide was originally published on </em><a href="https://docs.filebase.com./"><em>https://docs.filebase.com.</em></a><em> Check out the Filebase documentation site for the latest Web3 tutorials using IPFS through Filebase.</em></blockquote><p>Learn about what a decentralized digital identity is and how it&#39;s used in Web3.</p><h3>What is a Decentralized Digital Identity?</h3><p>Decentralized digital identity refers to a form of digital identity defined by a representation of any digital information generated based on an individual’s online presence. Traditional digital identities include data such as online purchase history, social media posts, or user search history. In Web3, digital identities are taken a step further to become decentralized digital identities, also referred to as the acronym DID. In Web3, decentralized identities include a user’s crypto wallet, their cryptocurrency holdings, and any digital assets that they might own like NFTs.</p><p>In the traditional Web2 version of the Internet, most websites allow users to login using their Facebook or Google login credentials, providing a way for them to maintain one account that’s tied to several different platforms and applications. Web3 adds another layer of simplicity to websites and applications by allowing users to use their crypto wallet as their login credentials.</p><p>A crypto wallet address is a long, unique string of characters that is a mix of letters and numbers. Crypto wallet addresses are commonly used for users to send each other digital assets or cryptocurrencies. Since these addresses are hard to memorize due to their long, unique format, it can be difficult for users to use them for logging in to websites unless they have tools like web browser extensions installed.</p><p>To make decentralized digital identities human-readable and easier to share, a domain name can be minted as an NFT on a blockchain network that can be used as an alias for a crypto wallet address. This allows for human-readable names, similar to traditional account user names, that you can send to others when transferring assets.</p><p>Additionally, these domain names can be routed in the same way that traditional domain names are through the Domain Name Service (DNS) protocol. Through this configuration, decentralized digital identities can be used to host decentralized websites in addition to providing a set of authentication credentials that can be used for identity validation and verification within the Web3 ecosystem.</p><h3>Decentralized Digital Identity Providers</h3><ul><li><strong>.bit:</strong> A form of decentralized digital identity that is not limited to a single blockchain network such as other identities like ENS. .bit allows for your digital identity to be transferred between multiple blockchain addresses, through management through a single private key. For security, .bit uses proprietary smart contracts to verify signatures with different cryptographic algorithms such as secp265k1 and ed25519. It is not a .com or .net domain system and should not be equated to domain systems.</li><li><strong>Ethereum Name Service (ENS): </strong>A digital identity service that is supported on the Ethereum network. Each ENS name is a human-readable domain name that can be associated with an Ethereum wallet address to simplify sending and receiving cryptocurrencies and digital assets. ENS domains typically end in the suffix ‘.ETH’</li><li><strong>Next.ID: </strong>The first decentralized identity-as-a-service offering, or DIaaS. It provides decentralized identity aggregation that allows for the integration of Web2 and Web3 identities, resulting in a comprehensive and verifiable identity database that can be used by any open-source project or developer for decentralized application innovation.</li><li><strong>​</strong><a href="https://docs.filebase.com/web3-education/web3-tutorials/unstoppable-domains"><strong>Unstoppable Domains:</strong></a> NFT domain names minted on the Polygon network that can be used as decentralized digital identities. Unstoppable Domains offer top-level domain names such as .crypto, .nft, .bitcoin, and .wallet, in addition to many others. It supports over 275 tokens or coins, and over 315 integrations with other applications, platforms, services, and products.</li></ul><p>Want to learn more about Filebase? You can sign up for a <a href="https://filebase.com/signup">free account</a> today to get started with IPFS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c46378378cfb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stargaze: Create an NFT Collection Using IPFS and Stargaze]]></title>
            <link>https://jmongeon.medium.com/stargaze-create-an-nft-collection-using-ipfs-and-stargaze-d0c4963b343e?source=rss-445b73e19dcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0c4963b343e</guid>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[filebase]]></category>
            <category><![CDATA[stargaz]]></category>
            <category><![CDATA[ipfs-tutorial]]></category>
            <category><![CDATA[ipfs]]></category>
            <dc:creator><![CDATA[Jessie Mongeon]]></dc:creator>
            <pubDate>Wed, 08 Mar 2023 00:22:41 GMT</pubDate>
            <atom:updated>2023-03-08T00:22:41.864Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>This guide was originally published on </em><a href="https://docs.filebase.com./"><em>https://docs.filebase.com.</em></a><em> Check out the Filebase documentation site for the latest Web3 tutorials using IPFS through Filebase.</em></blockquote><p>Learn how to create an NFT Collection using IPFS and stargaze.</p><h3>What is Stargaze?</h3><p>Stargaze is the first interoperable layer-1 network for NFTs, providing features such as zero gas fees, a native NFT launchpad and marketplace, and interoperability with the Cosmos and Ethereum networks.</p><p>Read below to learn how to create an NFT Collection using IPFS and stargaze.</p><h3>Prerequisites:</h3><ul><li>​<a href="https://nodejs.org/en/download/">Install Node.js and npm</a>.</li><li>Download and install an IDE of your choice, such as <a href="https://code.visualstudio.com/">VSCode</a>.</li><li>​<a href="https://filebase.com/signup">Sign up</a> for a free Filebase account.</li></ul><h3>1. Start by opening a new terminal window. Run the following commands to clone the Stargaze public tools and create a new project:</h3><p>git clone https://github.com/public-awesome/stargaze-tools stargaze-filebase</p><p>cd stargaze-filebase</p><p>yarn install</p><h3>2. Create a testnet account with the command:</h3><p>yarn account</p><p>Copy the output of this command, you will need it in the next step.</p><h3>3. Make a copy of the config.example.js file called config.js.</h3><p>Open the config.js file and fill in the mnemonic and address fields with the information from the previous command’s output.</p><pre>//// ACCOUNT INFO ////<br><br>// The account seed phrase to use for deployment<br><br>mnemonic:<br><br>&#39;enlist hip relief stomach skate base shallow young switch frequent cry park&#39;,<br><br>// Your STARS address<br><br>account: &#39;stars1...&#39;,</pre><h3>4. Receive some testnet funds by joining the <a href="https://discord.gg/stargaze">Stargaze Discord</a> server and requesting testnet stars in the #faucet channel.</h3><h3>5. Next, we need to create an IPFS bucket on Filebase.</h3><p>To do this, navigate to <a href="https://console.filebase.com/">console.filebase.com</a>. If you don’t have an account already, <a href="http://filebase.com/signup">sign up</a>, then log in.</p><h3>6. Select ‘Buckets’ from the left sidebar menu, or navigate to.</h3><p>Select ‘Create Bucket’ in the top right corner to create a new bucket for your NFTs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fuETLyPTZR211Xuj" /></figure><h3>7. Enter a bucket name and choose the IPFS storage network to create the bucket.</h3><p><em>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.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/0*w8rT3sB6PN4Ekfxe" /></figure><h3>8. Now, upload your NFTs to Filebase using the web console and selecting ‘Folder’, then select the folder that contains your NFT files.</h3><p>These files need to be named in sequential order, such as 0.png, 1.png, 2.png, etc.</p><p>You may also include metadata.json files in this folder, if desired. The .json file for each NFT should be in the format:</p><pre>{<br><br>&quot;id&quot;: 0,<br>&quot;description&quot;: &quot;Filebase NFT&quot;,<br>&quot;external_url&quot;: &quot;https://forum.openzeppelin.com/t/create-an-nft-and-deploy-to-a-public-testnet-using-truffle/2961&quot;,<br>&quot;image&quot;: &quot;https://ipfs.filebase.com/ipfs/IPFS_CID&quot;,<br>&quot;name&quot;: &quot;My Filebase NFT 0&quot;<br><br>}</pre><h3>9. You will see your folder uploaded as a single object:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QosKTMUA4_GiUPw_" /></figure><h3>10. Copy the CID of your folder:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QbGpFyZ9MGlaFzSl" /></figure><h3>11. Navigate to your IPFS Folder using the Filebase IPFS gateway to see your folder’s files:</h3><p><a href="https://ipfs.filebase.io/ipfs/IPFS_CID">https://ipfs.filebase.io/ipfs/IPFS_CID</a></p><h3>12. In your config.js file, configure the following lines to reflect your NFT collection’s information:</h3><pre>//// COLLECTION INFO ////<br><br>// The name of your collection<br><br>name: &#39;Collection Name&#39;,<br><br>// The 3-7 letter ticker symbol for your collection<br><br>symbol: &#39;SYM&#39;,<br><br>// Project description<br><br>description: &#39;An NFT Collection&#39;,<br><br>// Link to image to use as the main image for the collection.<br><br>// Either IPFS or valid http links allowed. Gif compatible.<br><br>// (at least 500 x 500 pixels)<br><br>image:<br><br>&#39;ipfs://IPFS_CID/1.png&#39;,</pre><p>Replace IPFS_CID with your IPFS folder’s CID that you copied previously.</p><h3>13. Then, configure the following lines to determine mint price, number of NFTs allowed per wallet, and other factors:</h3><pre>//// MINTER CONTRACT ////<br><br>// The base URI to be used to programatically mint tokens<br><br>baseTokenUri: &#39;ipfs://...&#39;,<br><br>// The number of tokens to mint<br><br>numTokens: 100,<br><br>// The price (in STARS) for your NFTs (minimum 50 STARS)<br><br>unitPrice: 100,<br><br>// The max amount of NFTs an address can mint<br><br>perAddressLimit: 1,<br><br>// The date when the sale goes live<br><br>// If whitelist is enabled, only whitelisted addresses will be able to purchase<br><br>// startTime in ISO format<br><br>startTime: &#39;2022-03-11T21:00:00.000Z&#39;,<br><br>// The minter contract address<br><br>// Get this after running `yarn minter`<br><br>minter: &#39;stars1...&#39;,<br><br>// SG721 contract address<br><br>// Get this after running `yarn minter`<br><br>sg721: &#39;stars1...&#39;,</pre><h3>14. Save your configuration file.</h3><h3>15. To whitelist an address or list of addresses, use the following command:</h3><p>yarn whitelist --add &#39;address1,address2,address3,...address100&#39;</p><h3>16. Next, get your minter’s contract using the following command:</h3><p>yarn minter</p><p>Then, copy the first contract_address value, and input it for the minter contract address, then copy the second contract_address value and input it for the SG721 contract address in the config.js file:</p><pre>// The minter contract address<br><br>// Get this after running `yarn minter`<br><br>minter: &#39;stars1...&#39;,<br><br>// SG721 contract address<br><br>// Get this after running `yarn minter`<br><br>sg721: &#39;stars1...&#39;,</pre><h3>17. To mint an NFT to a specific address, use the command:</h3><p>yarn mint --to [address]</p><p>This will mint the next sequential token ID to the specified address.</p><h3>18. To verify that everything is working as expected, you can view testnet transactions using the <a href="https://stargaze-testnet-explorer.pages.dev/stargaze">Stargaze testnet explorer</a>.</h3><h3>19. If you’re ready to launch this project on the Stargaze mainnet network, you can follow <a href="https://docs.stargaze.zone/guides/readme/9.-launching-on-mainnet">this tutorial.</a>​</h3><p>Want to learn more about Filebase? You can sign up for a <a href="https://filebase.com/signup">free account</a> today to get started with IPFS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0c4963b343e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Starknet: Create a HardHat Project Using A Starknet Plugin Hosted On IPFS]]></title>
            <link>https://jmongeon.medium.com/starknet-create-a-hardhat-project-using-a-starknet-plugin-hosted-on-ipfs-9e25d8afc022?source=rss-445b73e19dcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/9e25d8afc022</guid>
            <category><![CDATA[ipfs]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[hard-hat]]></category>
            <category><![CDATA[filebase]]></category>
            <category><![CDATA[starknet]]></category>
            <dc:creator><![CDATA[Jessie Mongeon]]></dc:creator>
            <pubDate>Tue, 07 Mar 2023 00:22:41 GMT</pubDate>
            <atom:updated>2023-03-07T00:22:41.222Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>This guide was originally published on </em><a href="https://docs.filebase.com./"><em>https://docs.filebase.com.</em></a><em> Check out the Filebase documentation site for the latest Web3 tutorials using IPFS through Filebase.</em></blockquote><p>Learn how to create a Hardhat project with a Starknet plugin that’s hosted on IPFS.</p><h3>What is Starknet?</h3><p>Starknet is a permissionless ZK-rollup blockchain network that provides connectivity and functionality for dApps to achieve unlimited scalability using the Ethereum network.</p><p>Read below to learn how to create a Hardhat project with a Starknet plugin that’s hosted on IPFS.</p><h3>Prerequisites:</h3><ul><li>​<a href="https://hardhat.org/hardhat-runner/docs/getting-started">Download and install</a> Hardhat.</li><li>​<a href="https://filebase.com/signup">Sign up</a> for a free Filebase account.</li><li>Have your Filebase Access and Secret Keys. Learn how to view your access keys <a href="https://docs.filebase.com/getting-started-guides/getting-started-guide#working-with-access-keys">here</a>.</li></ul><h3>1. First, we need a Filebase IPFS bucket.</h3><p>To do this, navigate to <a href="https://console.filebase.com/">console.filebase.com</a>. If you don’t have an account already, <a href="http://filebase.com/signup">sign up</a>, then log in.</p><h3>2. Select ‘Buckets’ from the left side bar menu, or navigate to <a href="http://console.filebase.com/buckets">console.filebase.com/buckets</a>.</h3><p>Select ‘Create Bucket’ in the top right corner to create a new bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Lo_PNO7d1Eg2qJmN" /></figure><h3>3. Enter a bucket name and choose the IPFS storage network to create the bucket.</h3><p><em>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.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/0*8K1F4r8D41ZQPD54" /></figure><h3>4. Next, <a href="https://github.com/s3fs-fuse/s3fs-fuse">download and install</a> S3FS-FUSE on a Linux or macOS system.</h3><h3>5. Set up an Access Key file for use with S3FS-FUSE.</h3><p>Set up a credentials file for S3FS at ${HOME}/.passwd-s3fs. You will need to save your Filebase Access and Secret keys to this file and give it owner permissions. You can do so with the following commands:</p><p>echo ACCESS_KEY_ID:SECRET_ACCESS_KEY &gt; ${HOME}/.passwd-s3fs</p><p>chmod 600 ${HOME}/.passwd-s3fs</p><p><strong>ACCESS_KEY_ID</strong> is your Filebase Access key, and <strong>SECRET_ACCESS_KEY</strong> is your Filebase Secret key. For more information on Filebase access keys, see <a href="https://docs.filebase.com/getting-started-guides/getting-started-guide#working-with-access-keys">here</a>.</p><h3>6. Mount your bucket.</h3><p>You can mount a Filebase IPFS bucket with the command:</p><p>s3fs mybucket /path/to/mountpoint -o passwd_file=${HOME}/.passwd-s3fs -o url=https://s3.filebase.com</p><ul><li><strong>mybucket:</strong> name of your Filebase bucket</li><li><strong>/path/to/mountpoint</strong></li></ul><h3>7. Now, navigate into the mounted Filebase bucket.</h3><p>cd /path/to/mounted/bucket</p><h3>8. Next, git clone the Starknet Hardhat project template:</h3><p>git clone <a href="https://github.com/Shard-Labs/starknet-hardhat-example.git">https://github.com/Shard-Labs/starknet-hardhat-example.git</a></p><h3>9. Navigate into the project’s directory:</h3><p>cd starknet-hardhat-example</p><h3>10. Install the project’s dependencies:</h3><p>npm install @nomiclabs/hardhat-docker</p><p>npm ci</p><h3>11. Compile a smart contract to test the project’s functionality:</h3><p>npx hardhat starknet-compile contracts/contract.cairo</p><h3>12. Then, run a test to test out your smart contract:</h3><p>npx hardhat test test/quick-test.ts</p><p>Want to learn more about Filebase? You can sign up for a <a href="https://filebase.com/signup">free account</a> today to get started with IPFS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9e25d8afc022" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tezos: Create an NFT on the Tezos Network using IPFS on Filebase]]></title>
            <link>https://jmongeon.medium.com/tezos-create-an-nft-on-the-tezos-network-using-ipfs-on-filebase-1da4ac1e28af?source=rss-445b73e19dcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/1da4ac1e28af</guid>
            <category><![CDATA[tezos]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[ipfs]]></category>
            <category><![CDATA[filebase]]></category>
            <category><![CDATA[ipfs-tutorial]]></category>
            <dc:creator><![CDATA[Jessie Mongeon]]></dc:creator>
            <pubDate>Sat, 04 Mar 2023 00:16:38 GMT</pubDate>
            <atom:updated>2023-03-04T00:16:38.872Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>This guide was originally published on </em><a href="https://docs.filebase.com./"><em>https://docs.filebase.com.</em></a><em> Check out the Filebase documentation site for the latest Web3 tutorials using IPFS through Filebase.</em></blockquote><p>Learn how to create an NFT on Tezos with IPFS on Filebase.</p><h3>What is Tezos?</h3><p>Tezos is an open-source, decentralized blockchain network that serves as a platform for executing peer-to-peer transactions and deploying smart contracts.</p><p>This tutorial uses a pre-compiled FA2 NFT contract that uses a command line interface to originate and interact with the NFT contracts. FA2 is a token standard (TZIP-12) on the Tezos network. FA2 provides an API standard for token transfers, balance inquiries, and managing token metadata.</p><h3>Prerequisites:</h3><ul><li>​<a href="https://docs.npmjs.com/downloading-and-installing-node-js-and-npm">Download and install</a> Node.js.and npm.</li><li>​<a href="https://www.docker.com/">Download and install</a> Docker.</li><li>​<a href="https://github.com/oxheadalpha/nft-tutorial/tree/master/packages/tznft">Download</a> the Github repository for this project.</li><li>​<a href="https://filebase.com/signup">Sign up</a> for a free Filebase account.</li></ul><h3>1. First, we need an image to use as an NFT. We’ll start by uploading an image to Filebase for us to use.</h3><p>To do this, navigate to <a href="https://console.filebase.com/">console.filebase.com</a>. If you don’t have an account already, <a href="http://filebase.com/signup">sign up</a>, then log in.</p><h3>2. Select ‘Buckets’ from the left side bar menu, or navigate to <a href="http://console.filebase.com/buckets">console.filebase.com/buckets</a>.</h3><p>Select ‘Create Bucket’ in the top right corner to create a new bucket for your NFTs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*giAu2RgBQXUMrZ1p" /></figure><h3>3. Enter a bucket name and choose the IPFS storage network to create the bucket.</h3><p><em>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.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/0*uV1UZHsJIIzBiKJZ" /></figure><h3>4. Next, select the bucket from your list of buckets, then select ‘Upload’ in the top right corner to upload an image file.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*DcJEInLHNMyXVFd5" /></figure><h3>5. Select an image to be uploaded.</h3><p>Once uploaded, it will be listed in the bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*M4WnktPzZzCpeGOQ" /></figure><h3>6. 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.</h3><p>Choose the method you prefer, and take note of the IPFS CID.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LzpF7peCMOY4Ayk2" /></figure><h3>7. Open a command line interface and create a new directory for your project:</h3><p>mkdir nft-tutorial</p><p>cd nft-tutorial</p><h3>8. Install the @oxheadalpha/tznft npm package:</h3><p>npm install -g <a href="https://github.com/@oxheadalpha/nft-tutorial.git">https://github.com/@oxheadalpha/nft-tutorial.git</a></p><h3>9. Initialize the tznft tool:</h3><p>tznft init</p><h3>10. Confirm the initialization was successful by viewing the default active network.</h3><p>The value returned should be ‘sandbox’:</p><p>tznft show-network</p><h3>11. Next, bootstrap the Tezos network with the command:</h3><p>tznft bootstrap</p><p>If this is the first time you are bootstrapping the sandbox network, Docker will automatically download the Flextesa docker image for use in the project.</p><h3>12. Now it’s time to mint an NFT token. The command syntax for minting is as follows:</h3><p>tznft mint &lt;owner_alias&gt; --tokens &lt;token_meta_list&gt;</p><p>Tznft comes with 2 default accounts for use — ‘bob’ and ‘alice’. For example, to mint an NFT called ‘Filebase Robot’ that is owned by the default account ‘bob’, you would use this command:</p><p>tznft mint bob --tokens &#39;0, T1, Filebase Robot&#39;</p><p>This command will return the NFT contract’s token ID. Take note of this for the next step.</p><h3>13. To inspect the NFT contract and the associated token metadata, we can use the following command syntax:</h3><p>tznft show-meta --nft &lt;nft_address&gt; --signer &lt;alias&gt; --tokens &lt;token_id_list&gt;</p><p>For example, to view the NFT contract for the contract created in the last step, the command would be:</p><p>tznft show-meta --nft E6S9t44fKR9Uo5KT1XP3RrAfqHvHXu9Cy7fh --signer bob --tokens 0 1</p><h3>14. To inspect the token balance for our NFT contract, we can use the following syntax:</h3><p>tznft show-balance --nft &lt;nft_address&gt; --signer &lt;alias&gt; --owner &lt;alias&gt; --tokens &lt;token_id_list&gt;</p><p>For example, to view the balance of the NFT we just created for the account bob, we can use the command:</p><p>tznft show-balance --nft E6S9t44fKR9Uo5KT1XP3RrAfqHvHXu9Cy7fh --signer bob --owner bob --tokens 0</p><p>The output should resemble the following:</p><p>querying NFT contract E6S9t44fKR9Uo5KT1XP3RrAfqHvHXu9Cy7fh using balance inspector H1ytG7saMZ34sfdKT1Pezr7JjgmrPcPhpkbk</p><p>requested NFT balances:</p><p>owner: tSZAXWvGsGwVJqUtz1YPSCGWXwBdTncK2aCc token: 0 balance: 1</p><h3>15. Now let’s create an NFT with external metadata using the IPFS CID we recorded in the beginning of this tutorial from our Filebase upload.</h3><p>To use the IPFS CID, we’ll add a fourth parameter to our token mint command:</p><p>tznft mint bob -t &#39;0, Filebase, Filebase Robot, A44RPciW5pM4iyqRGQmRyTc9KbD7ZSkmEf4e7fk6rhbyvj&#39;</p><p>Then, we can inspect the new token’s metadata to see the IPFS CID listed:</p><p>tznft show-meta -s bob --nft 3w1x23oiC31B8KT1SgzbcfTtdHRV8qHNG3hd --tokens 0</p><p>Which will return the following output:</p><p>token_id: 0 symbol: Filebase name: Filebase Robot extras: { ipfs_cid=A44RPciW5pM4iyqRGQmRyTc9KbD7ZSkmEf4e7fk6rhbyvj }</p><p>You can view the IPFS File by using the Filebase IPFS Gateway with the IPFS CID. For example, to view this image, you can go to:</p><p><a href="https://ipfs.filebase.io/ipfs/A44RPciW5pM4iyqRGQmRyTc9KbD7ZSkmEf4e7fk6rhbyvj">https://ipfs.filebase.io/ipfs/A44RPciW5pM4iyqRGQmRyTc9KbD7ZSkmEf4e7fk6rhbyvj</a></p><h3>16. Up until now, we have used the sandbox network for these commands.</h3><p>You can connect to different Tezos networks by using the command:</p><p>Tznft set-network [network-name]</p><p>From here, you can create and mint NFTs right from the command line on any of the Tezos networks.</p><p>Want to learn more about Filebase? You can sign up for a <a href="https://filebase.com/signup">free account</a> today to get started with IPFS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1da4ac1e28af" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[useDApp: Create a dApp using useDApp and IPFS]]></title>
            <link>https://jmongeon.medium.com/usedapp-create-a-dapp-using-usedapp-and-ipfs-9a4d202621c3?source=rss-445b73e19dcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a4d202621c3</guid>
            <category><![CDATA[filebase]]></category>
            <category><![CDATA[dapps]]></category>
            <category><![CDATA[ipfs]]></category>
            <category><![CDATA[filebase-tutorial]]></category>
            <category><![CDATA[ipfs-tutorial]]></category>
            <dc:creator><![CDATA[Jessie Mongeon]]></dc:creator>
            <pubDate>Fri, 03 Mar 2023 00:16:38 GMT</pubDate>
            <atom:updated>2023-03-03T00:16:38.500Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>This guide was originally published on </em><a href="https://docs.filebase.com./"><em>https://docs.filebase.com.</em></a><em> Check out the Filebase documentation site for the latest Web3 tutorials using IPFS through Filebase.</em></blockquote><p>Learn how to create a dApp using useDApp and IPFS.</p><h3>What is useDApp?</h3><p>useDApp is a framework designed for rapid dApp development, built using the Ethereum blockchain and React. UseDApp makes it simple to implement features such as connecting your wallet, switching between networks, and tracking transaction history within your dApp. It offers a number of templates and example apps to help you get started.</p><p>Read below to learn how to create a dApp using useDApp and IPFS.</p><h3>Prerequisites:</h3><ul><li>A crypto wallet, such as <a href="https://metamask.io/">MetaMask</a>.</li><li>​<a href="https://nodejs.org/en/download/">Install Node.js and npm</a>.</li><li>​<a href="https://classic.yarnpkg.com/lang/en/docs/install/">Install yarn.</a>​</li><li>Download and install an IDE of your choice, such as <a href="https://code.visualstudio.com/">VSCode</a>.</li><li>​<a href="https://filebase.com/signup">Sign up</a> for a free Filebase account.</li></ul><h3>1. First, we need a Filebase IPFS bucket.</h3><p>To do this, navigate to <a href="https://console.filebase.com/">console.filebase.com</a>. If you don’t have an account already, <a href="http://filebase.com/signup">sign up</a>, then log in.</p><h3>2. Select ‘Buckets’ from the left side bar menu, or navigate to <a href="http://console.filebase.com/buckets">console.filebase.com/buckets</a>.</h3><p>Select ‘Create Bucket’ in the top right corner to create a new bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*vWD95_f4Bm8qwsk7" /></figure><h3>3. Enter a bucket name and choose the IPFS storage network to create the bucket.</h3><p><em>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.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/0*n0sUW2LDurqUNOPS" /></figure><h3>4. Next, upload some images you’d like to display on your dApp.</h3><p>These can be icons, photographs, or pieces of artwork. In this tutorial, we’ll upload a logo, a photograph, and a piece of art, for a total of 3 objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*orweEu9M5b-eOGQ3" /></figure><h3>5. Take note of the CID for each of these objects.</h3><p>The CID can be found under the ‘CID’ column, or within the metadata of each object. We’ll reference these objects by their CID within our dApp.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kjvpHPmHgInFhFok" /></figure><h3>6. Open a terminal or command-line interface.</h3><p>Enter the following yarn command to create a new directory called my-dapp and install the default files for an Ethereum dApp:</p><p>yarn create eth-app my-dapp</p><h3>7. Start your dApp with the following command:</h3><p>yarn react-app:start</p><h3>8. Your app will be running at <a href="http://localhost:3000.">http://localhost:3000.</a></h3><p>By default, it’ll look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*S7SbcULseTMBc1yR" /></figure><h3>9. Navigate to the my-dapp/packages/react-app/src/App.js file.</h3><p>Open this file in your preferred IDE to edit. Replace the existing content with the following:</p><pre>import { useQuery } from &quot;@apollo/client&quot;;<br>import { Contract } from &quot;@ethersproject/contracts&quot;;<br>import { shortenAddress, useCall, useEthers, useLookupAddress } from &quot;@usedapp/core&quot;;<br>import React, { useEffect, useState } from &quot;react&quot;;<br><br>import { Body, Button, Container, Header, Image, Link } from &quot;./components&quot;;<br><br>import { addresses, abis } from &quot;@my-app/contracts&quot;;<br>import GET_TRANSFERS from &quot;./graphql/subgraph&quot;;<br><br>function WalletButton() {<br>  const [rendered, setRendered] = useState(&quot;&quot;);<br><br>  const ens = useLookupAddress();<br>  const { account, activateBrowserWallet, deactivate, error } = useEthers();<br><br>  useEffect(() =&gt; {<br>    if (ens) {<br>      setRendered(ens);<br>    } else if (account) {<br>      setRendered(shortenAddress(account));<br>    } else {<br>      setRendered(&quot;&quot;);<br>    }<br>  }, [account, ens, setRendered]);<br><br>  useEffect(() =&gt; {<br>    if (error) {<br>      console.error(&quot;Error while connecting wallet:&quot;, error.message);<br>    }<br>  }, [error]);<br><br>  return (<br>    &lt;Button<br>      onClick={() =&gt; {<br>        if (!account) {<br>          activateBrowserWallet();<br>        } else {<br>          deactivate();<br>        }<br>      }}<br>    &gt;<br>      {rendered === &quot;&quot; &amp;&amp; &quot;Connect Wallet&quot;}<br>      {rendered !== &quot;&quot; &amp;&amp; rendered}<br>    &lt;/Button&gt;<br>  );<br>}<br><br>function App() {<br>  // Read more about useDapp on &lt;https://usedapp.io/&gt;<br>  const { error: contractCallError, value: tokenBalance } =<br>    useCall({<br>       contract: new Contract(addresses.ceaErc20, abis.erc20),<br>       method: &quot;balanceOf&quot;,<br>       args: [&quot;0x3f8CB69d9c0ED01923F11c829BaE4D9a4CB6c82C&quot;],<br>    }) ?? {};<br><br>  const { loading, error: subgraphQueryError, data } = useQuery(GET_TRANSFERS);<br><br>  useEffect(() =&gt; {<br>    if (subgraphQueryError) {<br>      console.error(&quot;Error while querying subgraph:&quot;, subgraphQueryError.message);<br>      return;<br>    }<br>    if (!loading &amp;&amp; data &amp;&amp; data.transfers) {<br>      console.log({ transfers: data.transfers });<br>    }<br>  }, [loading, subgraphQueryError, data]);<br><br>  return (<br>    &lt;Container&gt;<br>      &lt;Header&gt;<br>        &lt;WalletButton /&gt;<br>      &lt;/Header&gt;<br>      &lt;Body&gt;<br>        &lt;Image src={&quot;https://ipfs.filebase.io/ipfs/IPFS_CID&quot;} alt=&quot;dapp-logo&quot; /&gt;<br>        &lt;p&gt;<br>          Welcome to your dApp, powered by useDapp and IPFS!<br>        &lt;/p&gt;<br>        &lt;p&gt;<br>          Check out this NFT Artwork!<br>        &lt;/p&gt;<br>          &lt;Image src={&quot;https://ipfs.filebase.io/ipfs/IPFS_CID&quot;} /&gt;<br>        &lt;p&gt;<br>          Look at this photo of my dogs!<br>          &lt;/p&gt;<br>          &lt;Image src={&quot;https://ipfs.filebase.io/ipfs/IPFS_CID&quot;} /&gt;<br>      &lt;/Body&gt;<br>    &lt;/Container&gt;<br>  );<br>}<br><br>export default App;</pre><p>Replace the values <strong>IPFS_CID</strong> with the CIDs from the IPFS objects you uploaded to Filebase.</p><p>Here’s what your app should look like after:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nONdVDurnxjN3ZK6" /></figure><p>The exciting thing about this dApp is that it includes the functionality to connect your wallet to the app, as seen by the ‘Connect Wallet’ button in the top right corner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mOn5igDqy29p45Sx" /></figure><p>This means that from here, you can design a dApp that utilizes this button, allowing users to connect their wallet to the app and display assets, check wallet balances, and even send transactions!</p><p>Want to learn more about Filebase? You can sign up for a <a href="https://filebase.com/signup">free account</a> today to get started with IPFS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a4d202621c3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unstoppable Domains: IPFS Configuration]]></title>
            <link>https://jmongeon.medium.com/unstoppable-domains-ipfs-configuration-805b336069b1?source=rss-445b73e19dcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/805b336069b1</guid>
            <category><![CDATA[unstoppable-domains]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[ipfs-tutorial]]></category>
            <category><![CDATA[filebase]]></category>
            <category><![CDATA[ipfs]]></category>
            <dc:creator><![CDATA[Jessie Mongeon]]></dc:creator>
            <pubDate>Thu, 02 Mar 2023 00:12:39 GMT</pubDate>
            <atom:updated>2023-03-02T00:12:39.323Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>This guide was originally published on </em><a href="https://docs.filebase.com./"><em>https://docs.filebase.com.</em></a><em> Check out the Filebase documentation site for the latest Web3 tutorials using IPFS through Filebase.</em></blockquote><p>Learn how to configure Unstoppable Domains for use with Filebase.</p><h3>What are Unstoppable Domains?</h3><p>Unstoppable Domains are NFT domains that are associated with a crypto wallet and minted on blockchain networks, just like other forms of NFTs like image or music files. Unstoppable Domains can be used with DNS CNAME records like traditional domain names, meaning you can use an Unstoppable Domain as a domain name for a personal website or blog.</p><p>Read below to learn how to use Unstoppable Domains with Filebase.</p><h3>Prerequisites:</h3><ul><li>Purchase and mint an <a href="https://unstoppabledomains.com/">Unstoppable Domain.</a>​</li><li>​<a href="https://filebase.com/signup">Sign up</a> for a free Filebase account.</li><li>Create a Filebase IPFS bucket.</li><li>Upload website files, such as index.html, and any other website source files into this Filebase IPFS bucket as a folder. Learn more about uploading folders to IPFS <a href="https://docs.filebase.com/storage-networks/ipfs#uploading-a-folder-to-ipfs-through-the-filebase-web-console">here.</a>​</li></ul><h3>1. Navigate back to the Unstoppable Domains console, then navigate to your ‘My Domains’ page.</h3><p>Select ‘Manage’ next to the domain you want to use with your website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Yh628v5UlFNgjhqj" /></figure><h3>2. Select ‘Website’ from the left side bar menu.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wH7karpGIbOSUtU5" /></figure><h3>3. Select ‘Link Website’ under ‘Custom website linking’:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fl7QvN1HkNR1z-fG" /></figure><h3>4. Paste in your IPFS CID for your folder that was uploaded to Filebase.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/0*7Gr9yRMQSu4RwA43" /></figure><h3>5. Then select ‘Launch Website’. You will be prompted to authorize the transaction through your Cryptowallet.</h3><p>Once authorized, your domain will display ‘Website Launched’ followed by the CID of your folder.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/0*PQVGCSBoDGBTrdk2" /></figure><p>Want to learn more about Filebase? You can sign up for a <a href="https://filebase.com/signup">free account</a> today to get started with IPFS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=805b336069b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Waffle: Deploy a Smart Contract with Waffle That’s Stored on IPFS]]></title>
            <link>https://jmongeon.medium.com/waffle-deploy-a-smart-contract-with-waffle-thats-stored-on-ipfs-b3e9eb304cc6?source=rss-445b73e19dcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3e9eb304cc6</guid>
            <category><![CDATA[waffle]]></category>
            <category><![CDATA[ipfs]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[filebase]]></category>
            <dc:creator><![CDATA[Jessie Mongeon]]></dc:creator>
            <pubDate>Wed, 01 Mar 2023 00:12:37 GMT</pubDate>
            <atom:updated>2023-03-01T00:12:37.766Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>This guide was originally published on </em><a href="https://docs.filebase.com./"><em>https://docs.filebase.com.</em></a><em> Check out the Filebase documentation site for the latest Web3 tutorials using IPFS through Filebase.</em></blockquote><p>Learn how to deploy a smart contract with Waffle that’s stored on IPFS.</p><h3>What is Waffle?</h3><p>Waffle is is a library comparable to Truffle that is used to write and test smart contracts. Waffle is compatible for use with ethers-js.</p><p>Read below to deploy a smart contract with Waffle that’s stored on IPFS.</p><h3>Prerequisites:</h3><ul><li>​<a href="https://nodejs.org/en/download/">Install Node.js and npm</a>.</li><li>Download and install an IDE of your choice, such as <a href="https://code.visualstudio.com/">VSCode</a>.</li><li>​<a href="https://filebase.com/signup">Sign up</a> for a free Filebase account.</li><li>Have your Filebase Access and Secret Keys. Learn how to view your access keys <a href="https://docs.filebase.com/getting-started-guides/getting-started-guide#working-with-access-keys">here</a>.</li><li>Create a Filebase IPFS Bucket. Learn how to create a bucket <a href="https://docs.filebase.com/getting-started-guides/getting-started-guide#creating-and-working-with-buckets">here</a>.</li></ul><h3>1. First, we need a Filebase IPFS bucket.</h3><p>To do this, navigate to <a href="https://console.filebase.com/">console.filebase.com</a>. If you don’t have an account already, <a href="http://filebase.com/signup">sign up</a>, then log in.</p><h3>2. Select ‘Buckets’ from the left side bar menu, or navigate to <a href="http://console.filebase.com/buckets">console.filebase.com/buckets</a>.</h3><p>Select ‘Create Bucket’ in the top right corner to create a new bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SDyHr-ulxLe-6czJ" /></figure><h3>3. Enter a bucket name and choose the IPFS storage network to create the bucket.</h3><p><em>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.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/0*0IBY3UJefNn5OOpb" /></figure><h3>4. Next, <a href="https://github.com/s3fs-fuse/s3fs-fuse">download and install</a> S3FS-FUSE on a Linux or macOS system.</h3><h3>5. Open a terminal window. Then, set up an Access Key file for use with S3FS-FUSE.</h3><p>Set up a credentials file for S3FS at ${HOME}/.passwd-s3fs. You will need to save your Filebase Access and Secret keys to this file and give it owner permissions. You can do so with the following commands:</p><p>echo ACCESS_KEY_ID:SECRET_ACCESS_KEY &gt; ${HOME}/.passwd-s3fs</p><p>chmod 600 ${HOME}/.passwd-s3fs</p><p><strong>ACCESS_KEY_ID</strong> is your Filebase Access key, and <strong>SECRET_ACCESS_KEY</strong> is your Filebase Secret key. For more information on Filebase access keys, see <a href="https://docs.filebase.com/getting-started-guides/getting-started-guide#working-with-access-keys">here</a>.</p><h3>6. Mount your bucket.</h3><p>You can mount a Filebase IPFS bucket with the command:</p><p>s3fs mybucket /path/to/mountpoint -o passwd_file=${HOME}/.passwd-s3fs -o url=https://s3.filebase.com</p><ul><li><strong>mybucket:</strong> name of your Filebase bucket</li><li><strong>/path/to/mountpoint</strong></li></ul><h3>7. Now, navigate into the mounted Filebase bucket.</h3><p>cd /path/to/mounted/bucket</p><h3>8. Create a new folder for your project, then navigate inside that folder:</h3><p>mkdir waffle-tutorial</p><p>cd waffle-tutorial</p><h3>9. Next, install the ethereum-waffle package:</h3><p>npm install --save-dev ethereum-waffle</p><h3>10. Install the OpenZeppelin package, we’ll be using this for our smart contract functionality:</h3><p>npm install @openzeppelin/contracts@^4.6.0 -D</p><h3>11. Make a new directory called src, then create a new file called BasicToken.sol. Open this file in your IDE, and insert the following content:</h3><pre>// SPDX-License-Identifier: MIT<br><br>pragma solidity ^0.8.0;<br>import &quot;@openzeppelin/contracts/token/ERC20/ERC20.sol&quot;;<br><br>// Example class - a mock class using delivering from ERC20<br><br>contract BasicToken is ERC20 {<br>constructor(uint256 initialBalance) ERC20(&quot;Basic&quot;, &quot;BSC&quot;) {<br>_mint(msg.sender, initialBalance);<br>}<br>}</pre><h3>12. Then, at the root of your project, create a new file called package.json. Insert the following content:</h3><pre>{<br>&quot;scripts&quot;: {<br>&quot;build&quot;: &quot;waffle&quot;<br>}<br>}</pre><h3>13. Create another new file called waffle.json that contains the following content:</h3><pre>{<br>&quot;compilerType&quot;: &quot;solcjs&quot;,<br>&quot;compilerVersion&quot;: &quot;0.8.13&quot;,<br>&quot;sourceDirectory&quot;: &quot;./src&quot;,<br>&quot;outputDirectory&quot;: &quot;./build&quot;<br>}</pre><h3>14. Create new directories called build and contracts at the root of your project, since they are used in the waffle.json file.</h3><p>mkdir build</p><p>mkdir contracts</p><h3>15. Then build the project with the command:</h3><p>npm run build</p><h3>16. Now it’s time to test the smart contract. Run the following command to install Chai to be used for a test environment:</h3><p>npm install --save-dev mocha chai</p><h3>17. Make another new directory in the root of your project called test, then create a new file called BasicToken.test.ts in this directory. Open this new file in your IDE, and insert the following content:</h3><pre>import {expect, use} from &#39;chai&#39;;<br>import {Contract} from &#39;ethers&#39;;<br>import {deployContract, MockProvider, solidity} from &#39;ethereum-waffle&#39;;<br>import BasicToken from &#39;../build/BasicToken.json&#39;;<br><br>use(solidity);<br>describe(&#39;BasicToken&#39;, () =&gt; {<br>const [wallet, walletTo] = new MockProvider().getWallets();<br>let token: Contract;<br>beforeEach(async () =&gt; {<br>token = await deployContract(wallet, BasicToken, [1000]);<br>});<br><br>it(&#39;Assigns initial balance&#39;, async () =&gt; {<br>expect(await token.balanceOf(wallet.address)).to.equal(1000);<br>});<br><br>it(&#39;Transfer adds amount to destination account&#39;, async () =&gt; {<br>await token.transfer(walletTo.address, 7);<br>expect(await token.balanceOf(walletTo.address)).to.equal(7);<br>});<br><br>it(&#39;Transfer emits event&#39;, async () =&gt; {<br>await expect(token.transfer(walletTo.address, 7))<br>.to.emit(token, &#39;Transfer&#39;)<br>.withArgs(wallet.address, walletTo.address, 7);<br>});<br><br>it(&#39;Can not transfer above the amount&#39;, async () =&gt; {<br>await expect(token.transfer(walletTo.address, 1007)).to.be.reverted;<br>});<br><br>it(&#39;Can not transfer from empty account&#39;, async () =&gt; {<br>const tokenFromOtherWallet = token.connect(walletTo);<br>await expect(tokenFromOtherWallet.transfer(wallet.address, 1))<br>.to.be.reverted;<br>});<br><br>it(&#39;Calls totalSupply on BasicToken contract&#39;, async () =&gt; {<br>await token.totalSupply();<br>expect(&#39;totalSupply&#39;).to.be.calledOnContract(token);<br>});<br><br>it(&#39;Calls balanceOf with sender address on BasicToken contract&#39;, async () =&gt; {<br>await token.balanceOf(wallet.address);<br>expect(&#39;balanceOf&#39;).to.be.calledOnContractWith(token, [wallet.address]);<br>});<br><br>});</pre><h3>18. Open your package.json file and insert the following content:</h3><pre>{<br>&quot;scripts&quot;: {<br>&quot;build&quot;: &quot;waffle&quot;,<br>&quot;test&quot;: &quot;NODE_ENV=test mocha&quot;,<br>}<br>}</pre><h3>19. Then, add a new file called .mocharc.json in the root of your project:</h3><pre>{<br>&quot;spec&quot;: &quot;test/**/*.test.{js,ts}&quot;<br>}</pre><h3>20. Then, run your test with:</h3><p>npm test</p><p>This test should return the following output:</p><pre>BasicToken<br>✓ Assigns initial balance (84ms)<br>✓ Transfer adds amount to destination account (404ms)<br>✓ Transfer emits event (219ms)<br>✓ Can not transfer above the amount (32ms)<br>✓ Can not transfer from empty account (95ms)<br>✓ Calls totalSupply on BasicToken contract (67ms)<br>✓ Calls balanceOf with sender address on BasicToken contract (75ms)<br>7 passing (8s)</pre><p>Want to learn more about Filebase? You can sign up for a <a href="https://filebase.com/signup">free account</a> today to get started with IPFS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3e9eb304cc6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Walt.id: Mint an NFT with Walt.id and Filebase]]></title>
            <link>https://jmongeon.medium.com/walt-id-mint-an-nft-with-walt-id-and-filebase-bd1d061a91b5?source=rss-445b73e19dcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/bd1d061a91b5</guid>
            <category><![CDATA[filebase]]></category>
            <category><![CDATA[web]]></category>
            <category><![CDATA[waltid]]></category>
            <category><![CDATA[ipfs]]></category>
            <category><![CDATA[nft]]></category>
            <dc:creator><![CDATA[Jessie Mongeon]]></dc:creator>
            <pubDate>Tue, 28 Feb 2023 00:06:41 GMT</pubDate>
            <atom:updated>2023-02-28T00:06:41.918Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>This guide was originally published on </em><a href="https://docs.filebase.com./"><em>https://docs.filebase.com.</em></a><em> Check out the Filebase documentation site for the latest Web3 tutorials using IPFS through Filebase.</em></blockquote><p>Learn how to mint an NFT with Walt.id and Filebase.</p><h3>What is <a href="http://walt.id/">Walt.id</a>?</h3><p>​<a href="http://walt.id/">Walt.id</a> is an open-source NFT infrastructure and digital identity product that provides pre-built ‘kits’ that can be used as a springboard for Web3 development. Kits offered by <a href="http://walt.id/">Walt.id</a> include an SSI kit, a crypto wallet kit, and an NFT kit. This tutorial will showcase the NFT kit.</p><p>Read below to learn how to mint an NFT with <a href="http://walt.id/">Walt.id</a> and Filebase.</p><h3>Prerequisites:</h3><ul><li>​<a href="https://filebase.com/signup">Sign up</a> for a free Filebase account.</li><li>Download and Install <a href="https://docs.docker.com/get-docker/">Docker</a> and <a href="https://docs.docker.com/compose/install/">Docker-Compose.</a>​</li><li>A cryptowallet, such as <a href="https://metamask.io/">MetaMask</a>.</li><li>Have some Mumbai Testnet Currency.</li><li>Have your Filebase Access and Secret Keys. Learn how to view your access keys <a href="https://docs.filebase.com/getting-started-guides/getting-started-guide#working-with-access-keys">here</a>.</li></ul><h3>1. Start by cloning the <a href="http://walt.id/">Walt.id</a> NFT Kit GitHub repository:</h3><p>git clone <a href="https://github.com/walt-id/waltid-nftkit.git">https://github.com/walt-id/waltid-nftkit.git</a></p><h3>2. Then, navigate into the project’s folder.</h3><p>cd waltid-nftkit</p><h3>3. Open the following file in a text editor:</h3><p>./src/main/resources/walt-default.yaml</p><h3>4. Replace the PRIVATE_KEY value with your crypto wallet’s private key, then save the file:</h3><pre>hikariDataSource:<br>  jdbcUrl: jdbc:sqlite:data/walt.db<br>  maximumPoolSize: 5<br>  autoCommit: false<br>  dataSource:<br>    journalMode: WAL<br>    fullColumnNames: false<br><br>azureKeyVaultConfig:<br>  baseURL:<br>  id:<br>  secret:<br><br>providers:<br>    ethereum: &quot;ethereum&quot;<br>    goerli: &quot;https://eth-goerli.g.alchemy.com/v2/e8No6Y2awTnVnf2tAgj-h-sImyCxzXpg&quot;<br>    polygon: &quot;https://polygon-mainnet.g.alchemy.com/v2/yjbYhlaH3U_vfnTiRQ3miGQS0cKwQMkB&quot;<br>    mumbai: &quot;https://polygon-mumbai.g.alchemy.com/v2/yjbYhlaH3U_vfnTiRQ3miGQS0cKwQMkB&quot;<br><br>privateKey: &quot;PRIVATE_KEY&quot;</pre><h3>5. Next, build the docker container with the following command:</h3><p>docker build -t nftkit .</p><h3>6. Then, run the container:</h3><p>docker run -p 7000:7000 -it nftkit</p><h3>7. To mint NFTs, we need some images stored on IPFS.</h3><p>To do this, navigate to <a href="https://console.filebase.com/">console.filebase.com</a>. If you don’t have an account already, <a href="http://filebase.com/signup">sign up</a>, then log in.</p><h3>8. Select ‘Buckets’ from the left sidebar menu, or navigate to <a href="http://console.filebase.com/buckets">console.filebase.com/buckets</a>.</h3><p>Select ‘Create Bucket’ in the top right corner to create a new bucket for your NFTs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P5aeVxh_M8a5_myQ" /></figure><h3>9. Enter a bucket name and choose the IPFS storage network to create the bucket.</h3><p>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.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/0*EOdp10_tgkavvI76" /></figure><h3>10. Now, upload your NFTs to Filebase using the web console and select ‘Folder’, then select the folder that contains your NFT files.</h3><p>These files need to be named in sequential order, such as 0.png, 1.png, 2.png, etc.</p><h3>11. You will see your folder uploaded as a single object:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UapthEhIsyCumflV" /></figure><h3>12. Copy the CID of your folder:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Zd_aqw4y6-WIw-Ej" /></figure><h3>13. Navigate to your IPFS Folder using the Filebase IPFS gateway to see your folder’s files:</h3><p><a href="https://ipfs.filebase.io/ipfs/IPFS_CID">https://ipfs.filebase.io/ipfs/IPFS_CID</a></p><h3>14. Now it’s time to create the smart contract for our NFTs.</h3><p>Use the following CURL command to deploy a smart contract on the Polygon Mumbai network:</p><pre>curl -X POST http://0.0.0.0:7000/nftkit/nft/chain/MUMBAI/contract/deploy \\<br>-H  &quot;Content-Type: application/json&quot; \\<br>-d &#39;{&quot;name&quot;:&quot;Ticket&quot;,&quot;symbol&quot;:&quot;TK&quot;,&quot;tokenStandard&quot;:&quot;ERC721&quot;,&quot;accessControl&quot;:&quot;OWNABLE&quot;,&quot;options&quot;:{&quot;transferable&quot;:true,&quot;burnable&quot;:true}}&#39;</pre><h3>15. Copy the contract address that is returned from this CURL command.</h3><h3>16. To mint your NFT, use the following CURL command:</h3><pre>curl -X POST &quot;http://0.0.0.0:7000/nftkit/nft/chain/MUMBAI/contract/CONTRACT_ADDRESS/token/mint&quot; \\<br>-H  &quot;Content-Type: application/json&quot; \\<br>-d &#39;{&quot;metadataUri&quot;:&quot;&quot;,&quot;metadata&quot;:{&quot;description&quot;:&quot;NFT #1 Description&quot;,&quot;name&quot;:&quot;NFT #1&quot;,&quot;image&quot;:&quot;ipfs://CID/0.png&quot;,&quot;attributes&quot;:[{&quot;trait_type&quot;:&quot;Trait 1&quot;,&quot;value&quot;:&quot;Value 1&quot;}]},&quot;recipientAddress&quot;:&quot;WALLET_ADDRESS&quot;,&quot;metadataStorageType&quot;:&quot;ON_CHAIN&quot;}&#39;</pre><p>Replace the following values:</p><ul><li><strong>CONTRACT_ADDRESS:</strong> The smart contract address you took note of in the previous step.</li><li><strong>CID:</strong> The IPFS folder CID you copied earlier.</li><li><strong>WALLET_ADDRESS:</strong> Your crypto wallet address.</li></ul><h3>17. Repeat the previous CURL command for each NFT you’d like to mint, changing the 0.png portion of the command to reflect 1.png, 2.png, etc.</h3><h3>18. To get information about your NFTs, you can use the following CURL command:</h3><pre>curl -X GET &quot;http://0.0.0.0:7000/nftkit/nft/chain/MUMBAI/contract/CONTRACT_ADDRESS/token/1/metadata&quot;</pre><p>Replace the following value:</p><ul><li><strong>CONTRACT_ADDRESS</strong>: The smart contract address used to mint your NFTs.</li></ul><p>Want to learn more about Filebase? You can sign up for a <a href="https://filebase.com/signup">free account</a> today to get started with IPFS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bd1d061a91b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Web3 Toolbox: Building an NFT Drop With Web3 Toolbox]]></title>
            <link>https://jmongeon.medium.com/web3-toolbox-building-an-nft-drop-with-web3-toolbox-2929b2cc07f0?source=rss-445b73e19dcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/2929b2cc07f0</guid>
            <category><![CDATA[ipfs]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[ipfs-tutorial]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[filebase]]></category>
            <dc:creator><![CDATA[Jessie Mongeon]]></dc:creator>
            <pubDate>Sat, 25 Feb 2023 00:07:27 GMT</pubDate>
            <atom:updated>2023-02-25T00:07:27.724Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>This guide was originally published on </em><a href="https://docs.filebase.com./"><em>https://docs.filebase.com.</em></a><em> Check out the Filebase documentation site for the latest Web3 tutorials using IPFS through Filebase.</em></blockquote><p>Learn how to build an NFT drop with Web3 Toolbox and IPFS.</p><h3>What is Web3 Toolbox?</h3><p>Web3 Toolbox is an open-source application and plugin that extends the functionality and compatibility of the no-code platform Bubble. <a href="https://bubble.io/">Bubble</a> is used to create several different digital products like marketplaces, applications, dashboards, and social networks without coding.</p><p>Read below to learn how to build an NFT drop with Web3 Toolbox and IPFS.</p><h3>Prerequisites:</h3><ul><li>A cryptowallet, such as <a href="https://metamask.io/">MetaMask</a>.</li><li>Have some Polygon MATIC currency.</li><li>​<a href="https://filebase.com/signup">Sign up</a> for a free Filebase account.</li></ul><h3>1. First, we need to create an IPFS bucket on Filebase.</h3><p>To do this, navigate to <a href="https://console.filebase.com/">console.filebase.com</a>. If you don’t have an account already, <a href="http://filebase.com/signup">sign up</a>, then log in.</p><h3>2. Select ‘Buckets’ from the left sidebar menu, or navigate to <a href="http://console.filebase.com/buckets">console.filebase.com/buckets</a>.</h3><p>Select ‘Create Bucket’ in the top right corner to create a new bucket for your NFTs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tQL-mMMYPjC54bCd" /></figure><h3>3. Enter a bucket name and choose the IPFS storage network to create the bucket.</h3><p><em>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.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/403/0*q8A9PC6BjlY4MBUa" /></figure><h3>4. Now, upload your NFTs to Filebase using the web console and select ‘Folder’, then select the folder that contains your NFT files.</h3><p>These files need to be named in sequential order, such as 0.png, 1.png, 2.png, etc.</p><h3>5. You will see your folder uploaded as a single object:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*eSbfvfcoGkqnfbdd" /></figure><h3>6. Copy the CID of your folder:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ABO6sen-yyXSWzt2" /></figure><h3>7. Navigate to your IPFS Folder using the Filebase IPFS gateway to see your folder’s files:</h3><p><a href="https://ipfs.filebase.io/ipfs/IPFS_CID">https://ipfs.filebase.io/ipfs/IPFS_CID</a></p><h3>8. Next, you will need to build out the metadata files for your NFT collection.</h3><p>One method to quickly create metadata is to input the metadata information in a CSV file, then convert that file to the necessary JSON files.</p><p>To build this out, we’ll use the <a href="https://theweb3toolbox.com/nft_metadata">Web3 Toolbox NFT Metadata tool.</a>​</p><h3>9. Select ‘Create CSV Template’.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qBaMKMy3nwUX1XmR" /></figure><h3>10. Next, fill out the fields with the information for your NFT collection.</h3><p>In the ‘Uploaded Files Folder URL’, enter your IPFS Folder CID from step 6, prefaced with ipfs://.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hXBUWc0YzA8ja8zS" /></figure><h3>11. Once completed, select ‘Download Template’ to download the CSV metadata template.</h3><p>This template can be edited to add additional columns that contain custom attribute traits, such as rarity, background color, or special NFT perks. However, do NOT edit the column names for any of the pre-existing columns.</p><h3>12. Next, convert the CSV file to JSON by using the <a href="https://theweb3toolbox.com/nft_metadata">Web3 Toolbox NFT Metadata</a> ‘Convert CSV Template’ tool.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Zhxtq5Da1r8YXhVq" /></figure><h3>13. Upload the CSV file. Then select ‘Download JSON’.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ptiZPmivf_-ezwya" /></figure><p>This file will download as a text document file (.txt). Keep this file handy to be used later.</p><h3>14. Next, navigate to the <a href="https://theweb3toolbox.com/nft_drop">Web3 Toolbox NFT Drop</a> page.</h3><p>Connect your wallet by selecting the ‘Connect’ button in the upper right corner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*z_z8qPN2_OGriv2B" /></figure><h3>15. Make sure that the intended blockchain network is selected in your cryptowallet.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/306/0*YzcnFKPW1Q76hzqm" /></figure><h3>16. Select ‘Deploy’ from the list of options.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2VXvryg1k_znB6Y0" /></figure><h3>17. Fill out the settings for your NFT smart contract, such as the collection’s name, image, description, and wallet address for all sales and royalties to be sent to.</h3><p>Then, select ‘Deploy Smart Contract’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QkrQI3J22PBJP6Un" /></figure><h3>18. You will be prompted to confirm the transaction through your wallet.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/0*bGL5cm6i8tneJj1W" /></figure><h3>19. Once deployed, copy the smart contract address as seen below:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/491/0*8WFrrCtVSSDgDYaH" /></figure><h3>20. Scroll back up on that webpage and select ‘Interact’.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Ki_PR4v9VgjF8e9N" /></figure><h3>21. Select ‘Upload Metadata’:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-e_uqbtEUeokapQE" /></figure><h3>22. Insert the smart contract address you previously copied, then paste in the contents of your .txt file containing the collection’s metadata.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2Regg3TfLeS476M7" /></figure><h3>23. Then select ‘Upload Metadata’:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Mo5YQRGrlGJaiJGD" /></figure><h3>24. Confirm this transaction through your crypto wallet:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/334/0*Sb8nDxDWY6WYF8Sv" /></figure><h3>25. Next, select ‘Set Claim Conditions’ to configure the conditions that will be used to determine who can mint an NFT from your collection.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ASO3uYVfypanOUXk" /></figure><h3>26. Configure the collection’s claim conditions, such as the smart contract’s network, whether there is a presale or not, and whether there is a whitelist of addresses.</h3><p>Then, set the date for your collection to go on sale and the sale price. When you’re finished, select ‘Set Claim Conditions’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2ugQ5CaOI6dBHdu7" /></figure><h3>27. Confirm the transaction through your crypto wallet.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/0*Y0p07EA4FnX-4hz9" /></figure><h3>28. Additional configuration and deployment options can be set by creating a checkout or one-time purchase link, providing a widget for users to sign up for the collection’s whitelist, or a widget that can be embedded in a website for users to mint an NFT from your collection.</h3><p>These configuration options are optional and will be based on your workflow and intended release format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t15Mktpzooc09QJW" /></figure><p>For more information on these specific options, check out the <a href="https://docs.theweb3toolbox.com/guides/build-an-nft-drop#connect-your-ui-and-smart-contract">Web3 Toolbox documentation</a>.</p><h3>29. We’ll create a Claim widget that can be embedded into a webpage.</h3><p>Select the ‘Claim’ option.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*50Wr0q836wdT2rmI" /></figure><h3>30. Enter your intended configuration options, such as your collection’s name, description, and image, then configure the widget’s visual elements like background color and font color.</h3><p>Lastly, insert your NFT collection’s smart contract address.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UfzfDS8nBoftsBRD" /></figure><h3>31. Then select ‘Create Widget’. A preview of your widget will be shown.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*j7OxG2RXbtmTOx8O" /></figure><p>This widget can then be embedded into a webpage or application for users to mint an NFT from your collection.</p><p>Want to learn more about Filebase? You can sign up for a <a href="https://filebase.com/signup">free account</a> today to get started with IPFS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2929b2cc07f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[QuickNode: Create a Token dApp using QuickNode]]></title>
            <link>https://jmongeon.medium.com/quicknode-create-a-token-dapp-using-quicknode-ac5c17f55b19?source=rss-445b73e19dcd------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac5c17f55b19</guid>
            <category><![CDATA[quicknode]]></category>
            <category><![CDATA[ipfs]]></category>
            <category><![CDATA[dapps]]></category>
            <category><![CDATA[token]]></category>
            <category><![CDATA[filebase]]></category>
            <dc:creator><![CDATA[Jessie Mongeon]]></dc:creator>
            <pubDate>Fri, 24 Feb 2023 00:01:24 GMT</pubDate>
            <atom:updated>2023-02-24T00:01:24.724Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><em>This guide was originally published on </em><a href="https://docs.filebase.com./"><em>https://docs.filebase.com.</em></a><em> Check out the Filebase documentation site for the latest Web3 tutorials using IPFS through Filebase.</em></blockquote><p>Learn how to create a Token dApp using QuickNode.</p><h3>What is QuickNode?</h3><p>QuickNode is a platform that allows you to deploy dApps and other applications onto over 12 different blockchain networks with immediate provisioning and availability. QuickNode offers a variety of powerful tools and analytics, all presented through a single control panel dashboard.</p><h3>Prerequisites:</h3><ul><li>A cryptowallet, such as <a href="https://metamask.io/">MetaMask</a>.</li><li>​<a href="https://nodejs.org/en/download/">Install Node.js and npm</a>.</li><li>Download and install an IDE of your choice, such as <a href="https://code.visualstudio.com/">VSCode</a>.</li><li>​<a href="https://filebase.com/signup">Sign up</a> for a free Filebase account.</li><li>Have your Filebase Access and Secret Keys. Learn how to view your access keys <a href="https://docs.filebase.com/getting-started-guides/getting-started-guide#working-with-access-keys">here</a>.</li><li>Create a Filebase Bucket. Learn how to create a bucket <a href="https://docs.filebase.com/getting-started-guides/getting-started-guide#creating-and-working-with-buckets">here</a>.</li></ul><h3>1. First, <a href="https://github.com/s3fs-fuse/s3fs-fuse">download and install</a> S3FS-FUSE on your local environment.</h3><p>This tool is available on a Linux or macOS system.</p><h3>2. Set up an Access Key file for use with S3FS-FUSE.</h3><p>Set up a credentials file for S3FS at ${HOME}/.passwd-s3fs. You will need to save your Filebase Access and Secret keys to this file and give it owner permissions. You can do so with the following commands:</p><p>echo ACCESS_KEY_ID:SECRET_ACCESS_KEY &gt; ${HOME}/.passwd-s3fs</p><p>chmod 600 ${HOME}/.passwd-s3fs</p><p><strong>ACCESS_KEY_ID</strong> is your Filebase Access key, and <strong>SECRET_ACCESS_KEY</strong> is your Filebase Secret key. For more information on Filebase access keys, see <a href="https://docs.filebase.com/getting-started-guides/getting-started-guide#working-with-access-keys">here</a>.</p><h3>3. Mount your bucket.</h3><p>You can mount a Filebase IPFS bucket with the command:</p><p>s3fs mybucket /path/to/mountpoint -o passwd_file=${HOME}/.passwd-s3fs -o url=https://s3.filebase.com</p><ul><li><strong>mybucket:</strong> name of your Filebase bucket</li><li><strong>/path/to/mountpoint</strong></li></ul><h3>4. Now, navigate into the mounted Filebase bucket.</h3><p>Create a react projet for your app:</p><p>npx create-react-app my-dapp</p><p>This will create a new project directory called my-dapp. Navigate into this directory with the command:</p><p>cd my-dapp</p><p>Before we can install Hardhat, we’ll need to remove the default ‘<a href="http://readme.md/">README.md</a>’ file, since it’ll cause a conflict during the Hardhat initialization. Use the following command to remove this file:</p><p>rm README.md</p><h3>5. Install Hardhat with the following command:</h3><p>npm install --save-dev &quot;hardhat@^2.9.3&quot; &quot;@nomiclabs/hardhat-waffle@^2.0.0&quot; &quot;ethereum-waffle@^3.0.0&quot; &quot;chai@^4.2.0&quot; &quot;@nomiclabs/hardhat-ethers@^2.0.0&quot; &quot;ethers@^5.0.0&quot;</p><h3>6. Initialize the Hardhat setup prompt with the command:</h3><p>npx hardhat</p><p>Select ‘Create a Basic Sample Project’ &gt; ‘Create a Basic Project’, then select the current directory as the project root, and select ‘Y’ to include a .gitignore.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/0*PMzC-sV2PRXiwDkA" /></figure><p>This command created some project files, such as the contracts and scripts directories.</p><h3>7. Now, let’s head over to the <a href="https://www.quicknode.com/endpoints">QuickNode dashboard</a>. Select ‘Create an endpoint’:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XsB-SpfyaRyyauOm" /></figure><h3>8. Select the Ethereum blockchain, then select the Rinkeby network.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*niDn_lArl1N-kdvu" /></figure><h3>9. Select any add-ons if desired.</h3><p>This tutorial does not use any add-ons. Then select ‘Continue’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*hzvPZCPwU_CxXdaP" /></figure><h3>10. Select your payment plan tier and enter your payment information. Then select ‘Pay &amp; create’.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*86SZ7ftvn77ipZFY" /></figure><h3>11. Once created, copy the HTTP endpoint API URL:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MHq4qvQiaeAEBjyW" /></figure><h3>12. Next, take note of your cryptowallet’s private key.</h3><p>If you are using Metamask, follow the instructions found <a href="https://metamask.zendesk.com/hc/en-us/articles/360015289632-How-to-Export-an-Account-Private-Key">here</a>.</p><h3>13. Navigate into your project’s contracts folder.</h3><p>Remove the default file called Greeter.sol, then create a new file called dApp.sol.</p><p>Enter the following content in this new file:</p><pre>//dApp.sol<br>//SPDX-License-Identifier: UNLICENSED<br>pragma solidity ^0.7.0;<br>contract Token {<br>    string public name = &quot;dApp token&quot;;<br>    string public symbol = &quot;DAT&quot;;<br>    // The fixed amount of tokens stored in an unsigned integer type variable.<br>    uint256 public totalSupply = 1000000;<br>    // An address type variable is used to store ethereum accounts.<br>    address public owner;<br>    // A mapping is a key/value map. Here we store each account balance.<br>    mapping(address =&gt; uint256) balances;<br>    /**<br>     * Contract initialization.<br>     *<br>     * The `constructor` is executed only once when the contract is created.<br>     * The `public` modifier makes a function callable from outside the contract.<br>     */<br>    constructor() {<br>        // The totalSupply is assigned to transaction sender, which is the account<br>        // that is deploying the contract.<br>        balances[msg.sender] = totalSupply;<br>        owner = msg.sender;<br>    }<br>    /**<br>     * A function to transfer tokens.<br>     *<br>     * The `external` modifier makes a function *only* callable from outside<br>     * the contract.<br>     */<br>    function transfer(address to, uint256 amount) external {<br>        // Check if the transaction sender has enough tokens.<br>        // If `require`&#39;s first argument evaluates to `false` then the<br>        // transaction will revert.<br>        require(balances[msg.sender] &gt;= amount, &quot;Not enough tokens&quot;);<br>        // Transfer the amount.<br>        balances[msg.sender] -= amount;<br>        balances[to] += amount;<br>    }<br>    /**<br>     * Read only function to retrieve the token balance of a given account.<br>     *<br>     * The `view` modifier indicates that it doesn&#39;t modify the contract&#39;s<br>     * state, which allows us to call it without executing a transaction.<br>     */<br>    function balanceOf(address account) external view returns (uint256) {<br>        return balances[account];<br>    }<br>}</pre><p>This contract creates a custom token that we’ll use for your dApp later. Replace the token’s public name and public symbol with whatever you’d like.</p><h3>14. Now we want to deploy our contract.</h3><p>To do this, we’ll deploy it on a local HardHat node. To get a list of the local, fake accounts created by HardHat, run the command:</p><p>npx hardhat node</p><p>Your console output will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/563/0*LvVK5VsiRmUqHXUG" /></figure><p>From here, we can see we have 20 test accounts to use.</p><h3>15. Then, open the hardhat.config.js file in your project’s directory. Replace the content with the following code:</h3><pre>require(&quot;@nomiclabs/hardhat-ethers&quot;);<br><br>module.exports = {<br>  defaultNetwork: &quot;rinkeby&quot;,<br>  networks: {<br>    rinkeby: {<br>      url: &quot;QUICKNODE_API_URL&quot;,<br>      accounts: &quot;WALLET_PRIVATE_KEY&quot;<br>    }<br>  },<br>  solidity: {<br>    version: &quot;0.7.0&quot;,<br>    settings: {<br>      optimizer: {<br>        enabled: true,<br>        runs: 200<br>      }<br>    }<br>  },<br>  paths: {<br>    sources: &quot;./contracts&quot;,<br>    tests: &quot;./test&quot;,<br>    cache: &quot;./cache&quot;,<br>    artifacts: &quot;./artifacts&quot;<br>  },<br>  mocha: {<br>    timeout: 20000<br>  }<br>}</pre><p>Replace the following values:</p><ul><li><strong>QUICKNODE_API_URL:</strong> Your QuickNode endpoint URL</li><li><strong>WALLET_PRIVATE_KEY:</strong> Your crypto wallet private key</li></ul><h3>16. Create a new file in your scripts directory called deploy.js. Enter the following code inside that file:</h3><pre>//deploy.js<br>const hre = require(&quot;hardhat&quot;);<br>async function main() {<br>    // ethers is avaialble in the global scope<br>    const [deployer] = await hre.ethers.getSigners();<br>    console.log(<br>      &quot;Deploying the contracts with the account:&quot;,<br>      await deployer.getAddress()<br>    );<br><br>    console.log(&quot;Account balance:&quot;, (await deployer.getBalance()).toString());<br><br>    const Token = await hre.ethers.getContractFactory(&quot;Token&quot;);<br>    const token = await Token.deploy();<br>    await token.deployed();<br><br>    console.log(&quot;Token address:&quot;, token.address);<br><br>  }<br><br>  main()<br>    .then(() =&gt; process.exit(0))<br>    .catch((error) =&gt; {<br>      console.error(error);<br>      process.exit(1);<br>    });</pre><h3>17. Before we deploy this contract, we need some Rinkeby funds.</h3><p>First, make sure your cryptowallet is configured to use the Rinkeby network. If you’re using Metamask, follow the instructions found <a href="https://umbria.network/connect/ethereum-testnet-rinkeby">here</a>.</p><h3>18. Then, head over to the <a href="https://rinkebyfaucet.com/">Rinkeby faucet</a> and request some test funds:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pd1_XHiM2mTsK8pn" /></figure><p>Once the transaction is complete, you should have 0.1ETH to use:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/0*R5Uchh0f741FtAdw" /></figure><h3>19. Next, it’s time to deploy our contract. To do this, use the following command:</h3><p>npx hardhat run –network rinkeby scripts/deploy.js</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/0*KI5Vf4JxYqyr9JIp" /></figure><p>Take note of this token address.</p><h3>20. Click on your Metamask extension. Select ‘Import Tokens’:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/0*dfLhRYTS9ryffsVy" /></figure><h3>21. Enter the Token Contract Address.</h3><p>The Token Symbol should auto-populate after adding the contract address. Scroll down to ‘Token Decimal’. In this tutorial, our contract uses a decimal of 0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/0*qKRWtKbXAFf12Ia2" /></figure><h3>22. Confirm that you’d like to import your token to Metamask:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/430/0*2gJcvHehjSUcFU-l" /></figure><h3>23. Once imported, you’ll see your token’s balance in your wallet:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/433/0*xbPtHERkTpx7EQlI" /></figure><h3>24. Next, start your react app with the command:</h3><p>npx start</p><h3>25. Navigate to the react app running at localhost:3000:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/0*1InwGeWALx9SE90Z" /></figure><h3>26. Edit the src/App.js file. Replace the existing content with the following code:</h3><pre>import &#39;./App.css&#39;;<br>import {ethers} from &#39;ethers&#39;<br>import { useState } from &#39;react&#39;;<br>import TokenArtifact from &quot;./artifacts/contracts/dApp.sol/Token.json&quot;<br>const tokenAddress = &quot;CONTRACT_ADDRESS&quot;<br><br>function App() {<br> const [tokenData, setTokenData] = useState({})<br> const [amount, setAmount] = useState()<br> const [userAccountId, setUserAccountId] = useState()<br><br>async function requestAccount() {<br>  await window.ethereum.request({ method: &#39;eth_requestAccounts&#39; });<br>}<br><br> const provider = new ethers.providers.Web3Provider(window.ethereum);<br> const signer = provider.getSigner();<br> async function _intializeContract(init) {<br>  // We first initialize ethers by creating a provider using window.ethereum<br>  // When, we initialize the contract using that provider and the token&#39;s<br>  // artifact. You can do this same thing with your contracts.<br>  const contract = new ethers.Contract(<br>    tokenAddress,<br>    TokenArtifact.abi,<br>    init<br>  );<br><br>  return contract<br>}<br> async function _getTokenData() {<br>  const contract = await _intializeContract(signer)<br>  const name = await contract.name();<br>  const symbol = await contract.symbol();<br>  const tokenData = {name, symbol}<br>  setTokenData(tokenData);<br>}<br>async function senddAppToken() {<br>  if (typeof window.ethereum !== &#39;undefined&#39;) {<br>    await requestAccount()<br>    const contract = await _intializeContract(signer)<br>    const transaction = await contract.transfer(userAccountId, amount);<br>    await transaction.wait();<br>    console.log(`${amount} dAppToken has been sent to ${userAccountId}`);<br>  }<br>}<br>async function getBalance() {<br>  if (typeof window.ethereum !== &#39;undefined&#39;) {<br>    const contract = await _intializeContract(signer)<br>    const [account] = await window.ethereum.request({ method: &#39;eth_requestAccounts&#39; })<br>    const balance = await contract.balanceOf(account);<br>    console.log(&quot;Account Balance: &quot;, balance.toString());<br>  }<br>}<br>  return (<br>    &lt;div className=&quot;App&quot;&gt;<br>      &lt;header className=&quot;App-header&quot;&gt;<br>      &lt;button onClick={_getTokenData}&gt;get token data&lt;/button&gt;<br>      &lt;h1&gt;{tokenData.name}&lt;/h1&gt;<br>      &lt;h1&gt;{tokenData.symbol}&lt;/h1&gt;<br>      &lt;button onClick={getBalance}&gt;Get Balance&lt;/button&gt;<br>      &lt;button onClick={senddAppToken}&gt;Send dAppToken&lt;/button&gt;<br>      &lt;input onChange={e =&gt; setUserAccountId(e.target.value)} placeholder=&quot;Account ID&quot; /&gt;<br>        &lt;input onChange={e =&gt; setAmount(e.target.value)} placeholder=&quot;Amount&quot; /&gt;<br>      &lt;/header&gt;<br>    &lt;/div&gt;<br>  );<br>}<br>export default App;</pre><p>Replace ‘<strong>CONTRACT_ADDRESS</strong>’ with your Token’s contract address from step 19. Once saved, will look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/611/0*M2_eYb0BOgDIDfuU" /></figure><p>Using this app, you’ll be able to get the current wallet balance of dApp token in our wallet, send dApp Tokens to other wallets such as the test wallets we got the addresses of earlier, and get dApp token data.</p><p>This react front-end of our app can be customized to your liking and can include other scripts, functions, or even images and animations.</p><p>Want to learn more about Filebase? You can sign up for a <a href="https://filebase.com/signup">free account</a> today to get started with IPFS.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac5c17f55b19" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>