eth: add eth_chainId method

This commit is contained in:
lightclient@protonmail.com 2022-03-10 12:45:58 +01:00
parent 596ad145d7
commit 20a78b323c
No known key found for this signature in database
GPG Key ID: 75C916AFEE20183E
1 changed files with 12 additions and 1 deletions

View File

@ -1,7 +1,7 @@
[
{
"name": "eth_protocolVersion",
"summary": "Returns the current ethereum protocol version.",
"summary": "Returns the current Ethereum protocol version.",
"params": [],
"result": {
"name": "Protocol version",
@ -11,6 +11,17 @@
}
}
},
{
"name": "eth_chainId",
"summary": "Returns the chain ID of the current network.",
"params": [],
"result": {
"name": "Chain ID",
"schema": {
"$ref": "#/components/schemas/uint"
}
}
},
{
"name": "eth_syncing",
"summary": "Returns an object with data about the sync status or false.",