getValidatorByTokenidWithHttpInfo method
Returns one claimed validator slot, scoped to the caller's org.
Returns one claimed validator slot, scoped to the caller's org. A slot another org holds, and a slot nobody holds, are both 404 — never a different status, so this route cannot be used to probe which slots are taken.
Note: This method returns the HTTP Response.
Parameters:
- String tokenId (required): TokenID is the slot's GenesisNFT token id, from the path, as a decimal string. A value that is not a positive integer is 400. It is a string rather than a number because the parse that has always served this route trims surrounding whitespace, and one parse rule is better than two.
Implementation
Future<Response> getValidatorByTokenidWithHttpInfo(String tokenId,) async {
// ignore: prefer_const_declarations
final path = r'/v1/validator/{tokenId}'
.replaceAll('{tokenId}', tokenId);
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <QueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}