web3.js web3.eth.getProtocolVersion
code:getProtocolVersion.js
web3.eth.getProtocolVersion(callback)
ノードの Ethereum プロトコルバージョンを返します。
戻り値
String を返す Promise
プロトコルのバージョン
サンプル
code:example.js
web3.eth.getProtocolVersion()
.then(console.log);
"63"
原文
http://web3js.readthedocs.io/en/1.0/web3-eth.html#getprotocolversion
#web3.js #web3.js@1.0
web3.js 日本語 API リファレンス