POST

/

id
jsonrpc
method
params
curl --request POST \
  --url https://rpc1.taurus.axiomesh.io/

Returns the chain ID of current network

Body

id
number

Serves as a unique identifier for the request

jsonrpc
string

Indicates the version of JSON-RPC being used

method
string

Represents the name of the remote procedure or method to be called

params
array

Contains the list of parameters passed to the remote method

Response

id
number

Returns unique identifier for the request

jsonrpc
string

Returns the version of JSON-RPC being used

chainId
string

Returns hexadecimal value as a string representing the integer of the current chain id

curl  'https://example-rpc.axiomesh.io' \
--header 'Content-Type: application/json' \
--data '{
    "jsonrpc": "2.0",
    "method": "eth_chainId",
    "params": [],
    "id": 1
}'
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x54c"
}