Everything you want to know about Airdrops

Home » CRYPTOPEDIA » Everything you want to know about Airdrops
Everything you want to know about Airdrops
2018-10-16 in CRYPTOPEDIA

Airdrop is a popular way to distribute project tokens to the community. Airdrop sometimes leads to congestion in the Ethereum network and huge commissions in transactions. More recently, such a mechanic, which was used to vote on the FCoin exchange, led to dire consequences for the entire Ethereum network.

A good algorithm allows solving several problems of smart contracts at once, which operate with large lists of user addresses. The fact is that putting a list of even several thousand addresses into a contract and allowing this set of addresses to do something in the contract will not work directly – the blockchain saves every byte and it is too expensive.

To solve the problem, it is necessary to determine in the contract code whether this address belongs to the list of “white” addresses. If yes, then allow the desired action. The proposed option allows you to quite simply solve this problem, holding in the contract only one number. ico airdrop The algorithm of the brilliant cryptographer Ralph Merkle is widely used in almost any decentralized software to ensure the integrity of the data sets.

Airdrop and ACL

There is a practice to release your token and send out small amounts of it to tens of thousands of addresses that have, for example, at least 1 ETH on the balance. Such spam is extremely popular now to promote your own tokens. Few people like the appearance on their balance of someone’s unknown tokens. However, projects need it, and orders for airdrop are very popular. This is usually done in the old fashioned way, like this (using the example of Ethereum, but other blockchains with contracts, EOS, for example) are also suitable:

  • find many addresses by specified criteria;
  • create an address where enough tokens are stored for distribution to everyone from the list, or provide a token in the contract to create (min) the required number of tokens to a given address (when sending a transaction from a special preferred address);
  • Ethereum is put on this address enough to pay the fee for each shipment of tokens to the user;
  • they launch a mailing script that iterates through the addresses and for each creates a transaction that translates (or mints) tokens to the specified address.

That is, it’s just going through a pile of addresses and sending tokens to everyone. In decentralized systems, such a push strategy is usually quite lame, expensive, creates security holes, and in general is spam. Among its disadvantages:

  • a lot of money is spent on commission (the more addresses, the more commission). In addition, at the time of mailing the commission can grow, because the load on the network grows, the cost of the transaction grows too;
  • mailing requires writing a script that will send transactions, and in the script is sewn a secret key that gives access to a heap of tokens;
  • It is necessary to program the newsletter and be able to continue from the place where everything is broken.

In this case, there is a much simpler solution, which, as is customary in decentralized networks, gives most of the work to software on the client side. what is airdropThis is access control using the Merkle tree – an extremely convenient data structure to store only one fixed-size number (merkleRoot) in the contract, which contains information about all the data included in the tree (about a huge list of recipients, for example).

So, this algorithm is suitable for creating huge ACLs (Access Control List), which allow providing access to a certain contract function for millions of accounts. To do this, you need to write in the contract a single number to verify that the account belongs to the list.

Consider a circuit with an airdrop, since It is now extremely in demand in the market and is a simple and demonstrative example of smart contracts with large ACLs.

DApp-a scheme

First, it is worth recalling that a smart contract is first deposited into the Ethereum network, after which it receives its own address and balance on the network, and then it accepts and processes incoming transactions within itself.

In the merkle-airdrop scheme, tokens are not sent to addresses, and users themselves “require” their tokens by sending transactions to the contract and paying a commission. How to use airdrop? The secret is that users add data to a transaction, allowing the contract to easily verify whether they are in the “white” address list, and the list itself is not necessary to remember the contract. The contract itself is extremely economical, it needs only one (!) Number for a list of addresses of any (!) Size – this is the essence of this excellent algorithm. And such a contract is extremely easy to run, after which it does not require any support at all, and due to this simplicity, it is also extremely safe to use.

  • bitcoinBitcoin$3,542.74
  • rippleXRP$0.317370
  • ethereumEthereum$117.40
  • tetherTether$1.00
  • eosEOS$2.33
  • stellarStellar$0.102527
  • litecoinLitecoin$30.67
  • cardanoCardano$0.043003
  • tronTRON$0.023587
  • moneroMonero$43.54
  • iotaIOTA$0.304716
  • nemNEM$0.055248
  • dashDash$68.65
  • neoNEO$7.47
The complexity Bitcoin mining is growing
As a result of the next recalculation of the complexity of mining Bitcoin on the night of January 14, this figure increased by almost 5%. The complexity of mining is a parameter of the blockchain network, which shows how difficult it is to perform a mathematical calculation to find a new unit and, accordingly, to […]
2019-01-18 0 5
Bitcoin volatility fell by 98% over the year.
Since January last year, the first cryptocurrency volatility has decreased by 98%. So, if on January 16, 2018, this figure was $ 3,468, then a year later – only $ 61, notes CoinDesk Markets analyst Omkar Godboul. The daily volatility over the past year decreased from 9.1% to 3.6%, although on December 16, 2018 was […]
2019-01-17 0 9
Will Ethereum hard fork Constantinople be launched this week?
Ethereum, one of the largest and most influential blockchains in the world, is planning to improve its code in the near future. A massive system upgrade, or hardfork, called “Constantinople” will include a number of technological improvements called to enhance practicality and the architecture of smart contracts. The Ethereum community will make a final decision […]
2019-01-15 0 31
The Brit​ish citizen was trying to buy a gun with cryptocurrency
David Mitchell, a 48-year old British citizen, was arrested by the US police after an attempt to purchase a gun with cryptocurrency via the dark web. Mr. Mitchell was planning to buy a Glock 9mm pistol which costs around £2,000. The man explained to the court that he was curious whether it is possible to […]
2019-01-14 0 18
© 2017–2018