This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.0; | |
// A simple smart contract | |
contract MessageContract { | |
string message = "Hello World"; | |
function getMessage() public constant returns(string) { | |
return message; | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"config": { | |
"chainId": 15, | |
"homesteadBlock": 0, | |
"eip155Block": 0, | |
"eip158Block": 0 | |
}, | |
"alloc" : {}, | |
"coinbase" : "0x0000000000000000000000000000000000000000", | |
"difficulty" : "0x20000", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D:\ethereum-examples\example_1>geth --datadir=./chaindata init genesis.json | |
WARN [07-22|10:37:13] No etherbase set and no accounts found as default | |
INFO [07-22|10:37:13] Allocated cache and file handles database=D:\\ethe | |
reum-examples\\example_1\\chaindata\\geth\\chaindata cache=16 handles=16 | |
INFO [07-22|10:37:13] Writing custom genesis block | |
INFO [07-22|10:37:13] Successfully wrote genesis state database=chaindat | |
a hash=5e1fc7.d790e0 | |
INFO [07-22|10:37:13] Allocated cache and file handles database=D:\\ethe | |
reum-examples\\example_1\\chaindata\\geth\\lightchaindata cache=16 handles=16 | |
INFO [07-22|10:37:13] Writing custom genesis block |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D:\ethereum-examples\example_1>geth --datadir=./chaindata --nodiscover | |
WARN [07-22|10:42:22] No etherbase set and no accounts found as default | |
INFO [07-22|10:42:22] Starting peer-to-peer node instance=Geth/v1. | |
7.3-stable-ab5646c5/windows-amd64/go1.9 | |
INFO [07-22|10:42:22] Allocated cache and file handles database=D:\\ethe | |
reum-examples\\example_1\\chaindata\\geth\\chaindata cache=128 handles=1024 | |
WARN [07-22|10:42:22] Upgrading chain database to use sequential keys | |
INFO [07-22|10:42:22] Initialised chain configuration config="{ChainID: | |
15 Homestead: 0 DAO: <nil> DAOSupport: false EIP150: <nil> EIP155: 0 EIP158: 0 M | |
etropolis: <nil> Engine: unknown}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D:\ethereum-examples\example_1>geth attach | |
Welcome to the Geth JavaScript console! | |
instance: Geth/v1.6.7-stable-ab5646c5/windows-amd64/go1.8.3 | |
modules: admin:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txp | |
ool:1.0 web3:1.0 | |
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> miner.start(2); | |
null | |
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> miner.stop(); | |
true | |
> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x004b176924f2074a562b80c0b2932658Fb6FDfa7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0x004b176924f2074a562b80c0b2932658Fb6FDfa7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
D:\ethereum-examples\example_1>geth --help | more | |
NAME: | |
geth - the go-ethereum command line interface | |
Copyright 2013-2017 The go-ethereum Authors | |
USAGE: | |
geth [options] command [command options] [arguments...] | |
VERSION: |
OlderNewer