Skip to main content

Input

type Input​

An input to a user transaction

BCS​

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

```text 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 ```

type Input struct {
// contains filtered or unexported fields
}

func InputFromBcs​

func InputFromBcs(bcs []byte) (*Input, error)

Create this type from BCS encoded bytes.

func InputFromJson​

func InputFromJson(json string) (*Input, error)

Create this type from JSON encoded string.

func InputNewImmutableOrOwned​

func InputNewImmutableOrOwned(objectRef ObjectReference) *Input

A move object that is either immutable or address owned

func InputNewPure​

func InputNewPure(value []byte) *Input

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

func InputNewReceiving​

func InputNewReceiving(objectRef ObjectReference) *Input

func InputNewShared​

func InputNewShared(objectId *ObjectId, initialSharedVersion *Version, mutable bool) *Input

A move object whose owner is "Shared"

func LiftFromExternalInput​

func LiftFromExternalInput(handle uint64) *Input

func (*Input) DebugString​

func (_self *Input) DebugString() string

func (*Input) Destroy​

func (object *Input) Destroy()

func (*Input) Eq​

func (_self *Input) Eq(other *Input) bool

func (*Input) Ne​

func (_self *Input) Ne(other *Input) bool