Whitelists API
API path | /chain/whitelists/ |
method | POST |
required request headers | Content-Type: application/json Authorization: Bearer [ACC API Token] |
required request params | op_type: add_entry and remove_entry are supported kind: Type of whitelist. developer or user are supported. entry: EOA address to add or remove. |
response code | On success: 200 OK On Error: - 400 BadRequest : if a request body is empty or could not be parsed or a number of operations is greater than RequestConfig.MaxBatchLen- 401 Unauthorized : if authorization header does not satisfy the [conditions](401 Conditions)- 403 Forbidden : if a caller is [not authorized](403 Conditions) to perform all updates in request array (i.e., partial updates are not allowed)- 408 RequestTimeout : with partial response, if not all responses from storage node are received before RequestConfig.TimeoutMs or Timeout header in request- 500 InternalServerError : if fails to send an update request to the storage node, or fails to parse a response from the storage node |
request example |
|
response example - success |
|
response examples - error | Response Code: 400 Bad Request Note: not all error responses contain response body, but if response body exists it has the above format. |