Skip to content

p2p-org/eth-merkle-drop

Repository files navigation

MerkleAirdrop

A merkle tree based contract for airdropping ETH.

Usage

Use the 01-generate-merkle-tree.ts script as an example to generate the merkle tree based on

  • recipient address
  • amount of ETH in wei for that recipient

The script produces a tree.json file, which can later be used in a browser to generate for each individual claimer:

  • amount of ETH to claim
  • merkle proof

The MerkleAirdrop contract has a claim function, which accepts these 2 parameters (amount and merkle proof) and can be called by any recipient to get their airdrop.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published