arg



Creates a transaction argument from a ULong, correctly identifying it as a u64.


Creates a transaction argument from a String, correctly identifying it as a 0x1::string::String.


Creates a transaction argument from an AccountAddress, correctly identifying it as an address.


fun <T> ProgrammableTransactionBuilder.arg(values: List<T>, elementType: TypeTag): Argument

A smart constructor for lists that is now fully type-safe. It automatically decides whether to use pure (for pure vectors) or makeMoveVec (for object vectors).

Parameters

values

The list of values for the vector.

elementType

The strongly-typed TypeTag of the vector's elements.