eth_chainId

Get Chain ID

This endpoint returns EIP-155 Chain ID.

Parameters

Body

Param
Type
Description
Required

method

string

Name of method in this case: eth_chainId

Required

params

array

An empty array with no specific params

Required

id

string

id for request determined by client for JSON RPC requests

Required

jsonrpc

string

JSON RPC version in this case 2.0.0

Required

Request

Request Type: POST

{  
    "method": "eth_chainId",  
    "params": [],  
    "id": 1,  
    "jsonrpc": "2.0"
}

Response

{  
    "jsonrpc": "2.0",  
    "id": 1,  
    "result": "0x13882"
}

Last updated