ETH开发系列

以太坊合约开发精要

2017-10-18  本文已影响765人  菠菜期权

最近只是为了研究下如何实现ERC-20 token代币的转账transfer,废了老大劲,查了无数资料。若学会了调用合约转账,也就把很多以太坊相关技术也搞明白了。为了少走弯路,遂作下记录备用之。(一件简单的事情其实有很多前提作为基础)


创建私链http://blog.csdn.net/weixin_40401264/article/details/78095222

参考文档:

How to Build a Private Ethereum Blockchain https://media.consensys.net/how-to-build-a-private-ethereum-blockchain-fbf3904f337

http://ethdocs.org/en/latest/network/test-networks.html?highlight=private%20chain

https://github.com/ethereum/go-ethereum/wiki/Private-network

https://github.com/ethereum/go-ethereum/wiki/Setting-up-private-network-or-local-cluster

http://chainskills.com/2017/03/10/part-3-setup-the-private-chain-miners/

发布合约http://blog.csdn.net/weixin_40401264/article/details/78135785

安装solc https://solidity.readthedocs.io/en/latest/installing-solidity.html

使用solc https://solidity.readthedocs.io/en/latest/using-the-compiler.html

solcjs在线版(不完全兼容solc)https://ethereum.github.io/browser-solidity/

编译合约的几种方式https://ethereum.stackexchange.com/questions/15435/how-to-compile-solidity-contracts-with-geth-v1-6

First steps with Ethereum Private Networks and Smart Contracts on Ubuntu 16.04 https://alanbuxton.wordpress.com/2017/07/19/first-steps-with-ethereum-private-networks-and-smart-contracts-on-ubuntu-16-04/

How to call a contract method using the eth_call JSON-RPC API      https://ethereum.stackexchange.com/questions/3514/how-to-call-a-contract-method-using-the-eth-call-json-rpc-api/3520#3520

智能合约实战  https://ethereum.iethpay.com/smart-contract-battle1.html

利用RPC获取token余额https://ethereum.stackexchange.com/questions/9034/how-can-i-retrieve-my-accounts-augur-rep-token-balance-via-json-rpc

web3 token transfer  https://mail.queryxchange.com/q/29_26672/how-do-i-transfer-erc20-tokens-gnt-omg-etc-from-a-cold-wallet-to-another-account-or-exchange-using-geth/

Truffle 项目实战,Solidity IDE, 智能合约部署http://www.cnblogs.com/zl03jsj/p/7074435.html

How To Create Your Own Ethereum Token In An Hour (ERC20 + Verified)  https://steemit.com/ethereum/@maxnachamkin/how-to-create-your-own-ethereum-token-in-an-hour-erc20-verified

How to transfer coin from account1 to account2 with web3.py https://www.queryxchange.com/q/29_26067/how-to-transfer-coin-from-account1-to-account2-with-web3-py/


开发模式:geth --datadir "/tmp/ethereum_dev_mode/geth/" --fast --dev console


我正在「区块链金融」和朋友们讨论有趣的话题,你一起来吧?

https://t.xiaomiquan.com/nqZfmQv

以太坊合约开发精要

上一篇 下一篇

猜你喜欢

热点阅读