Entry content

Entry content

Entry content
Entry content

Entry content

Entry content

Entry content

Entry content

Entry content

Entry content

Entry content

Entry description
I can create ERC-20 Token Smart Contract for Ethereum Blockchain Platform.
Let’s show me a Sample:
pragma solidity ^0.4.16; interface tokenRecipient
{
function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public;
}
contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
uint256 public totalSupply;
// This creates an array with all balances mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
// This notifies clients about the amount burnt event Burn(address indexed from, uint256 value);
function TokenERC20(
uint256 initialSupply,
string tokenName,
string tokenSymbol
) public { totalSupply = initialSupply * 10 ** uint256(decimals);
Let’s show me a Sample:
pragma solidity ^0.4.16; interface tokenRecipient
{
function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData) public;
}
contract TokenERC20 {
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
uint256 public totalSupply;
// This creates an array with all balances mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
// This notifies clients about the amount burnt event Burn(address indexed from, uint256 value);
function TokenERC20(
uint256 initialSupply,
string tokenName,
string tokenSymbol
) public { totalSupply = initialSupply * 10 ** uint256(decimals);
אנא
היכנס למערכת
כדי להגיב