Class ParseBlockQuery
Rpc query to access blocks parsing
Inherited Members
Namespace: Netmavryk.Rpc.Queries.Post
Assembly: Netmavryk.dll
Syntax
public class ParseBlockQuery : RpcMethod
Methods
| Improve this Doc View SourcePostAsync(Int32, Int32, String, DateTime, Int32, String, List<String>, String, String)
Parses a block and returns the block header signed content
Declaration
public Task<dynamic> PostAsync(int level, int proto, string predecessor, DateTime timestamp, int validationPass, string operationsHash, List<string> fitness, string context, string protocolData)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | level | Level of block |
| System.Int32 | proto | Protocol number |
| System.String | predecessor | Predecessor |
| DateTime | timestamp | Timestamp |
| System.Int32 | validationPass | Validation pass |
| System.String | operationsHash | A list of list of operations (Base58Check-encoded) |
| List<System.String> | fitness | Block fitness |
| System.String | context | Context hash (Base58Check-encoded) |
| System.String | protocolData | Protocol data hexadecimal string |
Returns
| Type | Description |
|---|---|
| Task<System.Object> |
PostAsync<T>(Int32, Int32, String, DateTime, Int32, String, List<String>, String, String)
Parses a block and returns the block header signed content
Declaration
public Task<T> PostAsync<T>(int level, int proto, string predecessor, DateTime timestamp, int validationPass, string operationsHash, List<string> fitness, string context, string protocolData)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | level | Level of block |
| System.Int32 | proto | Protocol number |
| System.String | predecessor | Predecessor |
| DateTime | timestamp | Timestamp |
| System.Int32 | validationPass | Validation pass |
| System.String | operationsHash | A list of list of operations (Base58Check-encoded) |
| List<System.String> | fitness | Block fitness |
| System.String | context | Context hash (Base58Check-encoded) |
| System.String | protocolData | Protocol data hexadecimal string |
Returns
| Type | Description |
|---|---|
| Task<T> |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the object to deserialize to |