Git Product home page Git Product logo

geth-cli's Introduction

geth-cli

reference

https://github.com/dukedaily/go-bitcoin-demo

https://github.com/go-programming-tour-book/tour

帮助

./geth-cli -h

asciicast

生成钱包

./geth-cli createWallet new

asciicast

创建区块链

 ./geth-cli createWallet new
 ./geth-cli create address -a 1JNDCBtxwUc4aHAZgc7Ld2Qaq7CWmzUwsG

asciicast

打印区块链

./geth-cli print

asciicast

打印区块链所有交易

./geth-cli printTx

asciicast

列出所有钱包地址

./geth-cli listAddress

asciicast

获取余额

./geth-cli createWallet new
./geth-cli getBalance -a 19VKMWZxvVVsMUCNZhksBFQEa8poaKRJ8N

asciicast

添加区块

./geth-cli addBlock

asciicast

转账

geth-cli git:main # ./geth-cli send -f 19VKMWZxvVVsMUCNZhksBFQEa8poaKRJ8N -t 1NvMYVVTLD72Tz4Kn6vM51KtU5Q3DX1EB3 -a 5 -m 1B7hh26KJ9Rshi1L44yCSdD1yAzKHepja9 -s "send 5 btc"
找到付款人的私钥和公钥,准备创建交易...
outputIndex: 0
发现挖矿交易,无需遍历inputs
金额不足,创建交易失败!
注意,找到一笔无效的转账交易, 不添加到区块!
添加区块前,对交易进行校验...
verifyTransaction开始...
发现挖矿交易,无需校验!
当前交易校验成功:688890352f2904381b70e7241223c3afcbf652cc9a903965ebefbaa6dad5cf4b
merkleRoot:8f6b7fd0901e5fc3c4497b92ff4e198315b0a95451be6b35be9ab8d7882a61a3
开始挖矿...
挖矿成功,hash :0000523c46d6b94b23400c8777edb4cdf5df18561a5cf04fa069bd6b6661d6fd, nonce :23748
添加区块成功,转账成功!

geth-cli's People

Contributors

jokereven avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.