Class BakingRightsQuery
Rpc query to get baking rights
Namespace: Netezos.Rpc.Queries
Assembly: Netezos.dll
Syntax
public class BakingRightsQuery : RpcObject
Methods
| Improve this Doc View SourceGetAsync(Boolean)
Executes the query and returns the baking rights
Declaration
public Task<dynamic> GetAsync(bool all = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | all | Specifies whether all baking opportunities for each baker will be returned or only the first one |
Returns
Type | Description |
---|---|
Task<System.Object> |
GetAsync(Int32, Boolean)
Executes the query and returns the baking rights
Declaration
public Task<dynamic> GetAsync(int maxPriority, bool all = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxPriority | Maximum priority of baking rights to be returned |
System.Boolean | all | Specifies whether all baking opportunities for each baker will be returned or only the first one |
Returns
Type | Description |
---|---|
Task<System.Object> |
GetAsync(String, Boolean)
Executes the query and returns the baking rights
Declaration
public Task<dynamic> GetAsync(string baker, bool all = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | baker | Delegate whose baking rights are to be returned |
System.Boolean | all | Specifies whether all baking opportunities for each baker will be returned or only the first one |
Returns
Type | Description |
---|---|
Task<System.Object> |
GetAsync<T>(Boolean)
Executes the query and returns the baking rights
Declaration
public Task<T> GetAsync<T>(bool all = false)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | all | Specifies whether all baking opportunities for each baker will be returned or only the first one |
Returns
Type | Description |
---|---|
Task<T> |
Type Parameters
Name | Description |
---|---|
T |
GetAsync<T>(Int32, Boolean)
Executes the query and returns the baking rights
Declaration
public Task<T> GetAsync<T>(int maxPriority, bool all = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxPriority | Maximum priority of baking rights to be returned |
System.Boolean | all | Specifies whether all baking opportunities for each baker will be returned or only the first one |
Returns
Type | Description |
---|---|
Task<T> |
Type Parameters
Name | Description |
---|---|
T |
GetAsync<T>(String, Boolean)
Executes the query and returns the baking rights
Declaration
public Task<T> GetAsync<T>(string baker, bool all = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | baker | Delegate whose baking rights are to be returned |
System.Boolean | all | Specifies whether all baking opportunities for each baker will be returned or only the first one |
Returns
Type | Description |
---|---|
Task<T> |
Type Parameters
Name | Description |
---|---|
T |
GetFromCycleAsync(Int32, Boolean)
Executes the query and returns the baking rights
Declaration
public Task<dynamic> GetFromCycleAsync(int cycle, bool all = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | cycle | Cycle at which the baking rights are to be returned |
System.Boolean | all | Specifies whether all baking opportunities for each baker will be returned or only the first one |
Returns
Type | Description |
---|---|
Task<System.Object> |
GetFromCycleAsync(Int32, Int32, Boolean)
Executes the query and returns the baking rights
Declaration
public Task<dynamic> GetFromCycleAsync(int cycle, int maxPriority, bool all = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | cycle | Cycle at which the baking rights are to be returned |
System.Int32 | maxPriority | Maximum priority of baking rights to be returned |
System.Boolean | all | Specifies whether all baking opportunities for each baker will be returned or only the first one |
Returns
Type | Description |
---|---|
Task<System.Object> |
GetFromCycleAsync(Int32, String, Boolean)
Executes the query and returns the baking rights
Declaration
public Task<dynamic> GetFromCycleAsync(int cycle, string baker, bool all = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | cycle | Cycle at which the baking rights are to be returned |
System.String | baker | Delegate whose baking rights are to be returned |
System.Boolean | all | Specifies whether all baking opportunities for each baker will be returned or only the first one |
Returns
Type | Description |
---|---|
Task<System.Object> |
GetFromCycleAsync<T>(Int32, Boolean)
Executes the query and returns the baking rights
Declaration
public Task<T> GetFromCycleAsync<T>(int cycle, bool all = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | cycle | Cycle at which the baking rights are to be returned |
System.Boolean | all | Specifies whether all baking opportunities for each baker will be returned or only the first one |
Returns
Type | Description |
---|---|
Task<T> |
Type Parameters
Name | Description |
---|---|
T |
GetFromCycleAsync<T>(Int32, Int32, Boolean)
Executes the query and returns the baking rights
Declaration
public Task<T> GetFromCycleAsync<T>(int cycle, int maxPriority, bool all = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | cycle | Cycle at which the baking rights are to be returned |
System.Int32 | maxPriority | Maximum priority of baking rights to be returned |
System.Boolean | all | Specifies whether all baking opportunities for each baker will be returned or only the first one |
Returns
Type | Description |
---|---|
Task<T> |
Type Parameters
Name | Description |
---|---|
T |
GetFromCycleAsync<T>(Int32, String, Boolean)
Executes the query and returns the baking rights
Declaration
public Task<T> GetFromCycleAsync<T>(int cycle, string baker, bool all = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | cycle | Cycle at which the baking rights are to be returned |
System.String | baker | Delegate whose baking rights are to be returned |
System.Boolean | all | Specifies whether all baking opportunities for each baker will be returned or only the first one |
Returns
Type | Description |
---|---|
Task<T> |
Type Parameters
Name | Description |
---|---|
T |
GetFromLevelAsync(Int32, Boolean)
Executes the query and returns the baking rights
Declaration
public Task<dynamic> GetFromLevelAsync(int level, bool all = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | level | Level of the block at which the baking rights are to be returned |
System.Boolean | all | Specifies whether all baking opportunities for each baker will be returned or only the first one |
Returns
Type | Description |
---|---|
Task<System.Object> |
GetFromLevelAsync(Int32, Int32, Boolean)
Executes the query and returns the baking rights
Declaration
public Task<dynamic> GetFromLevelAsync(int level, int maxPriority, bool all = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | level | Level of the block at which the baking rights are to be returned |
System.Int32 | maxPriority | Maximum priority of baking rights to be returned |
System.Boolean | all | Specifies whether all baking opportunities for each baker will be returned or only the first one |
Returns
Type | Description |
---|---|
Task<System.Object> |
GetFromLevelAsync(Int32, String, Boolean)
Executes the query and returns the baking rights
Declaration
public Task<dynamic> GetFromLevelAsync(int level, string baker, bool all = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | level | Level of the block at which the baking rights are to be returned |
System.String | baker | Delegate whose baking rights are to be returned |
System.Boolean | all | Specifies whether all baking opportunities for each baker will be returned or only the first one |
Returns
Type | Description |
---|---|
Task<System.Object> |
GetFromLevelAsync<T>(Int32, Boolean)
Executes the query and returns the baking rights
Declaration
public Task<T> GetFromLevelAsync<T>(int level, bool all = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | level | Level of the block at which the baking rights are to be returned |
System.Boolean | all | Specifies whether all baking opportunities for each baker will be returned or only the first one |
Returns
Type | Description |
---|---|
Task<T> |
Type Parameters
Name | Description |
---|---|
T |
GetFromLevelAsync<T>(Int32, Int32, Boolean)
Executes the query and returns the baking rights
Declaration
public Task<T> GetFromLevelAsync<T>(int level, int maxPriority, bool all = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | level | Level of the block at which the baking rights are to be returned |
System.Int32 | maxPriority | Maximum priority of baking rights to be returned |
System.Boolean | all | Specifies whether all baking opportunities for each baker will be returned or only the first one |
Returns
Type | Description |
---|---|
Task<T> |
Type Parameters
Name | Description |
---|---|
T |
GetFromLevelAsync<T>(Int32, String, Boolean)
Executes the query and returns the baking rights
Declaration
public Task<T> GetFromLevelAsync<T>(int level, string baker, bool all = false)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | level | Level of the block at which the baking rights are to be returned |
System.String | baker | Delegate whose baking rights are to be returned |
System.Boolean | all | Specifies whether all baking opportunities for each baker will be returned or only the first one |
Returns
Type | Description |
---|---|
Task<T> |
Type Parameters
Name | Description |
---|---|
T |