Skip to main content

Input

Input Objects

class Input(InputProtocol)

An input to a user transaction

BCS

The BCS serialized form for this type is defined by the following ABNF:

input = call-arg

call-arg = %d00 bytes ; Pure
=/ %d01 object-arg ; Object

object-arg = %d00 object-reference ; ImmutableOrOwned
=/ %d01 object-id u64 bool ; Shared
=/ %d02 object-reference ; Receiving

new_immutable_or_owned

@classmethod
def new_immutable_or_owned(cls, object_ref: ObjectReference) -> Input

A move object that is either immutable or address owned

new_pure

@classmethod
def new_pure(cls, value: bytes) -> Input

For normal operations this is required to be a move primitive type and not contain structs or objects.

new_shared

@classmethod
def new_shared(cls, object_id: ObjectId, initial_shared_version: Version,
mutable: bool) -> Input

A move object whose owner is "Shared"