Class PreapplyBlockQuery
Rpc query to access blocks pre-applying
Inherited Members
Namespace: Netmavryk.Rpc.Queries.Post
Assembly: Netmavryk.dll
Syntax
public class PreapplyBlockQuery : RpcMethod
Methods
| Improve this Doc View SourcePostAsync(String, Int32, String, String, List<List<Object>>, DateTime, Boolean, Nullable<String>)
Simulates the validation of a block that would contain the given operations and returns the resulting fitness and context hash
Declaration
public Task<dynamic> PostAsync(string protocol, int priority, string powNonce, string signature, List<List<object>> operations, DateTime timestamp, bool sort = false, string? seedNonceHash = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | protocol | Protocol hash |
| System.Int32 | priority | Priority |
| System.String | powNonce | Proof of work nonce |
| System.String | signature | Signature |
| List<List<System.Object>> | operations | List of operations |
| DateTime | timestamp | Timestamp |
| System.Boolean | sort | Sort (optional) |
| System.Nullable<System.String> | seedNonceHash | Seed nonce hash (optional) |
Returns
| Type | Description |
|---|---|
| Task<System.Object> |
PostAsync(String, Int32, String, String, List<List<Object>>, Nullable<String>)
Simulates the validation of a block that would contain the given operations and returns the resulting fitness and context hash
Declaration
public Task<dynamic> PostAsync(string protocol, int priority, string powNonce, string signature, List<List<object>> operations, string? seedNonceHash = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | protocol | Protocol hash |
| System.Int32 | priority | Priority |
| System.String | powNonce | Proof of work nonce |
| System.String | signature | Signature |
| List<List<System.Object>> | operations | List of operations |
| System.Nullable<System.String> | seedNonceHash | Seed nonce hash (optional) |
Returns
| Type | Description |
|---|---|
| Task<System.Object> |
PostAsync<T>(String, Int32, String, String, List<List<Object>>, DateTime, Boolean, Nullable<String>)
Simulates the validation of a block that would contain the given operations and returns the resulting fitness and context hash
Declaration
public Task<T> PostAsync<T>(string protocol, int priority, string powNonce, string signature, List<List<object>> operations, DateTime timestamp, bool sort = false, string? seedNonceHash = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | protocol | Protocol hash |
| System.Int32 | priority | Priority |
| System.String | powNonce | Proof of work nonce |
| System.String | signature | Signature |
| List<List<System.Object>> | operations | List of operations |
| DateTime | timestamp | Timestamp |
| System.Boolean | sort | Sort (optional) |
| System.Nullable<System.String> | seedNonceHash | Seed nonce hash (optional) |
Returns
| Type | Description |
|---|---|
| Task<T> |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the object to deserialize to |
PostAsync<T>(String, Int32, String, String, List<List<Object>>, Nullable<String>)
Simulates the validation of a block that would contain the given operations and returns the resulting fitness and context hash
Declaration
public Task<T> PostAsync<T>(string protocol, int priority, string powNonce, string signature, List<List<object>> operations, string? seedNonceHash = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | protocol | Protocol hash |
| System.Int32 | priority | Priority |
| System.String | powNonce | Proof of work nonce |
| System.String | signature | Signature |
| List<List<System.Object>> | operations | List of operations |
| System.Nullable<System.String> | seedNonceHash | Seed nonce hash (optional) |
Returns
| Type | Description |
|---|---|
| Task<T> |
Type Parameters
| Name | Description |
|---|---|
| T | Type of the object to deserialize to |