Interface ICommonApi
Represents a collection of functions to interact with the API endpoints
Inherited Members
Namespace: Algorand.V2.Algod
Assembly: Algorand.dll
Syntax
public interface ICommonApi : IApiAccessor
Methods
| Improve this Doc View SourceGetGenesis()
Gets the genesis information.
Declaration
string GetGenesis()
Returns
Type | Description |
---|---|
System.String | string |
Remarks
Returns the entire genesis file in json.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetGenesisAsync()
Gets the genesis information.
Declaration
Task<string> GetGenesisAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> | Task of string |
Remarks
Returns the entire genesis file in json.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetGenesisAsyncWithHttpInfo()
Gets the genesis information.
Declaration
Task<ApiResponse<string>> GetGenesisAsyncWithHttpInfo()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ApiResponse<System.String>> | Task of ApiResponse (string) |
Remarks
Returns the entire genesis file in json.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetGenesisWithHttpInfo()
Gets the genesis information.
Declaration
ApiResponse<string> GetGenesisWithHttpInfo()
Returns
Type | Description |
---|---|
ApiResponse<System.String> | ApiResponse of string |
Remarks
Returns the entire genesis file in json.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetVersion()
Declaration
Version GetVersion()
Returns
Type | Description |
---|---|
Version | Version |
Remarks
Retrieves the supported API versions, binary build versions, and genesis information.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetVersionAsync()
Declaration
Task<Version> GetVersionAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Version> | Task of Version |
Remarks
Retrieves the supported API versions, binary build versions, and genesis information.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetVersionAsyncWithHttpInfo()
Declaration
Task<ApiResponse<Version>> GetVersionAsyncWithHttpInfo()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ApiResponse<Version>> | Task of ApiResponse (Version) |
Remarks
Retrieves the supported API versions, binary build versions, and genesis information.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
GetVersionWithHttpInfo()
Declaration
ApiResponse<Version> GetVersionWithHttpInfo()
Returns
Type | Description |
---|---|
ApiResponse<Version> | ApiResponse of Version |
Remarks
Retrieves the supported API versions, binary build versions, and genesis information.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
HealthCheck()
Returns OK if healthy.
Declaration
void HealthCheck()
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
HealthCheckAsync()
Returns OK if healthy.
Declaration
Task HealthCheckAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Task of void |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
HealthCheckAsyncWithHttpInfo()
Returns OK if healthy.
Declaration
Task<ApiResponse<object>> HealthCheckAsyncWithHttpInfo()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ApiResponse<System.Object>> | Task of ApiResponse |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
HealthCheckWithHttpInfo()
Returns OK if healthy.
Declaration
ApiResponse<object> HealthCheckWithHttpInfo()
Returns
Type | Description |
---|---|
ApiResponse<System.Object> | ApiResponse of Object(void) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
Metrics()
Return metrics about algod functioning.
Declaration
void Metrics()
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
MetricsAsync()
Return metrics about algod functioning.
Declaration
Task MetricsAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | Task of void |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
MetricsAsyncWithHttpInfo()
Return metrics about algod functioning.
Declaration
Task<ApiResponse<object>> MetricsAsyncWithHttpInfo()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ApiResponse<System.Object>> | Task of ApiResponse |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
MetricsWithHttpInfo()
Return metrics about algod functioning.
Declaration
ApiResponse<object> MetricsWithHttpInfo()
Returns
Type | Description |
---|---|
ApiResponse<System.Object> | ApiResponse of Object(void) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SwaggerJSON()
Gets the current swagger spec.
Declaration
string SwaggerJSON()
Returns
Type | Description |
---|---|
System.String | string |
Remarks
Returns the entire swagger spec in json.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SwaggerJSONAsync()
Gets the current swagger spec.
Declaration
Task<string> SwaggerJSONAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.String> | Task of string |
Remarks
Returns the entire swagger spec in json.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SwaggerJSONAsyncWithHttpInfo()
Gets the current swagger spec.
Declaration
Task<ApiResponse<string>> SwaggerJSONAsyncWithHttpInfo()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ApiResponse<System.String>> | Task of ApiResponse (string) |
Remarks
Returns the entire swagger spec in json.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SwaggerJSONWithHttpInfo()
Gets the current swagger spec.
Declaration
ApiResponse<string> SwaggerJSONWithHttpInfo()
Returns
Type | Description |
---|---|
ApiResponse<System.String> | ApiResponse of string |
Remarks
Returns the entire swagger spec in json.
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |