/dev/null

geth入門

March 03, 2019

geth —networkid 3 —cache=1024 —syncmode fast —rpc —rpcapi db,eth,net,web3,personal,admin,miner —rpccorsdomain=* —rpcaddr 0.0.0.0

docker run -d --name ethereum-node -v /Users/YM/Docker/ethereum/data:/root -p 8545:8545 -p 30303:30303 ethereum/client-go --cache=512

docker run -d —name ethereum-node -v /Users/YM/Docker/ethereum/data:/root -p 8545:8545 -p 30303:30303 ethereum/client-go —cache=512 —datadir /root init /root/genesis.json

docker run -d --name ethereum-node -v /Users/YM/Docker/ethereum/data:/root -p 8545:8545 -p 30303:30303 ethereum/client-go --cache=512 --rpc --rpcaddr "localhost" --rpcport "8545" --rpccorsdomain "*" --rpcapi "eth,net,web3,personal" --networkid "10" --nodiscover --datadir "/root" console
> personal.unlockAccount(eth.accounts[0]) //アカウントのロック解除。パスワードを求められるので、適宜パスワードを入力する。
Unlock account 24afe6c0c64821349bc1bfa73110512b33fa18e1
Passphrase:
true

> eth.sendTransaction({from: eth.accounts[0], to: eth.accounts[1], value: web3.toWei(1, "ether")}) //送金の実行。実行結果としてトランザクションIDが返される。
Error: exceeds block gas limit
    at web3.js:3143:20
    at web3.js:6347:15
    at web3.js:5081:36
    at <anonymous>:1:1
    
> eth.sendTransaction({from: eth.accounts[0], to: eth.accounts[1], value: web3.toWei(1, "ether"), gas:5000})
Error: intrinsic gas too low
    at web3.js:3143:20
    at web3.js:6347:15
    at web3.js:5081:36
    at <anonymous>:1:1
    
https://github.com/ethereum/mist/issues/1671

hoge

Written by hoge who lives and works in Tokyo.