new OperatorApi()
- Version:
- 1.0
Operator service.
Methods
getOperator(xChainId, operatorId, callback)
GetOperator Search for the settings of a specific operator.
Parameters:
Name | Type | Description |
---|---|---|
xChainId |
String | Klaytn chain network ID (1001 or 8217) |
operatorId |
String | Operator account address |
callback |
OperatorApi~getOperatorCallback | The callback function, accepting three arguments: error, data, response data is of type: Operator |
retrieveOperators(xChainId, opts, callback)
RetrieveOperators Search for a list of created operators and the settings of each of them.
## Size * Thesize
query parameter is optional (minimum = 1, maximum = 1000, default = 100).* Submitting negative values result in errors.
* Submitting zero results in a query with
size=100
, which is the default value.* Submitting values greater than 1000 result in queries with
size=1000
, which is the maximum value.Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
xChainId |
String | Klaytn chain network ID (1001 or 8217) |
|||||||||||||||
opts |
Object | Optional parameters Properties
|
|||||||||||||||
callback |
OperatorApi~retrieveOperatorsCallback | The callback function, accepting three arguments: error, data, response data is of type: Operators |
Type Definitions
getOperatorCallback(error, data, response)
Callback function to receive the result of the getOperator operation.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
Operator | The data returned by the service call. |
response |
String | The complete HTTP response. |
retrieveOperatorsCallback(error, data, response)
Callback function to receive the result of the retrieveOperators operation.
Parameters:
Name | Type | Description |
---|---|---|
error |
String | Error message, if any. |
data |
Operators | The data returned by the service call. |
response |
String | The complete HTTP response. |