Class CallContractParams
Provides the details of the request to the client when invoking a contract function.
Inherited Members
Namespace: Hashgraph
Assembly: Hashgraph.dll
Syntax
public class CallContractParams
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 |
PayableAmount
For payable function calls, the amount of tinybars to send to the contract.
Declaration
public long PayableAmount { get; set; }
Property Value
Type | Description |
---|---|
Int64 |
Signatory
Additional private key, keys or signing callback method required to invoke this contract. Typically not used however there are some edge cases where it may send crypto to accounts that require a signature to receive funds.
Declaration
public Signatory Signatory { get; set; }
Property Value
Type | Description |
---|---|
Signatory |
Remarks
Keys/callbacks added here will be combined with those already identified in the client object's context when signing this transaction to change the state of this account. They will not be asked to sign transactions to retrieve the record if the "WithRecord" form of the method call is made. The client will rely on the Signatory from the context to sign the transaction requesting the record.