Class PrivateApi
Represents a collection of functions to interact with the API endpoints
Inheritance
Inherited Members
Namespace: Algorand.V2.Algod
Assembly: Algorand.dll
Syntax
public class PrivateApi : IPrivateApi, IApiAccessor
Constructors
| Improve this Doc View SourcePrivateApi(Configuration)
Initializes a new instance of the PrivateApi class using Configuration object
Declaration
public PrivateApi(Configuration configuration = null)
Parameters
Type | Name | Description |
---|---|---|
Configuration | configuration | An instance of Configuration |
PrivateApi(String)
Initializes a new instance of the PrivateApi class.
Declaration
public PrivateApi(string basePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | basePath |
Properties
| Improve this Doc View SourceConfiguration
Gets or sets the configuration object
Declaration
public Configuration Configuration { get; set; }
Property Value
Type | Description |
---|---|
Configuration | An instance of the Configuration |
ExceptionFactory
Provides a factory method hook for the creation of exceptions.
Declaration
public ExceptionFactory ExceptionFactory { get; set; }
Property Value
Type | Description |
---|---|
ExceptionFactory |
Methods
| Improve this Doc View SourceAbortCatchup(String)
Aborts a catchpoint catchup. Given a catchpoint, it aborts catching up to this catchpoint
Declaration
public CatchpointAbortResponse AbortCatchup(string catchpoint)
Parameters
Type | Name | Description |
---|---|---|
System.String | catchpoint | A catch point |
Returns
Type | Description |
---|---|
CatchpointAbortResponse | CatchpointAbortResponse |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
AbortCatchupAsync(String)
Aborts a catchpoint catchup. Given a catchpoint, it aborts catching up to this catchpoint
Declaration
public Task<CatchpointAbortResponse> AbortCatchupAsync(string catchpoint)
Parameters
Type | Name | Description |
---|---|---|
System.String | catchpoint | A catch point |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<CatchpointAbortResponse> | Task of CatchpointAbortResponse |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
AbortCatchupAsyncWithHttpInfo(String)
Aborts a catchpoint catchup. Given a catchpoint, it aborts catching up to this catchpoint
Declaration
public Task<ApiResponse<CatchpointAbortResponse>> AbortCatchupAsyncWithHttpInfo(string catchpoint)
Parameters
Type | Name | Description |
---|---|---|
System.String | catchpoint | A catch point |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ApiResponse<CatchpointAbortResponse>> | Task of ApiResponse (CatchpointAbortResponse) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
AbortCatchupWithHttpInfo(String)
Aborts a catchpoint catchup. Given a catchpoint, it aborts catching up to this catchpoint
Declaration
public ApiResponse<CatchpointAbortResponse> AbortCatchupWithHttpInfo(string catchpoint)
Parameters
Type | Name | Description |
---|---|---|
System.String | catchpoint | A catch point |
Returns
Type | Description |
---|---|
ApiResponse<CatchpointAbortResponse> | ApiResponse of CatchpointAbortResponse |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
AddDefaultHeader(String, String)
Add default header.
Declaration
[Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")]
public void AddDefaultHeader(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Header field name. |
System.String | value | Header field value. |
DefaultHeader()
Gets the default header.
Declaration
[Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")]
public IDictionary<string, string> DefaultHeader()
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.String> | Dictionary of HTTP header |
GetBasePath()
Gets the base path of the API client.
Declaration
public string GetBasePath()
Returns
Type | Description |
---|---|
System.String | The base path |
RegisterParticipationKeys(String, Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, Nullable<Boolean>)
Generate (or renew) and register participation keys on the node for a given account address.
Declaration
public PostTransactionsResponse RegisterParticipationKeys(string address, long? fee = default(long? ), long? keyDilution = default(long? ), long? roundLastValid = default(long? ), bool? noWait = default(bool? ))
Parameters
Type | Name | Description |
---|---|---|
System.String | address | The |
System.Nullable<System.Int64> | fee | The fee to use when submitting key registration transactions. Defaults to the suggested fee. (optional, default to 1000) |
System.Nullable<System.Int64> | keyDilution | value to use for two-level participation key. (optional) |
System.Nullable<System.Int64> | roundLastValid | The last round for which the generated participation keys will be valid. (optional) |
System.Nullable<System.Boolean> | noWait | Don't wait for transaction to commit before returning response. (optional) |
Returns
Type | Description |
---|---|
PostTransactionsResponse | PostTransactionsResponse |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
RegisterParticipationKeysAsync(String, Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, Nullable<Boolean>)
Generate (or renew) and register participation keys on the node for a given account address.
Declaration
public Task<PostTransactionsResponse> RegisterParticipationKeysAsync(string address, long? fee = default(long? ), long? keyDilution = default(long? ), long? roundLastValid = default(long? ), bool? noWait = default(bool? ))
Parameters
Type | Name | Description |
---|---|---|
System.String | address | The |
System.Nullable<System.Int64> | fee | The fee to use when submitting key registration transactions. Defaults to the suggested fee. (optional, default to 1000) |
System.Nullable<System.Int64> | keyDilution | value to use for two-level participation key. (optional) |
System.Nullable<System.Int64> | roundLastValid | The last round for which the generated participation keys will be valid. (optional) |
System.Nullable<System.Boolean> | noWait | Don't wait for transaction to commit before returning response. (optional) |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<PostTransactionsResponse> | Task of PostTransactionsResponse |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
RegisterParticipationKeysAsyncWithHttpInfo(String, Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, Nullable<Boolean>)
Generate (or renew) and register participation keys on the node for a given account address.
Declaration
public Task<ApiResponse<PostTransactionsResponse>> RegisterParticipationKeysAsyncWithHttpInfo(string address, long? fee = default(long? ), long? keyDilution = default(long? ), long? roundLastValid = default(long? ), bool? noWait = default(bool? ))
Parameters
Type | Name | Description |
---|---|---|
System.String | address | The |
System.Nullable<System.Int64> | fee | The fee to use when submitting key registration transactions. Defaults to the suggested fee. (optional, default to 1000) |
System.Nullable<System.Int64> | keyDilution | value to use for two-level participation key. (optional) |
System.Nullable<System.Int64> | roundLastValid | The last round for which the generated participation keys will be valid. (optional) |
System.Nullable<System.Boolean> | noWait | Don't wait for transaction to commit before returning response. (optional) |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ApiResponse<PostTransactionsResponse>> | Task of ApiResponse (PostTransactionsResponse) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
RegisterParticipationKeysWithHttpInfo(String, Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, Nullable<Boolean>)
Generate (or renew) and register participation keys on the node for a given account address.
Declaration
public ApiResponse<PostTransactionsResponse> RegisterParticipationKeysWithHttpInfo(string address, long? fee = default(long? ), long? keyDilution = default(long? ), long? roundLastValid = default(long? ), bool? noWait = default(bool? ))
Parameters
Type | Name | Description |
---|---|---|
System.String | address | The |
System.Nullable<System.Int64> | fee | The fee to use when submitting key registration transactions. Defaults to the suggested fee. (optional, default to 1000) |
System.Nullable<System.Int64> | keyDilution | value to use for two-level participation key. (optional) |
System.Nullable<System.Int64> | roundLastValid | The last round for which the generated participation keys will be valid. (optional) |
System.Nullable<System.Boolean> | noWait | Don't wait for transaction to commit before returning response. (optional) |
Returns
Type | Description |
---|---|
ApiResponse<PostTransactionsResponse> | ApiResponse of PostTransactionsResponse |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
SetBasePath(String)
Sets the base path of the API client.
Declaration
[Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")]
public void SetBasePath(string basePath)
Parameters
Type | Name | Description |
---|---|---|
System.String | basePath |
ShutdownNode(Nullable<Int32>)
Special management endpoint to shutdown the node. Optionally provide a timeout parameter to indicate that the node should begin shutting down after a number of seconds.
Declaration
public object ShutdownNode(int? timeout = default(int? ))
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int32> | timeout | (optional, default to 0) |
Returns
Type | Description |
---|---|
System.Object | Object |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
ShutdownNodeAsync(Nullable<Int32>)
Special management endpoint to shutdown the node. Optionally provide a timeout parameter to indicate that the node should begin shutting down after a number of seconds.
Declaration
public Task<object> ShutdownNodeAsync(int? timeout = default(int? ))
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int32> | timeout | (optional, default to 0) |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Object> | Task of Object |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
ShutdownNodeAsyncWithHttpInfo(Nullable<Int32>)
Special management endpoint to shutdown the node. Optionally provide a timeout parameter to indicate that the node should begin shutting down after a number of seconds.
Declaration
public Task<ApiResponse<object>> ShutdownNodeAsyncWithHttpInfo(int? timeout = default(int? ))
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int32> | timeout | (optional, default to 0) |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ApiResponse<System.Object>> | Task of ApiResponse (Object) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
ShutdownNodeWithHttpInfo(Nullable<Int32>)
Special management endpoint to shutdown the node. Optionally provide a timeout parameter to indicate that the node should begin shutting down after a number of seconds.
Declaration
public ApiResponse<object> ShutdownNodeWithHttpInfo(int? timeout = default(int? ))
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Int32> | timeout | (optional, default to 0) |
Returns
Type | Description |
---|---|
ApiResponse<System.Object> | ApiResponse of Object |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
StartCatchup(String)
Starts a catchpoint catchup. Given a catchpoint, it starts catching up to this catchpoint
Declaration
public CatchpointStartResponse StartCatchup(string catchpoint)
Parameters
Type | Name | Description |
---|---|---|
System.String | catchpoint | A catch point |
Returns
Type | Description |
---|---|
CatchpointStartResponse | CatchpointStartResponse |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
StartCatchupAsync(String)
Starts a catchpoint catchup. Given a catchpoint, it starts catching up to this catchpoint
Declaration
public Task<CatchpointStartResponse> StartCatchupAsync(string catchpoint)
Parameters
Type | Name | Description |
---|---|---|
System.String | catchpoint | A catch point |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<CatchpointStartResponse> | Task of CatchpointStartResponse |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
StartCatchupAsyncWithHttpInfo(String)
Starts a catchpoint catchup. Given a catchpoint, it starts catching up to this catchpoint
Declaration
public Task<ApiResponse<CatchpointStartResponse>> StartCatchupAsyncWithHttpInfo(string catchpoint)
Parameters
Type | Name | Description |
---|---|---|
System.String | catchpoint | A catch point |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<ApiResponse<CatchpointStartResponse>> | Task of ApiResponse (CatchpointStartResponse) |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |
StartCatchupWithHttpInfo(String)
Starts a catchpoint catchup. Given a catchpoint, it starts catching up to this catchpoint
Declaration
public ApiResponse<CatchpointStartResponse> StartCatchupWithHttpInfo(string catchpoint)
Parameters
Type | Name | Description |
---|---|---|
System.String | catchpoint | A catch point |
Returns
Type | Description |
---|---|
ApiResponse<CatchpointStartResponse> | ApiResponse of CatchpointStartResponse |
Exceptions
Type | Condition |
---|---|
ApiException | Thrown when fails to make API call |