My name is Jordi Piqueras and I have created this Smart Contract to help the people that wants to do an ICO (Initial Coin Offering)/Create a token with the ERC20 Standard to get cryptocurrencies from investors to create and improve their projects.
If you want to help me you can add me on LinkedIn and recommend me. Thanks you so much.
The main functionality of this Smart Contract is to exchange Ethers (Ethereum) for ICO Tokens. To do an ICO I recommend you to set an SC on the Ethereum Blockchain, you only have to give the SC address to your investors and when they send the Ethers to SC address automatically they receive your tokens.
- Upload the Smart Contract to an Address with the "Quanity of tokens", "name_of_the_Token" and "symbol_of_the_token".
- I recommend you to test the Smart Contract to understand it.
- Show the address of the Smart Contract in your website and let the visitors exchange their Ethers for your Tokens automatically.
If you have doubts about how to use the SC you can find me on LinkedIn: https://www.linkedin.com/in/jordi-piqueras-50b439b9/.
More info about Ethereum and Smart Contracts: https://solidity.readthedocs.io/en/latest/ https://theethereum.wiki/w/index.php/ERC20_Token_Standard
-
Copy the content of the file TokenERC20.sol and paste on this webeditor URL: (https://remix.ethereum.org/#optimize=false&version=soljson-v0.4.20+commit.3155dd80.js).
-
Configure the editor:
Mark the Option Autocompile and press "Start Compile" to upload the contract.
- Each Smart Contract on Ethereum consume Gas then you need to define a number.
Chose the TokenERC20 contract
- Complete the "Create input" with you Token data: The structure of the data is: quantity of tokens, "Name of the Token", "Symbol of the token" Example with Bitcoin: 100, "Bitcoin", "BTC"
-
Run the Code, this will execute the constructor method "function TokenERC20".
-
Copy the address of the tokens and paste on the input "balanceOf" with quotes to see the balance of the address, press the button to see it.
- Test the function transfer: Complete input Create and after that put an address on the input transfer and a value ("address", value): Example: "0x14723a09acff6d2a60dcdf7aa4aff308fddc160c", 2 You can use another Test address: "0x14723a09acff6d2a60dcdf7aa4aff308fddc160c" After do the transfer verify the token balance of this address.
You can test transfers modifying the input "account address" and the input "transfer".
Special mention to Platzi Team to introduce me in the Blockchain tech. https://platzi.com/cursos/