Class ForgeProtocolDataQuery
Rpc query to access protocol data forging
Inherited Members
Namespace: Netezos.Rpc.Queries.Post
Assembly: Netezos.dll
Syntax
public class ForgeProtocolDataQuery : RpcMethod
Methods
| Improve this Doc View SourcePostAsync(Int32, String, String)
Forges the protocol-specific part of a block header and returns forged bytes
Declaration
public Task<dynamic> PostAsync(int priority, string nonceHash, string powNonce)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | priority | Priority |
System.String | nonceHash | Nonce hash |
System.String | powNonce | Proof of work nonce (optional) |
Returns
Type | Description |
---|---|
Task<System.Object> |
PostAsync<T>(Int32, String, String)
Forges the protocol-specific part of a block header and returns forged bytes
Declaration
public Task<T> PostAsync<T>(int priority, string nonceHash, string powNonce)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | priority | Priority |
System.String | nonceHash | Nonce hash |
System.String | powNonce | Proof of work nonce (optional) |
Returns
Type | Description |
---|---|
Task<T> |
Type Parameters
Name | Description |
---|---|
T | Type of the object to deserialize to |