<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>Merkle Tree - Tag - HEJTAO</title>
        <link>https://hejtao.netlify.app/tags/merkle-tree/</link>
        <description>Merkle Tree - Tag - HEJTAO</description>
        <generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Wed, 26 Mar 2025 00:00:00 &#43;0000</lastBuildDate><atom:link href="https://hejtao.netlify.app/tags/merkle-tree/" rel="self" type="application/rss+xml" /><item>
    <title>Merkle Airdrop</title>
    <link>https://hejtao.netlify.app/posts/cs-merkle-airdrop/</link>
    <pubDate>Wed, 26 Mar 2025 00:00:00 &#43;0000</pubDate>
    <author>HEJTAO.COM</author>
    <guid>https://hejtao.netlify.app/posts/cs-merkle-airdrop/</guid>
    <description><![CDATA[How to play? Airdrop a bunch of ERC20 tokens to users Deploy a smart contract Send an email with wallet address, token amount and proof to each user The user claims their tokens from the smart contract Build a merkle tree import { MerkleTree } from &#39;merkletreejs&#39;; import keccak256 from &#39;keccak256&#39;; import { solidityPacked } from &#39;ethers&#39;; function main() { const whitelist = [ { address: &#39;0x2173dEd80D3c17D2f349234a31ab8789D28Dd333&#39;, amount: 100 }, { address: &#39;0x2AFAF65965e08DBd0e0aD7a5594E6b5BE398CBd6&#39;, amount: 200 }, { address: &#39;0xfbc89Db3927bCCda61F550d3d9f3998750b7b93f&#39;, amount: 300 }, ]; const leaves = whitelist.]]></description>
</item>
</channel>
</rss>
