Class QueryContractParams
Provides the details of the request to the client when invoking a contract local query function.
Inherited Members
Namespace: Hashgraph
Assembly: Hashgraph.dll
Syntax
public class QueryContractParams
Properties
| Improve this Doc View SourceContract
The address of the contract to call.
Declaration
public Address Contract { get; set; }
Property Value
Type | Description |
---|---|
Address |
FunctionArgs
The function arguments to send with the method call.
Declaration
public object[] FunctionArgs { get; set; }
Property Value
Type | Description |
---|---|
Object[] |
FunctionName
Name of the contract function to call.
Declaration
public string FunctionName { get; set; }
Property Value
Type | Description |
---|---|
String |
Gas
The amount of gas that is allowed for the call.
Declaration
public long Gas { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
MaxAllowedReturnSize
The maximum number of bytes that are allowed to be returned, if the contract attemps to return more information than the max allowed size it will fail.
Declaration
public long MaxAllowedReturnSize { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
ReturnValueCharge
The amount of tinybars required to pay for returning the output data from the contract.
Declaration
public long ReturnValueCharge { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
Remarks
At the time of writing it is 186 tinybars for every 32byte ABI encoded block returned.
ThrowOnFail
Throw a ContractException exception if the query call returns a code other than success. Default is true to maintain backwards compatibility. If set to false, the ContractCallResult will be returned without an exception. The exception returned also includes the contract call result. Default is
true
.
Declaration
public bool ThrowOnFail { get; set; }
Property Value
Type | Description |
---|---|
Boolean |