github.com/status-im/status-go@v1.1.0/services/accounts/README.md (about)

     1  Settings service
     2  ================
     3  
     4  Settings service provides private API for storing all configuration for a selected account.
     5  
     6  To enable:
     7  1. Client must ensure that settings db is initialized in the api.Backend.
     8  2. Add `settings` to APIModules in config.
     9  
    10  API
    11  ---
    12  
    13  ### settings_saveConfig
    14  
    15  #### Parameters
    16  
    17  - `type`: `string` - configuratin type. if not unique error is raised.
    18  - `conf`: `bytes` - raw json.
    19  
    20  ### settings_getConfig
    21  
    22  #### Parameters
    23  
    24  - `type`: string
    25  
    26  #### Returns
    27  
    28  - `conf` raw json
    29  
    30  ### settings_saveNodeConfig
    31  
    32  Special case of the settings_saveConfig. In status-go we are using constant `node-config` as a type for node configuration.
    33  Application depends on this value and will try to load it when node is started. This method is provided
    34  in order to remove syncing mentioned constant between status-go and users.
    35  
    36  #### Parameters
    37  
    38  - `conf`: params.NodeConfig