Class RunScriptViewQuery
Rpc query to access to a michelson script view
Inherited Members
Namespace: Netmavryk.Rpc.Queries.Post
Assembly: Netmavryk.dll
Syntax
public class RunScriptViewQuery : RpcMethod
Methods
| Improve this Doc View SourcePostAsync(String, String, Object, String, Nullable<String>, Nullable<String>, Nullable<Int64>, RunScriptViewQuery.UnparsingMode, Nullable<Int32>, Nullable<Int32>)
Simulate a call to a michelson script view
Declaration
public Task<dynamic> PostAsync(string contract, string view, object input, string chainId = "NetXdQprcVkpaWU", string? source = null, string? payer = null, long? gas = null, RunScriptViewQuery.UnparsingMode mode = RunScriptViewQuery.UnparsingMode.Readable, int? now = null, int? level = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | contract | Contract |
| System.String | view | View |
| System.Object | input | Input(micheline michelson expression) |
| System.String | chainId | Chain id |
| System.Nullable<System.String> | source | Source (optional) |
| System.Nullable<System.String> | payer | Payer (optional) |
| System.Nullable<System.Int64> | gas | Gas limit (optional) |
| RunScriptViewQuery.UnparsingMode | mode | Unparsing mode |
| System.Nullable<System.Int32> | now | Now (optional) |
| System.Nullable<System.Int32> | level | Level (optional) |
Returns
| Type | Description |
|---|---|
| Task<System.Object> |
PostAsync<T>(String, String, Object, String, Nullable<String>, Nullable<String>, Nullable<Int64>, RunScriptViewQuery.UnparsingMode, Nullable<Int32>, Nullable<Int32>)
Simulate a call to a michelson script view
Declaration
public Task<T> PostAsync<T>(string contract, string view, object input, string chainId = "NetXdQprcVkpaWU", string? source = null, string? payer = null, long? gas = null, RunScriptViewQuery.UnparsingMode mode = RunScriptViewQuery.UnparsingMode.Readable, int? now = null, int? level = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | contract | Contract |
| System.String | view | View |
| System.Object | input | Input(micheline michelson expression) |
| System.String | chainId | Chain id |
| System.Nullable<System.String> | source | Source (optional) |
| System.Nullable<System.String> | payer | Payer (optional) |
| System.Nullable<System.Int64> | gas | Gas limit (optional) |
| RunScriptViewQuery.UnparsingMode | mode | Unparsing mode |
| System.Nullable<System.Int32> | now | Now (optional) |
| System.Nullable<System.Int32> | level | Level (optional) |
Returns
| Type | Description |
|---|---|
| Task<T> |
Type Parameters
| Name | Description |
|---|---|
| T |