先访问github上go语言开发客户端网址:
https://github.com/ethereum/go-ethereum
安装ethereum
https://github.com/ethereum/go-ethereum/wiki/Building-Ethereum
在MAC上安装
brew tap ethereum/ethereum
brew install ethereum
dogiant@bogon:/usr/local$brew tap ethereum/ethereum
Updating Homebrew...
==>Tapping ethereum/ethereum
Cloning into '/usr/local/Homebrew/Library/Taps/ethereum/homebrew-ethereum'...
remote: Counting objects: 6, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 6 (delta 1), reused 1 (delta 0), pack-reused 0
Unpacking objects: 100% (6/6), done.
Checking connectivity... done.
Tapped 3 formulae (31 files, 33.9K)
dogiant@bogon:/usr/local$brew install ethereum
==>Installing ethereum from ethereum/ethereum
==>Installing dependencies for ethereum/ethereum/ethereum:go
==>Installing ethereum/ethereum/ethereum dependency:go
==>Downloadinghttps://homebrew.bintray.com/bottles/go-1.7.4_1.el_capitan.bottle.tar.gz
######################################################################## 100.0%
==>Pouring go-1.7.4_1.el_capitan.bottle.tar.gz
==>Caveats
As of go 1.2, a valid GOPATH is required to use the `go get` command:
  https://golang.org/doc/code.html#GOPATH

You may wish to add the GOROOT-based install location to your PATH:
  export PATH=$PATH:/usr/local/opt/go/libexec/bin
==>Summary
��  /usr/local/Cellar/go/1.7.4_1: 6,438 files, 250.7M
==>Installingethereum/ethereum/ethereum
==>Cloninghttps://github.com/ethereum/go-ethereum.git
Cloning into '/Users/dogiant/Library/Caches/Homebrew/ethereum--git'...
remote: Counting objects: 2737, done.
remote: Compressing objects: 100% (2066/2066), done.
remote: Total 2737 (delta 963), reused 1654 (delta 553), pack-reused 0
Receiving objects: 100% (2737/2737), 14.91 MiB | 112.00 KiB/s, done.
Resolving deltas: 100% (963/963), done.
Checking connectivity... done.
Note: checking out 'ff07d54843ea7ed9997c420d216b4c007f9c80c3'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:

git checkout -b <new-branch-name>

Checking out files: 100% (2487/2487), done.
==>Checking out tag v1.5.5
==>go env
==>make all
==>Caveats
To have launchd start ethereum/ethereum/ethereum now and restart at login:
  brew services start ethereum/ethereum/ethereum
==>Summary
��  /usr/local/Cellar/ethereum/1.5.5: 9 files, 47.7M, built in 5 minutes 30 seconds

安装完毕后
geth -h
列出当前的用户
geth account list 
显示空
dogiant@bogon:~/ethereum/workspace$geth --datadir "~/ethdev" --dev
I1228 15:16:46.907316 cmd/utils/flags.go:615] WARNING: No etherbase set and no accounts found as default
I1228 15:16:46.907493 ethdb/database.go:83] Allotted 128MB cache and 1024 file handles to /Users/dogiant/ethdev/geth/chaindata
I1228 15:16:46.911765 ethdb/database.go:176] closed db:/Users/dogiant/ethdev/geth/chaindata
I1228 15:16:46.912892 node/node.go:176] instance: Geth/v1.5.5-stable-ff07d548/darwin/go1.7.4
I1228 15:16:46.912925 ethdb/database.go:83] Allotted 128MB cache and 1024 file handles to /Users/dogiant/ethdev/geth/chaindata
I1228 15:16:46.935109 eth/backend.go:280] Successfully wrote custom genesis block: e5be92145a301820111f91866566e3e99ee344d155569e4556a39bc71238f3bc
I1228 15:16:46.935127 eth/backend.go:299] ethash used in test mode
I1228 15:16:46.935536 eth/db_upgrade.go:346] upgrading db log bloom bins
I1228 15:16:46.935580 eth/db_upgrade.go:354] upgrade completed in 48.143µs
I1228 15:16:46.935601 eth/backend.go:191] Protocol Versions: [63 62], Network Id: 1
I1228 15:16:46.935744 eth/backend.go:219] Chain config: {ChainID: 1 Homestead: 1150000 DAO: 1920000 DAOSupport: true EIP150: 2463000 EIP155: 2675000 EIP158: 2675000}
I1228 15:16:46.935983 core/blockchain.go:219] Last header: #0 [e5be9214…] TD=131072
I1228 15:16:46.935998 core/blockchain.go:220] Last block: #0 [e5be9214…] TD=131072
I1228 15:16:46.936007 core/blockchain.go:221] Fast block: #0 [e5be9214…] TD=131072
I1228 15:16:46.936626 p2p/server.go:342] Starting Server
I1228 15:16:49.127910 p2p/discover/udp.go:227] Listening, enode://05399f51a43805c17f82e5016d5969d14b3092018cae87eec77ed52291d66c50c7d7bf024d953b0afcccd44c717f17aaf251b897d770054205ea268b49a3050b@10.0.37.126:58049
I1228 15:16:49.128111 whisper/whisperv2/whisper.go:176] Whisper started
I1228 15:16:49.128115 p2p/server.go:610] Listening on [::]:55739
I1228 15:16:49.129641 node/node.go:341] IPC endpoint opened: /Users/dogiant/ethdev/geth.ipc
dogiant@dubiaoqideMBP:~$geth --dev console 2>> file_to_log_output
Welcome to the Geth JavaScript console!

instance: Geth/v1.5.5-stable-ff07d548/darwin/go1.7.4
 modules: admin:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 shh:1.0 txpool:1.0 web3:1.0

> eth.accounts
[]
> personal.newAccount('123456')
"0x556d64ecb09b5df590a2ab842b53a8041e3961b4"
> eth.accounts
["0x556d64ecb09b5df590a2ab842b53a8041e3961b4"]
> eth.accounts
["0x556d64ecb09b5df590a2ab842b53a8041e3961b4"]
> personal.newAccount('123456')
"0xb0945a303834ff763695e21ed8acbe80aefee9bb"
> eth.accounts
["0x556d64ecb09b5df590a2ab842b53a8041e3961b4","0xb0945a303834ff763695e21ed8acbe80aefee9bb"]
>

dogiant@dubiaoqideMBP:~$geth --dev account list
Account #0: {556d64ecb09b5df590a2ab842b53a8041e3961b4} /var/folders/jy/q2f6pdjn6p11ytfx0xk8yp7m0000gn/T/ethereum_dev_mode/keystore/UTC--2016-12-28T07-20-52.337017793Z--556d64ecb09b5df590a2ab842b53a8041e3961b4
Account #1: {b0945a303834ff763695e21ed8acbe80aefee9bb} /var/folders/jy/q2f6pdjn6p11ytfx0xk8yp7m0000gn/T/ethereum_dev_mode/keystore/UTC--2016-12-28T07-25-51.683157537Z—b0945a303834ff763695e21ed8acbe80aefee9bb

> user1 = eth.accounts[0]
"0x556d64ecb09b5df590a2ab842b53a8041e3961b4"
> user2 = eth.accounts[1]
"0xb0945a303834ff763695e21ed8acbe80aefee9bb"
> user1
"0x556d64ecb09b5df590a2ab842b53a8041e3961b4"
> user2
"0xb0945a303834ff763695e21ed8acbe80aefee9bb"
> eth.getBalance(user1)
0
> eth.getBalance(user2)
0
> eth.blockNumber
0
> miner.start()
true
> eth.getBalance(user1)
390000000000000000000
> eth.getBalance(user2)
0
> miner.stop()
true
> eth.blockNumber
99
> eth.getBalance(user1)
495000000000000000000
> eth.getBalance(user2)
0
> eth.sendTransaction({from:user1,to:user2,value:web3.toWei(3,"ether")})
Error: account is locked
    at web3.js:3119:20
    at web3.js:6023:15
    at web3.js:4995:36
    at <anonymous>:1:1
> personal.unlockAccount("0x556d64ecb09b5df590a2ab842b53a8041e3961b4","123456")

true
> eth.sendTransaction({from:user1,to:user2,value:web3.toWei(3,"ether")})
"0x39d604a1df899f6c80ce33279abe88aec28b6d97f83e2dda5f062dd3c099fcf3"
> eth.getBalance(user2)
0
> miner.start()
true
> miner.stop()
true
> eth.getBalance(user2)
3000000000000000000
>

问题1:一开始用get account list总是看不到新建的用户,后来考虑是开发控制台创建的用户要跟开发一致 加了 —dev后看到正常显示账号

看日志以太币转账,转账后需要挖矿确认

在MAC环境下之以太坊(ethereum)开发环境安装相关推荐

  1. 第一课 如何在WINDOWS环境下搭建以太坊开发环境

    目录:https://blog.csdn.net/qq_40452317/article/details/90270046 [本文目标] 根据本文指导,可以在WINDOUWS环境下完成以太坊智能合约部 ...

  2. 第二课 如何在WINDOWS环境下搭建以太坊开发环境

    [本文目标] 根据本文指导,可以在WINDOUWS环境下完成以太坊智能合约部署前的比较环境准备. [技术收获] 如何在WINDOW(笔者以WINDOWS 10为例)环境搭建以太坊开发环境,按照以下安装 ...

  3. 以太坊DApp开发环境搭建

    2019独角兽企业重金招聘Python工程师标准>>> 以太坊DApp开发环境搭建分为Ubuntu.Windows.mac下的搭建.目的为开发者提供一个以太坊开发.测试的搭建开发环境 ...

  4. 以太坊本地开发环境搭建

    本文所搭建的环境是在 Mac 上的开发环境,其他操作系统上与此非常相似,依然有参考价值. 作为一枚区块链开发工程师,本地的开发环境是必不可少的.我们首先看看需要哪些工具: go-ethereum so ...

  5. amd cpu不能在cmd环境下运行java代码_00 开发环境搭建

    我们来着手在本地计算机环境安装 TensorFlow 最新版框架.TensorFlow 框架支持多种常见的操作系统,如 Windows 10.Ubuntu 18.04.Mac OS 等等,同时也支持运 ...

  6. 【win10 windows环境下qt6.4.1+vs2019开发环境搭建】

    win10 qt6.4.1+vs2019环境搭建 在wind10 64位操作系统下搭建Qt6.4.1 + Visual Studio 2019 MSVC开发环境,软件下载说明一下,VS,QT都可以去官 ...

  7. 从零开始搭建Ubuntu 环境下的Android 源码开发环境

    本文从一个干净的Ubuntu 10.04 操作系统出发,一步一步引导你搭建自己的基于eclipse IDE 的Android源码开发环境. 正文会包含一下这些内容: 获得源码 编译源码准备工作 编译工 ...

  8. macos nginx php mysql_mac环境下搭建nginx + php + mysql开发环境

    1.安装homebrew(mac下好用的包管理器) 第一步,获取install文件 把官网给的脚本拿下来 curl -fsSL https://raw.githubusercontent.com/Ho ...

  9. 以太坊(Ethereum) - 什么是智能合约

    章节 以太坊(Ethereum) – 是什么 以太坊(Ethereum) – 什么是智能合约 以太坊(Ethereum) – 以太币 以太坊(Ethereum) – 虚拟机(E.V.M.) 以太坊(E ...

  10. 以太坊(Ethereum) - 让浏览器支持区块链(MetaMask)

    章节 以太坊(Ethereum) – 是什么 以太坊(Ethereum) – 什么是智能合约 以太坊(Ethereum) – 以太币 以太坊(Ethereum) – 虚拟机(E.V.M.) 以太坊(E ...

最新文章

  1. 岗位推荐 | 腾讯AI Lab招聘计算机视觉方向实习生
  2. error: cannot read: aaa.java_Java期末考试习题库[选择题填空题改错题学生].doc
  3. spring-aspectj的几个aop注解
  4. 迟到的读书笔记 李开复自传:世界因你不同
  5. 使用Python自动下载Himawari-8(葵花8)数据产品——以AOD L3级日均数据和小时数据为例
  6. 实时动作游戏同步方式和传输协议选择
  7. 【问】存货盘点单中的数量在盘点报表和盘点差异处理中看不到
  8. 什么是“海恩法则”?
  9. 485集线器 4口485集线器 4口485 HUB
  10. oracle使用decode实现竖表转横表 (列转行)
  11. 【IO专栏】Java OIO NIO通信对比分析【002】
  12. nginx的配置优化及经常使用的超时配置说明
  13. 走近棒球运动·全国青年棒球锦标赛·MLB棒球创造营
  14. 国产肠胃养护猫粮还可以
  15. elasticSearch常见问题答疑
  16. python数字计算器_Python作为计算器使用(一)——数字
  17. 电脑如何查看及开启虚拟化
  18. Python实现图片识别加翻译
  19. linux python excel文件,Linux下用python处理excel
  20. 视频教程-JavaScript拼图游戏视频教程-JavaScript

热门文章

  1. 第五话 Asp.Net MVC 3.0【MVC实战项目の一】
  2. HTTP 500 - 内部服务器错误的解决
  3. Windows 7 语言包
  4. 第2章 神经网络的数学基础
  5. Swift - as、as!、as?三种类型转换操作使用一览
  6. NYOJ760-See LCS again,有技巧的暴力!
  7. 关于OpenFOAM的一些学习资料
  8. 九种食物摆脱便秘烦恼 - 生活至上,美容至尚!
  9. Baby Audio Smooth Operator for Mac(智能信号平衡器插件)
  10. Java的BIO,NIO和AIO的区别于演进