internal/ethapi: add eth_chainId method (#17617)

This implements EIP-695.
This commit is contained in:
HackyMiner
2018-09-30 05:07:02 +09:00
committed by Felix Lange
parent 44eb69561a
commit 107f556b2d
2 changed files with 14 additions and 0 deletions

View File

@ -433,6 +433,11 @@ const Eth_JS = `
web3._extend({
property: 'eth',
methods: [
new web3._extend.Method({
name: 'chainId',
call: 'eth_chainId',
params: 0
}),
new web3._extend.Method({
name: 'sign',
call: 'eth_sign',