You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Indexer has the ability to selectively enable or disable parameters for endpoints. Disabling a "required" parameter will result in the entire endpoint being disabled while disabling an "optional" parameter will cause an error to be returned only if the parameter is provided.
118
+
119
+
### Viewing the Current Configuration
120
+
121
+
The Indexer has a default set of disabled parameters. To view the disabled parameters issue:
122
+
```
123
+
~$ algorand-indexer api-config
124
+
```
125
+
126
+
This will output ONLY the disabled parameters in a YAML configuration. To view all parameters (both enabled and disabled) issue:
127
+
128
+
```
129
+
~$ algorand-indexer api-config all
130
+
```
131
+
132
+
### Interpreting The Configuration
133
+
134
+
Below is a sample output of what the output of `algorand-indexer api-config` will look like:
135
+
136
+
```
137
+
/v2/accounts:
138
+
optional:
139
+
- currency-greater-than: disabled
140
+
- currency-less-than: disabled
141
+
/v2/assets/{asset-id}/transactions:
142
+
optional:
143
+
- note-prefix: disabled
144
+
- tx-type: disabled
145
+
- sig-type: disabled
146
+
- before-time: disabled
147
+
- after-time: disabled
148
+
- currency-greater-than: disabled
149
+
- currency-less-than: disabled
150
+
- address-role: disabled
151
+
- exclude-close-to: disabled
152
+
- rekey-to: disabled
153
+
required:
154
+
- asset-id: disabled
155
+
```
156
+
157
+
Seeing this we know that the `/v2/accounts` endpoint will return an error if either `currency-greater-than` or `currency-less-than` is provided. Additionally, because a "required" parameter is provided for `/v2/assets/{asset-id}/transactions` then we know this entire endpoint is disabled. The optional parameters are provided so that you can understand what else is disabled if you enable all "required" parameters.
158
+
115
159
## Metrics
116
160
117
161
The `/metrics` endpoint is configured with the `--metrics-mode` option and configures if and how [Prometheus](https://prometheus.io/) formatted metrics are generated.
0 commit comments