Transaction
public struct Transaction : _Transaction
-
Declaration
Swift
public var refBlockNum: UInt16
-
Declaration
Swift
public var refBlockPrefix: UInt32
-
Declaration
Swift
public var expiration: Date
-
Declaration
Swift
public var extensions: [String]
-
Declaration
Swift
public var operations: [OperationType] { get }
-
Create a new transaction.
Declaration
Swift
public init(refBlockNum: UInt16, refBlockPrefix: UInt32, expiration: Date, operations: [OperationType] = [], extensions: [String] = [])
-
Append an operation to the transaction.
Declaration
Swift
public mutating func append(operation: OperationType)
-
Sign transaction.
Declaration
Swift
public func sign(usingKey key: PrivateKey, forChain chain: ChainId = .mainNet) throws -> SignedTransaction
-
SHA2-256 digest for signing.
Declaration
Swift
public func digest(forChain chain: ChainId = .mainNet) throws -> Data
-
Declaration
Swift
public static func == (lhs: Transaction, rhs: Transaction) -> Bool
-
Declaration
Swift
public init(from decoder: Decoder) throws
-
Declaration
Swift
public func encode(to encoder: Encoder) throws