Airdrop XDC to multiple user at a time Smartcontract deployed on XinFin XDC Network.

mahalakshmiper7

MahaLakshmi Perumal

Posted on November 10, 2020

Airdrop XDC to multiple user at a time Smartcontract deployed on XinFin XDC Network.

Created and deployed a smartcontract on XinFin XDC Network that Airdrop XDC to multiple user at a time.
Check the Code for the deployment:
pragma solidity ^0.4.25;
contract XDC01 {
function transfer(address _recipient, uint256 _value) public returns (bool success);
}
contract Airdrop {
function drop(XDC01 token, address[] recipients, uint256[] values) public {
for (uint256 i = 0; i < recipients.length; i++) {
token.transfer(recipients[i], values[i]);
}
}
}

💖 💪 🙅 🚩
mahalakshmiper7
MahaLakshmi Perumal

Posted on November 10, 2020

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related