playground

The world is a playground.

Geth

Web3.js でノードに接続している peer の数を取得

web3.eth.net.getPeerCount() .then(console.log);

Linux (Ubuntu 16.04 LTS) に geth をインストール

Linux (Ubuntu 16.04 LTS) に geth をインストールするには、次のコマンドを実行します。 $ sudo apt-get install software-properties-common $ sudo add-apt-repository -y ppa:ethereum/ethereum $ sudo apt-get update $ sudo apt-get install ethereum …

Ethereum の Block Gas Limit を取得

この記事では Ethereum のブロックごとの Gas Limit を取得する方法をいくつか紹介します。 ちなみに Privatenet, Ropsten 上での Smart Contract のデプロイ時に Exceeds block gas limit というエラーが出てかなり困っていたのですが、原因はネットワーク…

Infura の JSON RPC API で Ethereum アドレスの残高を取得

はじめに Geth と呼ばれる Ethreum クライアントは、JSON RPC API を提供することができます。 JSON RPC API を使用することで、Geth を実行せずに、外部のサーバ(ノード)を使用して、Ether の残高を取得したり、トランザクションを投げたりすることができ…

iOS で Ethereum アカウントを作成・アドレス取得

Geth のライブラリを Cocoapods でインストールしていることが前提 blog.playground.io 次のようなコードで、Ethereum のアカウント作成・アドレス取得ができる // gist.github.com Ethereum 関連の情報は https://scrapbox.io/sushiether/ に集約することに…