Argument
type Argument
An argument to a programmable transaction command
BCS
The BCS serialized form for this type is defined by the following ABNF:
```text argument = argument-gas =/ argument-input =/ argument-result =/ argument-nested-result
argument-gas = %d00 argument-input = %d01 u16 argument-result = %d02 u16 argument-nested-result = %d03 u16 u16 ```
type Argument struct {
// contains filtered or unexported fields
}
func ArgumentFromBcs
func ArgumentFromBcs(bcs []byte) (*Argument, error)
Create this type from BCS encoded bytes.
func ArgumentFromJson
func ArgumentFromJson(json string) (*Argument, error)
Create this type from JSON encoded string.
func ArgumentNewGas
func ArgumentNewGas() *Argument
The gas coin. The gas coin can only be used by-ref, except for with `TransferObjects`, which can use it by-value.
func ArgumentNewInput
func ArgumentNewInput(input uint16) *Argument
One of the input objects or primitive values (from `ProgrammableTransaction` inputs)
func ArgumentNewNestedResult
func ArgumentNewNestedResult(commandIndex uint16, subresultIndex uint16) *Argument
Like a `Result` but it accesses a nested result. Currently, the only usage of this is to access a value from a Move call with multiple return values.
func ArgumentNewResult
func ArgumentNewResult(result uint16) *Argument
The result of another command (from `ProgrammableTransaction` commands)
func LiftFromExternalArgument
func LiftFromExternalArgument(handle uint64) *Argument
func (*Argument) DebugString
func (_self *Argument) DebugString() string
func (*Argument) Destroy
func (object *Argument) Destroy()
func (*Argument) Eq
func (_self *Argument) Eq(other *Argument) bool
func (*Argument) GetNestedResult
func (_self *Argument) GetNestedResult(ix uint16) **Argument
Get the nested result for this result at the given index. Returns None if this is not a Result.
func (*Argument) Ne
func (_self *Argument) Ne(other *Argument) bool