playground

The world is a playground.

2018-05-17から1日間の記事一覧

Ethereum の適切な Gas Price を取得する

Web3.js の eth.getGasPrice メソッドを使用することで、過去数ブロックの GasPrice の中央値を取得することができる ドキュメント 以下の例は web3 version 0.20.x サンプルコード var web3 = new Web3(new Web3.providers.HttpProvider('https://mainnet.i…