The name of the function for which the argument is being converted.
The ABI (Application Binary Interface) of the function, which defines its parameters.
The argument to be converted, which can be of various types.
The index of the argument in the function's parameter list.
An array of type tags for any generic type parameters.
Aptos configuration for fetching module ABIs (required for struct/enum arguments).
Optionaloptions: { allowUnknownStructs?: boolean }Options for the conversion process.
OptionalallowUnknownStructs?: booleanIf true, unknown structs will be allowed and converted to a FixedBytes.
Converts a non-BCS encoded argument into BCS encoded, with support for struct/enum arguments. This is the asynchronous version that fetches module ABIs from the network as needed.