Class InjectBlockQuery
Rpc query to access blocks injection
Inherited Members
Namespace: Netezos.Rpc.Queries.Post
Assembly: Netezos.dll
Syntax
public class InjectBlockQuery : RpcMethod
Methods
| Improve this Doc View SourcePostAsync(String, List<List<Object>>, Boolean, Boolean, Chain)
Injects a block into the node and returns the ID of the block
Declaration
public Task<dynamic> PostAsync(string data, List<List<object>> operations, bool async = false, bool force = false, Chain chain = Chain.Main)
Parameters
Type | Name | Description |
---|---|---|
System.String | data | Forged block header data |
List<List<System.Object>> | operations | List of operations |
System.Boolean | async | Async (optional) |
System.Boolean | force | Force (optional) |
Chain | chain | Chain (optional) |
Returns
Type | Description |
---|---|
Task<System.Object> |
PostAsync<T>(String, List<List<Object>>, Boolean, Boolean, Chain)
Injects a block into the node and returns the ID of the block
Declaration
public Task<T> PostAsync<T>(string data, List<List<object>> operations, bool async = false, bool force = false, Chain chain = Chain.Main)
Parameters
Type | Name | Description |
---|---|---|
System.String | data | Forged block header data |
List<List<System.Object>> | operations | List of operations |
System.Boolean | async | Async (optional) |
System.Boolean | force | Force (optional) |
Chain | chain | Chain (optional) |
Returns
Type | Description |
---|---|
Task<T> |
Type Parameters
Name | Description |
---|---|
T | Type of the object to deserialize to |