geth attach

geth --exec "eth.blockNumber" attach --datadir ./ geth --exec "eth.syncing" attach --datadir ./ geth --exec "admin.peers" attach --datadir ./ geth --exec "clique.getSnapshot()" attach --datadir ./ watch -n 2 'geth --exec "clique.getSnapshot()" attach --datadir ./'

2019-12-17 · 1 min · 33 words · Me

geth-prometheus

https://github.com/karalabe/geth-prometheus https://blog.ethereum.org/2019/07/10/geth-v1-9-0/ You can quickly reproduce the above charts via my clone of Maxim Krasilnikov’s project by running docker-compose up in the repo root and accessing http://localhost:3000 with the admin/admin credentials. Alternatively, you can view my testing snapshot on Raintank, or import this dashboard into your own Grafana instance

2019-12-16 · 1 min · 49 words · Me

ethereum geth check transaction

geth console ## get balance eth.getTransaction("") eth.getTransactionReceipt("") EX: transaction id 0x8dfaa1b5d2e660ee2d3aa9fd0eeb33cc726d50122790e882a914ffd7d02e3a83 eth.getTransaction(“0x8dfaa1b5d2e660ee2d3aa9fd0eeb33cc726d50122790e882a914ffd7d02e3a83”) eth.getTransactionReceipt(“0x8dfaa1b5d2e660ee2d3aa9fd0eeb33cc726d50122790e882a914ffd7d02e3a83”) ## get transaction count eth.getTransactionCount() eth.getTransactionCount(, “pending”) EX: transaction id 0x8dfaa1b5d2e660ee2d3aa9fd0eeb33cc726d50122790e882a914ffd7d02e3a83 eth.getTransactionCount(“0x8dfaa1b5d2e660ee2d3aa9fd0eeb33cc726d50122790e882a914ffd7d02e3a83”) eth.getTransactionCount(“0x8dfaa1b5d2e660ee2d3aa9fd0eeb33cc726d50122790e882a914ffd7d02e3a83”, “pending”) ## check pending queued txpool.status EX: { pending: 0, queued: 5 }

2019-12-13 · 1 min · 39 words · Me

ethereum 交易 驗證

https://www.blocktempo.com/blockchain-technical-overview-structure-of-blockchain-ethereum/ 3. 以私鑰簽署交易。 4. 廣播「加上簽名的交易封包」至鄰近的以太坊節點們。 https://ithelp.ithome.com.tw/m/articles/10215095 總而言之在區塊鏈接納這筆交易前,先試著用地址反推回原本的公鑰,再用公鑰解密當初這筆交易紀錄的簽章看看,如果公鑰解的開就可以代表是公鑰持有人本人所簽核的,這便是剛剛提到的"數位簽章"。 注意:這段比較像是一般加解密的方式,好像不是ethereum https://ethereum.stackexchange.com/questions/13778/get-public-key-of-any-ethereum-account ethereum 簽完的東西 可以 找出 public key 有public key 就可以知道是誰發出這個交易 https://zhuanlan.zhihu.com/p/30481292 签名完成了,我们如何验证某些签名后的数据是哪个账户签名的呢?在web3.js 发布1.0版本以前,验证签名只能通过智能合约的ecrecover函数来实现。新版的web3.js提供了web3.eth.accounts.recover函数用于验证签名。这里我们仍然使用传统的智能合约ecrecover方式。 ecrecover接收数据的哈希值以及r/s/v等参数作为输入,返回实施该签名的账户地址。因此我们只需要通过合约拿到实施签名的地址,和我们真正的地址进行对比,如果地址一致,就说明验证通过了。 這也是ethereum private key和address比較重要的原因了 https://learnblockchain.cn/books/geth/part3/sign-and-valid.html

2019-12-06 · 1 min · 26 words · Me

ethereum seth

https://github.com/dapphub/dapptools/tree/master/src/seth

2019-11-08 · 1 min · word · Me