All phases of Avail's unification drop have now ended, 👉👉 check out this page 👈👈 for more information.

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 "https://api.lightclient.mainnet.avail.so/v1/mode"

If operating mode is LightClient response is:

"LightClient"

In case of AppClient mode, response is:

{"AppClient": {app_id}}