Input
open class Input : Disposable, AutoCloseable, InputInterface
An input to a user transaction
BCS
The BCS serialized form of this type is specified in bcs-schema.abnf.
Functions
| Name | Summary |
|---|---|
| close | @Synchronized open override fun close() |
| destroy | open override fun destroy() |
| equals | open operator override fun equals(other: Any?): Boolean |
| toBcs | open override fun toBcs(): ByteArray Convert this type to BCS encoded bytes. |
| toDisplayString | open override fun toDisplayString(): String Render this type as human-readable text. |
| toJson | open override fun toJson(): String Convert this type to a JSON encoded string. |
| toString | open override fun toString(): String |
Companion object functions
| Name | Summary |
|---|---|
| fromBcs | fun fromBcs(bcs: ByteArray): Input Create this type from BCS encoded bytes. |
| fromJson | fun fromJson(json: String): Input Create this type from a JSON encoded string. |
| newImmutableOrOwned | fun newImmutableOrOwned(objectRef: ObjectReference): Input A move object that is either immutable or address owned |
| newPure | fun newPure(value: ByteArray): Input For normal operations this is required to be a move primitive type and not contain structs or objects. |
| newReceiving | fun newReceiving(objectRef: ObjectReference): Input |
| newShared | fun newShared(objectId: ObjectId, initialSharedVersion: Version, mutable: Boolean): Input A move object whose owner is "Shared" |