SignedTransaction

public struct SignedTransaction : _Transaction, Equatable

A signed transaction.

  • Transaction signatures.

    Declaration

    Swift

    public var signatures: [Signature]
  • Create a new signed transaction.

    Declaration

    Swift

    public init(transaction: Transaction, signatures: [Signature] = [])

    Parameters

    transaction

    Transaction to wrap.

    signatures

    Transaction signatures.

  • Append a signature to the transaction.

    Declaration

    Swift

    public mutating func appendSignature(_ signature: Signature)
  • Sign transaction and append signature.

    Declaration

    Swift

    public mutating func appendSignature(usingKey key: PrivateKey, forChain chain: ChainId = .mainNet) throws

    Parameters

    key

    Private key to sign transaction with.

    chain

    Chain id to use when signing.

  • Declaration

    Swift

    public var refBlockNum: UInt16 { get }
  • Declaration

    Swift

    public var refBlockPrefix: UInt32 { get }
  • Declaration

    Swift

    public var expiration: Date { get }
  • Declaration

    Swift

    public var extensions: [String] { get }
  • Declaration

    Swift

    public var operations: [OperationType] { get }
  • Declaration

    Swift

    public func digest(forChain chain: ChainId = .mainNet) throws -> Data
  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws