<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>mehrshaad</title>
        <link>https://paragraph.com/@mehrshaad</link>
        <description>undefined</description>
        <lastBuildDate>Thu, 25 Jun 2026 18:31:03 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[ Integrating RedStone Oracle with Your DApps in 5-Step]]></title>
            <link>https://paragraph.com/@mehrshaad/integrating-redstone-oracle-with-your-dapps-in-5-step</link>
            <guid>wI3CXLvZyzedUcAi1mRU</guid>
            <pubDate>Fri, 19 Jan 2024 18:33:16 GMT</pubDate>
            <description><![CDATA[In this tutorial, we will guide you through the process of integrating RedStone Oracle with your decentralized application (DApp) using the RedStone Core. By the end of this tutorial, you will be able to fetch data from RedStone Oracle and use it in your DApp. Prerequisites:Basic knowledge of Solidity and smart contractsFamiliarity with Ethereum development tools (e.g., Truffle, Hardhat)A development environment set up for Ethereum smart contract developmentStep 1: Install RedStone Oracle SDK...]]></description>
            <content:encoded><![CDATA[<p>In this tutorial, we will guide you through the process of integrating RedStone Oracle with your decentralized application (DApp) using the RedStone Core. By the end of this tutorial, you will be able to fetch data from RedStone Oracle and use it in your DApp.</p><p><strong>Prerequisites:</strong></p><ul><li><p>Basic knowledge of Solidity and smart contracts</p></li><li><p>Familiarity with Ethereum development tools (e.g., Truffle, Hardhat)</p></li><li><p>A development environment set up for Ethereum smart contract development</p></li></ul><p><strong>Step 1: Install RedStone Oracle SDK</strong></p><p>First, you need to install the RedStone Oracle SDK in your development environment. You can do this using npm:</p><pre data-type="codeBlock" text="npm install @redstonefinance/redstone-core
"><code>npm install @redstonefinance<span class="hljs-operator">/</span>redstone<span class="hljs-operator">-</span>core
</code></pre><p><strong>Step 2: Import RedStone Oracle in Your Smart Contract</strong></p><p>Next, import the RedStone Oracle in your Solidity smart contract. Add the following line at the beginning of your smart contract file:</p><pre data-type="codeBlock" text="import &quot;@redstonefinance/redstone-core/contracts/RedStoneCore.sol&quot;;
"><code><span class="hljs-keyword">import</span> <span class="hljs-string">"@redstonefinance/redstone-core/contracts/RedStoneCore.sol"</span>;
</code></pre><p><strong>Step 3: Define RedStone Oracle Instance</strong></p><p>In your smart contract, define an instance of the RedStone Oracle. You can do this by adding the following line inside your smart contract:</p><pre data-type="codeBlock" text="RedStoneCore private redStoneOracle;
"><code>RedStoneCore <span class="hljs-keyword">private</span> redStoneOracle;
</code></pre><p>Then, in your smart contract&apos;s constructor, initialize the RedStone Oracle instance with the address of the deployed RedStone Core contract. You can find the address in the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.redstone.finance/docs/smart-contract-devs/get-started/redstone-core">RedStone documentation</a>.</p><pre data-type="codeBlock" text="constructor() {
    redStoneOracle = RedStoneCore(0x123456789abcdef0123456789abcdef01234567); // Replace with the correct address
}
"><code><span class="hljs-built_in">constructor</span>() {
    redStoneOracle = <span class="hljs-built_in">RedStoneCore</span>(<span class="hljs-number">0</span>x123456789abcdef0123456789abcdef01234567); <span class="hljs-comment">// Replace with the correct address</span>
}
</code></pre><p><strong>Step 4: Fetch Data from RedStone Oracle</strong></p><p>To fetch data from the RedStone Oracle, you can use the <code>getProviderData()</code> function. This function takes a provider ID and returns the data associated with that provider. You can find the list of supported provider IDs in the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://docs.redstone.finance/docs/smart-contract-devs/get-started/redstone-core">RedStone documentation</a>.</p><p>Here&apos;s an example of fetching the ETH/USD price from the RedStone Oracle:</p><pre data-type="codeBlock" text="function getETHUSDPrice() public view returns (int256) {
    (, int256 price, ) = redStoneOracle.getProviderData(&quot;redstone-eth-usd&quot;);
    return price;
}
"><code><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">getETHUSDPrice</span>(<span class="hljs-params"></span>) <span class="hljs-title"><span class="hljs-keyword">public</span></span> <span class="hljs-title"><span class="hljs-keyword">view</span></span> <span class="hljs-title"><span class="hljs-keyword">returns</span></span> (<span class="hljs-params"><span class="hljs-keyword">int256</span></span>) </span>{
    (, <span class="hljs-keyword">int256</span> price, ) <span class="hljs-operator">=</span> redStoneOracle.getProviderData(<span class="hljs-string">"redstone-eth-usd"</span>);
    <span class="hljs-keyword">return</span> price;
}
</code></pre><p><strong>Step 5: Use Data in Your DApp</strong></p><p>Now that you can fetch data from the RedStone Oracle, you can use this data in your DApp&apos;s logic. For example, you can create a function that allows users to swap tokens at the current market rate, using the price data fetched from the RedStone Oracle.</p><pre data-type="codeBlock" text="function swapTokens(uint256 amountIn, address tokenIn, address tokenOut) public {
    // Fetch the prices of the input and output tokens from the RedStone Oracle
    int256 priceIn = getPrice(tokenIn);
    int256 priceOut = getPrice(tokenOut);

    // Calculate the amount of output tokens based on the input amount and prices
    uint256 amountOut = (amountIn * uint256(priceIn)) / uint256(priceOut);

    // Perform the token swap using your DApp&apos;s logic
    // ...
}
"><code><span class="hljs-function"><span class="hljs-keyword">function</span> <span class="hljs-title">swapTokens</span>(<span class="hljs-params"><span class="hljs-keyword">uint256</span> amountIn, <span class="hljs-keyword">address</span> tokenIn, <span class="hljs-keyword">address</span> tokenOut</span>) <span class="hljs-title"><span class="hljs-keyword">public</span></span> </span>{
    <span class="hljs-comment">// Fetch the prices of the input and output tokens from the RedStone Oracle</span>
    <span class="hljs-keyword">int256</span> priceIn <span class="hljs-operator">=</span> getPrice(tokenIn);
    <span class="hljs-keyword">int256</span> priceOut <span class="hljs-operator">=</span> getPrice(tokenOut);

    <span class="hljs-comment">// Calculate the amount of output tokens based on the input amount and prices</span>
    <span class="hljs-keyword">uint256</span> amountOut <span class="hljs-operator">=</span> (amountIn <span class="hljs-operator">*</span> <span class="hljs-keyword">uint256</span>(priceIn)) <span class="hljs-operator">/</span> <span class="hljs-keyword">uint256</span>(priceOut);

    <span class="hljs-comment">// Perform the token swap using your DApp's logic</span>
    <span class="hljs-comment">// ...</span>
}
</code></pre><p>That&apos;s it! You have successfully integrated RedStone Oracle with your DApp. You can now use reliable, real-time data from RedStone Oracle to enhance the functionality and user experience of your DApp.<br>more data:</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://redstone.finance/">https://redstone.finance/</a></p>]]></content:encoded>
            <author>mehrshaad@newsletter.paragraph.com (mehrshaad)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/24de338654bbfb5435769dd7a70c912b8816e91219ec0419e0196112ce9a6ef4.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[7 Web3 Investment Ideas For You To Invest In]]></title>
            <link>https://paragraph.com/@mehrshaad/7-web3-investment-ideas-for-you-to-invest-in</link>
            <guid>RBWyr0OdsomD1Ldpp4ld</guid>
            <pubDate>Mon, 27 Jun 2022 09:27:36 GMT</pubDate>
            <description><![CDATA[A comprehensive enough guide to Web3 investingIn May 2010, Jeremy Sturdivant made Web3 history. He delivered two large pizzas from Papa John’s to Laszlo Hanyecz for 10,000 Bitcoins. The world’s first physical transaction using Web3 technology. Jeremy ended up squandering the Bitcoin, but that&apos;s not the point. Web3 history was made on that day. Now, the question is whether if you can be part of Web3 history too? For those who don’t know, Web3 is a new way to go online. Rather than giving ...]]></description>
            <content:encoded><![CDATA[<h2 id="h-a-comprehensive-enough-guide-to-web3-investing" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">A comprehensive enough guide to Web3 investing</h2><p>In May 2010, Jeremy Sturdivant made Web3 history. He delivered two large pizzas from Papa John’s to Laszlo Hanyecz for 10,000 Bitcoins. The world’s first physical transaction using Web3 technology.</p><p>Jeremy ended up squandering the Bitcoin, but that&apos;s not the point. Web3 history was made on that day.</p><p>Now, the question is whether if you can be part of Web3 history too?</p><p>For those who don’t know, Web3 is a new way to go online. Rather than giving companies total control of all your data for service as you do in Web2, you’re now in control of your own data.</p><p>Not the other way round.</p><p>This works because the basis of blockchain is that it works as a digital ledger. So, some faceless company cannot secretly share your data without your knowing.</p><p>This article is my months of research consolidated into a single article. My attempt is to provide a broad overview in easy enough terms and give so recommendations that you can apply yourself now.</p><p>I will admit that I haven’t tried everything I’ve suggested but some of the methods I’ve suggested are usually common in investing, so I’m confident they apply here.</p><p>This article is divided into three sections. You can either scroll through the whole article or quickly jump to a section via the contents below. Contents:</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.datadriveninvestor.com/7-web3-investment-ideas-for-you-to-invest-in-f6874da0ddd6#0ffd">Cryptocurrencies</a> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.datadriveninvestor.com/7-web3-investment-ideas-for-you-to-invest-in-f6874da0ddd6#74ad">NFTs</a> <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.datadriveninvestor.com/7-web3-investment-ideas-for-you-to-invest-in-f6874da0ddd6#f779">Companies and other investment vehicles</a></p><h1 id="h-cryptocurrencies" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Cryptocurrencies</h1><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://en.m.wikipedia.org/wiki/History_of_bitcoin">In 2008, Satoshi Nakamoto papered the famous:</a></p><blockquote><p><em>Bitcoin: A Peer-to-Peer Electronic Cash System</em></p></blockquote><p>And, in 2009, the first Bitcoin was mined. Web3 was born.</p><p>This also gave birth to Bitcoin mining but really no one at the time knew how much Bitcoin would be worth today.</p><p>Probably, cryptocurrencies are the first Web3 investment you’ll think of. Whether or not you define as buying and holding cryptocurrencies, such as Bitcoin, as investing is another thing.</p><h2 id="h-1buy-and-hold" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">1.Buy and Hold</h2><p>So how would you invest in cryptocurrencies? The first step is simply to buy low and sell high. Currencies such as Bitcoin (<em>$39k USD, March 2022</em>) and Ethereum (<em>$2.5k USD, March 2022</em>) may be high prices for newcomers but up-and-coming currencies such as Solana (<em>$154 USD, March 2022</em>) are potential options for this method.</p><p>Alternatively, you can invest in stablecoins such as Tether which is pegged to the USD. Its price increases if the value of the USD increases relative to your buying currency and it has the luxury of being a cryptocurrency too, so you can use it wherever you seem fit.</p><h2 id="h-2cryptomining" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">2.Cryptomining</h2><p>Another way to invest in cryptocurrencies is to invest your time in crypto mining, such as Bitcoin mining. If you have programming skills, you can do it yourself. After having done some mining myself, I think you can even copy and paste code into an IDE without needing to think too hard about how to do it.</p><p>Alternatively, you can join mining pools <em>(contribute your hardware to crypto mining communities)</em>, or rent out cloud mining services. These are better options if your hardware cannot support the energy needs for cryptomining.</p><h2 id="h-3day-trading-and-shorting" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">3.Day Trading and Shorting</h2><p>If you have liquidity and time, you can seek out quick market inefficiencies among cryptocurrencies and profit from there. Buy when you think the price is slightly low and sell at an immediate rise. Or, do the opposite. If you think the price is going to fall, sell at the current price and buy back when the price falls a bit. You, get a nifty profit as a result of this. Since cryptocurrencies boom and bust so often, this really is only a feasible, investment method if you have the appetite.</p><h2 id="h-4cryptostaking" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">4.Cryptostaking</h2><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/onomy-protocol/how-does-crypto-staking-work-430ff7a36b2d">Cryptostaking enables you to earn money just by holding onto your cryptocurency.</a> Essentially, you deposit your cryptocurrencies into a staking pool and you earn a yield overtime. The purpose of the staking pool is for proof of stake, which is a more energy efficient way to validate blockchains and if your token is chosen to validate a block on a blockchain, then you are rewarded.</p><p>But, if you don’t understand blockchain technology all that well, then basically, staking is putting your money into a term deposit and you are rewarded with interest at the end of the term and the return of your principal.</p><h1 id="h-nfts" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">NFTs</h1><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.google.com/amp/s/blog.portion.io/the-history-of-nfts-how-they-got-started/amp/">In 2014, Kevin McCoy minted the first ever NFT,</a> called “Quantum”.</p><p>In 2021, it sold for over 1.4 million USD.</p><p>“Quantum” is a mesmerising NFT artwork and is worth a look. It does have artistic value to it along with its historical value. Whether or not if it’s worth the price tag is up to you.</p><h2 id="h-5digital-art" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">5.Digital Art</h2><p>Do you think you can find a gem in the flooded NFT market and sell for at least an easy million a few years down the track?</p><p>Buying and selling NFTs is another Web3 investment method and may offer you a better margin of safety compared to cryptocurrencies because NFTs have a sort of aesthetic beauty to them whereas cryptocurrencies are simply numbers on a screen.</p><p>The first method to invest in NFTs is to buy digital art. The methodology of buying and selling digital art should not be any greatly different compared to buying and selling &apos;<em>real</em>&apos; art.</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://hdsr.mitpress.mit.edu/pub/1vdc2z91/release/2">Machine learning research has shown that the great drivers to art prices are determined by the prestige of the artist and its current bid.</a> This shouldn’t be of great surprise.</p><p>So, how would you identify a prestigious artist? Simply, hunt for these artist on Reddit or Discord, view their art work and see what studio they are with or have been with. Even if the artist has never been with a studio, see where the artist’s artworks have been displayed.</p><p>Finally, you can go to marketplaces, such as OpenSea, and view the bidding prices of artists’ artworks. It would be wise of you to note if you can see a pattern of their work increasing in value over time.</p><p>Finally, collectible NFTs aren’t just limited to digital art. You can also consider music, videos or even trading cards.</p><h2 id="h-6metaverse-real-estate" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">6.Metaverse Real Estate</h2><p>Another Web3 investment method with NFTs is to invest in metaverse real estate. Just like in reality, it’s all about location.</p><p>But, how do you value metaverse real estate?</p><p>There’s no easy method, but the way I think the big companies are doing it is by estimating future cash flows based on existing advertising revenues.</p><p>What I mean by this is let’s say a company can make $10 million in revenue by advertising regularly on Facebook. This company is betting that they can receive at least the same revenue by advertising in the metaverse.</p><p>Essentially, companies are looking for metaverse real estate that offers the same number of eyes on their product as they would get if they are advertising on Facebook.</p><p>This is a very simplistic explanation and doesn’t factor in financial modelling, but such thinking would be involved when buying metaverse real estate.</p><p>So, the logic is simple here. The closer your parcel of land is to an area of high traffic, for example the city centre, then the more it should be worth.</p><p>Big name metaverses already have big investors, but if you have an up-and-coming metaverse and you invest early, your large profits might be paid in due time. For example, in social media, the early days were dominated by MySpace and Bebo, but what happened to them? Their business models failed and Facebook took over. So, the big metaverses you see today may be dominated by something else tomorrow.</p><h1 id="h-companies-and-other-investment-vehicles" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Companies and Other Investment Vehicles</h1><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://bitcoinke.io/2021/12/nike-and-adidas-take-notice-of-the-metaverse/?noamp=available">In December 2021, Adidas made $22 million worth in Ethereum.</a></p><p>They achieved this through NFT drops in the metaverses, and even made partnerships with big name NFT players such as Bored Ape Yacht Club.</p><p>This tells us that rather than investing directly into Web3, we can find companies to do for us. Ultimately, this mitigates risk exposure.</p><p>You can invest in companies directly via stock exchanges, buy their NFTs or even use their services.*</p><p>However, with that being said there is a clear difference between Web3 companies and companies trying to get into Web3.</p><p>For example, a large food company dropping NFTs is more likely engaging in marketing than really utilising Web3 technology. It may increase brand loyalty in the short term but whether the consumer will stick with the company after the NFT drops is another question. These companies can still make money without Web3 technology.</p><p>Compare this to a pure Web3 company, such as a metaverse, whose business model relies on blockchain and people’s belief that they own truly one of a kind. If the consumer’s belief in blockchain fails, so do these companies’ business models.</p><p><em>*If you’re an earlier adopter of something, that gives you the first mover advantage, so you can profit from those who come on-board the platform later.</em></p><h2 id="h-7-here-are-some-companies-working-with-web3-and-which-you-could-invest-in" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">7. Here are some companies working with Web3 and which you could invest in.</h2><h2 id="h-fashion-companies" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Fashion Companies</h2><p>Addidas, Nike, Gucci</p><h2 id="h-technology-companies" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Technology Companies</h2><p>Nvidia, Meta, Samsung</p><h2 id="h-miscellaneous-companies" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Miscellaneous Companies</h2><p>Taco Bell, Mattel, Coca-Cola</p><h2 id="h-nfts" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">NFTs</h2><p>Bored Ape Club, OpenSea, CryptoPunks</p><h2 id="h-metaversesgames" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Metaverses\Games</h2><p>Decentraland, Sandbox, Axie Infinite</p><h2 id="h-crypto-exchanges" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Crypto Exchanges</h2><p>Coinbase, Binance, Kraken</p><h2 id="h-daos" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">DAOs</h2><p>Uniswap1UNI, ApeCoin2APE,</p><h2 id="h-venture-capitalist-firms" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Venture Capitalist Firms</h2><p>a16z/ Andreessen Horowitz, Sequoia Capital, Tiger Global</p><h2 id="h-etfs-nasdaq" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">ETFs (NASDAQ)</h2><p>LEGR, BLCN, BLOK</p><h1 id="h-conclusions" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusions</h1><p>As you can read there are numerous ways to invest in Web3 technologies.</p><p>No one way is better than the other way.</p><p>Web3 technology may offer a different way to do finance but the investing fundamentals stay the same. If you can find the value in something, then invest in it!</p><p><strong>Source:</strong></p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.datadriveninvestor.com/7-web3-investment-ideas-for-you-to-invest-in-f6874da0ddd6">https://medium.datadriveninvestor.com/7-web3-investment-ideas-for-you-to-invest-in-f6874da0ddd6</a></p>]]></content:encoded>
            <author>mehrshaad@newsletter.paragraph.com (mehrshaad)</author>
            <enclosure url="https://storage.googleapis.com/papyrus_images/ebdc3e362a50e7699618960ada64381c7f169e4a6109a3f57515dd70a39c34f0.jpg" length="0" type="image/jpg"/>
        </item>
    </channel>
</rss>