Home

Get Linea chain ID

POST
https://linea.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns the hexadecimal string of the current chain ID.

Body

application/json

JSON-RPC request envelope.

jsonrpcstring2.0required

JSON-RPC protocol version.

methodstringeth_chainIdrequired

JSON-RPC method name.

paramsArray<any>required

This method does not require parameters. Use an empty array.

idintegerrequired

Identifier echoed in the response.

Response

200OK

Chain ID response