DEV Community

Cover image for Airdrop XDC to multiple user at a time Smartcontract deployed on XinFin XDC Network.
MahaLakshmi Perumal
MahaLakshmi Perumal

Posted on

2 1

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]);
}
}
}

Top comments (0)

Heroku

This site is powered by Heroku

Heroku was created by developers, for developers. Get started today and find out why Heroku has been the platform of choice for brands like DEV for over a decade.

Sign Up

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay