Skip to main content

system_chain - JSON-RPC Method

Description#

Returns the name of the chain the node is connected to. This JSON-RPC method is useful for identifying which Acala network (mainnet or custom chain) the node is operating on.

Parameters#

This method does not require any parameters.

Returns#

FieldTypeDescription
resultstringThe name of the chain

Request Example#

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

Response Example#

{
"jsonrpc": "2.0",
"result": "Acala",
"id": 1
}

Code Examples#

curl https://api-acala.n.dwellir.com/YOUR_API_KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "system_chain",
"params": [],
"id": 1
}'