First, install the required software:
- Open CMD (windows > run > type "cmd" > enter).
- Run
geth.exe --dev --ipcpath geth.ipc console
First, install the required software:
geth.exe --dev --ipcpath geth.ipc console
pragma solidity ^0.4.8; | |
contract tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes _extraData); } | |
contract MyToken { | |
/* Public variables of the token */ | |
string public standard = 'Token 0.1'; | |
string public name; | |
string public symbol; | |
uint8 public decimals; |
{ | |
"address": "84491dabc6366120bca1801b3223cc60b693e999", | |
"crypto": { | |
"cipher": "aes-128-ctr", | |
"ciphertext": "b2499f41a70f9792cf6444e150d256c8ad41ee009b5a54bf6e50c073630f06e4", | |
"cipherparams": { | |
"iv": "690c2b57b2f7389aae8f452ce0b2fc2c" | |
}, | |
"kdf": "scrypt", | |
"kdfparams": { |
pragma solidity ^0.4.5; | |
/* | |
Cadastrando itens em um struct | |
*/ | |
contract VipClub { | |
// Estrutura de dados Member, que possui os atributos `name` e `email` | |
struct Member { | |
string name; |
pragma solidity ^0.4.5; | |
/* | |
Ether Splitter é um simples contrato que divide o | |
ether enviado entre dois endereços. | |
*/ | |
contract EtherSplitter { | |
// Definição de evento. |
pragma solidity ^0.4.5; | |
contract MyToken { | |
/* | |
Variáveis públicas do token. | |
Elas conformam com o padrão de moedas na rede ethereum, este padrão permite integração | |
com as Wallets e interoperabilidade com outros contratos. | |
Standard ERC 20: https://github.com/ethereum/EIPs/issues/20 | |
*/ | |
string public standard = 'Token 0.1'; |
/** | |
* Some cool JavaScript prototypes. | |
* Author: Everton Fraga <everton{shift+2}kindaconnected.com> | |
* | |
*/ | |
/* | |
* Number.times:Array | |
* Param: int n |