API reference
Fetch the operating mode of the light client instance

Fetch the operating mode of the light client instance

Retrieves the operating mode of the Avail light client. The Light client can operate in two different modes, LightClient or AppClient, depending on configuration of application ID(app-id) flag.

Params:

  • None

Response:

  • Operating mode
curl "localhost:7007/v1/mode"

If operating mode is LightClient response is:

"LightClient"

In case of AppClient mode, response is:

{"AppClient": {app_id}}