Show / Hide Table of Contents

Class QueryContractParams

Provides the details of the request to the client when invoking a contract local query function.

Inheritance
Object
QueryContractParams
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Hashgraph
Assembly: Hashgraph.dll
Syntax
public class QueryContractParams

Properties

| Improve this Doc View Source

Contract

The address of the contract to call.

Declaration
public Address Contract { get; set; }
Property Value
Type Description
Address
| Improve this Doc View Source

FunctionArgs

The function arguments to send with the method call.

Declaration
public object[] FunctionArgs { get; set; }
Property Value
Type Description
Object[]
| Improve this Doc View Source

FunctionName

Name of the contract function to call.

Declaration
public string FunctionName { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

Gas

The amount of gas that is allowed for the call.

Declaration
public long Gas { get; set; }
Property Value
Type Description
Int64
| Improve this Doc View Source

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
| Improve this Doc View Source

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.

| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
In This Article
Back to top .NET Client Library for Hedera Hashgraph