input

fun input(bytes: ByteArray, forceSeparate: Boolean = false): Argument

Adds a pure byte array as an input.

Return

An Argument.Input referencing the new input.

Parameters

bytes

The raw byte array to be used as an input.

forceSeparate

If true, treats this input as unique, even if its bytes are identical to another input.


inline fun <T> input(value: T): Argument

A generic input function that serializes a given value into bytes using BCS. If the value is an ObjectArg, it correctly routes to the object function.

Return

An Argument.Input referencing the new input.

Parameters

value

The value to be serialized and added as an input.