eth_chainId
Returns the chain ID of the current network.
https://api.1inch.com/web3/59144
Supported on: Linea
Request
Request
object jsonrpc
* string (Enum)JSON-RPC version
2.0
method
* string The method to call
params
array Method parameters
items
any id
* number Request ID
JavaScript
Copy
1
Response
Chain ID
Chain ID
string JSON
Copy
1