Skip to main content

system_nodeRoles RPC method

Returns the roles the node is running as.

Parameters

This method does not accept any parameters

Returns

result string

A string representing the roles that the node is currently running as. The roles can include one or more of the following values: 'Full', 'Authority', 'Invalid', 'Light', or 'None'

Code Examples

curl https://api-polkadot.dwellir.com/<API-KEY> \
-X POST \
-H "Content-Type: application/json" \
--data '{"method":"system_nodeRoles","params":[],"id":1,"jsonrpc":"2.0"}'