Skip to content
MarcoDotIO edited this page Jul 4, 2023 · 2 revisions

Script

public struct Script: TransactionProtocol, Equatable 

Inheritance

Equatable, TransactionProtocol

Initializers

init(code:args:tyArgs:)

public init(code: Data, args: [ScriptArgument], tyArgs: [TypeTag]) 

Properties

code

The code for the script itself

public var code: Data

args

The arguments used for the script

public var args: [ScriptArgument]

tyArgs

The types used within the script

public var tyArgs: [TypeTag]

Methods

deserialize(from:)

public static func deserialize(from deserializer: Deserializer) throws -> Script 

serialize(_:)

public func serialize(_ serializer: Serializer) throws 

Operators

==

public static func == (lhs: Script, rhs: Script) -> Bool 
Types
Protocols
Global Variables
Global Functions
Extensions
Clone this wiki locally