Merge pull request #193 from lightclient/chainid

eth: add eth_chainId method
This commit is contained in:
lightclient 2022-03-10 04:52:03 -07:00 committed by GitHub
commit e8379016ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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.",