Skip to content

TransactionArgument

MarcoDotIO edited this page Apr 25, 2023 · 1 revision

TransactionArgument

Aptos Blockchain Transaction Argument

public struct TransactionArgument<T: EncodingContainer> 

Initializers

init(value:encoder:)

public init(
        value: T,
        encoder: @escaping (Serializer, T) throws -> Void
    ) 

Properties

value

The value itself

public let value: T

encoder

The encoder used for serializing the value

public let encoder: (Serializer, T) throws -> ()

Methods

encode()

Encodes the value using the class's encoder

public func encode() throws -> Data 

Returns

A Data object that's serialized

Types
Protocols
Global Variables
Global Functions
Extensions
Clone this wiki locally