aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web3ext
diff options
context:
space:
mode:
authorHackyMiner <hackyminer@gmail.com>2018-09-30 04:07:02 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-09-30 04:07:02 +0800
commit107f556b2d9811ea2d64c065531dcae33997fcb7 (patch)
treef8d1bd899336caf38fb4cb546e22312347bd7008 /internal/web3ext
parent44eb69561a32c1b1e5345b5872e7de69fff936c2 (diff)
downloadgo-tangerine-107f556b2d9811ea2d64c065531dcae33997fcb7.tar
go-tangerine-107f556b2d9811ea2d64c065531dcae33997fcb7.tar.gz
go-tangerine-107f556b2d9811ea2d64c065531dcae33997fcb7.tar.bz2
go-tangerine-107f556b2d9811ea2d64c065531dcae33997fcb7.tar.lz
go-tangerine-107f556b2d9811ea2d64c065531dcae33997fcb7.tar.xz
go-tangerine-107f556b2d9811ea2d64c065531dcae33997fcb7.tar.zst
go-tangerine-107f556b2d9811ea2d64c065531dcae33997fcb7.zip
internal/ethapi: add eth_chainId method (#17617)
This implements EIP-695.
Diffstat (limited to 'internal/web3ext')
-rw-r--r--internal/web3ext/web3ext.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/web3ext/web3ext.go b/internal/web3ext/web3ext.go
index f4eb47a12..bf4b7808f 100644
--- a/internal/web3ext/web3ext.go
+++ b/internal/web3ext/web3ext.go
@@ -434,6 +434,11 @@ 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',
params: 2,