Table of Contents

Class GenerateViewFunctionPayloadData

Namespace
Aptos
Assembly
Aptos.dll

Represents a payload data for a view function.

public class GenerateViewFunctionPayloadData : GeneratePayloadData
Inheritance
GenerateViewFunctionPayloadData
Inherited Members

Constructors

GenerateViewFunctionPayloadData(string, List<object>?, List<object>?, ViewFunctionAbi?)

Represents a payload data for a view function.

public GenerateViewFunctionPayloadData(string function, List<object>? functionArguments, List<object>? typeArguments = null, ViewFunctionAbi? abi = null)

Parameters

function string

The function to be called on the module. This should be in the format of "address::module_name::function_name".

functionArguments List<object>

A list of either strings or TransactionArgument objects representing the function arguments. If the function arguments are strings, they will be converted to TransactionArgument objects using the ConvertArgument(object?, TypeTag, List<TypeTag>) method.

typeArguments List<object>

A list of TypeTag objects representing the type arguments of the function.

abi ViewFunctionAbi

The ABI of the function that will be used to check the type and function arguments of the transaction.

Fields

Abi

The ABI of the function that will be used to check the type and function arguments of the transaction.

public ViewFunctionAbi? Abi

Field Value

ViewFunctionAbi

Remarks

If the ABI is not provided, a remote ABI will be fetch from the blockchain.

Function

The function to be called on the module. This should be in the format of "address::module_name::function_name".

public string Function

Field Value

string

FunctionArguments

A list of either strings or TransactionArgument objects representing the function arguments. If the function arguments are strings, they will be converted to TransactionArgument objects using the ConvertArgument(object?, TypeTag, List<TypeTag>) method.

public List<object>? FunctionArguments

Field Value

List<object>

Remarks

The function arguments are expected to be in the same order and type as the function's expected ABI.