-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ropsten-address
30 lines (21 loc) · 1.41 KB
/
Ropsten-address
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
0xab68d38b7941136a633cc74f05f8554ea3565f75
> Useful commands: Geth
geth --testnet --fast --bootnodes "enode://20c9ad97c081d63397d7b685a412227a40e23c8bdc6688c6f37e97cfbc22d2b4d1db1510d8f61e6a8866ad7f0e17c02b14182d37ea7c3c8b9c2683aeb6b733a1@52.169.14.227:30303,enode://6ce05930c72abc632c58e2e4324f7c7ea478cec0ed4fa2528982cf34483094e9cbc9216e7aa349691242576d552a2a56aaeae426c5303ded677ce455ba1acd9d@13.84.180.240:30303" --rpc --rpcapi db,eth,net,web3,personal --rpcport 8545 --rpcaddr 0.0.0.0 --rpccorsdomain "*"
> Useful Commands: web3
https://github.com/ethereum/wiki/wiki/JavaScript-API#web3ethsyncing
web3.eth.blockNumber
web3 = new Web3(new Web3.providers.HttpProvider("http://54.232.215.98:8545"))
web3.isConnected()
web3.eth.syncing
web3.eth.getTransaction('0xe6834de5103d79849c89c07db79e57f83608dd623e9679d5435013b6fafaf4e3')
web3.eth.accounts
Account
web3.eth.getBalance('0xab68d38b7941136a633cc74f05f8554ea3565f75')
web3.personal.unlockAccount('0xab68d38b7941136a633cc74f05f8554ea3565f75', 'verystrongpassword', 15000)
web3 = new Web3(new Web3.providers.HttpProvider("http://54.232.215.98:8545"));
web3.eth.getBalance("0xab68d38b7941136a633cc74f05f8554ea3565f75")
Deploying Voting...
... 0x8dfa1dfa0c317a64737f90d4abcc881c225413fdb9fbd0216fc5255fc71d8590
Voting: 0x911458b9c7591b1f02ea2f09c18d8f65aea5ae3e
Saving successful migration to network...
... 0x2f09da48bdbb438ae3ea95f22ecdde05323c958f0a45f72aadbc2a680c03de20