SignedTransaction - OpenDive/AptosKit GitHub Wiki
SignedTransaction
Aptos Blockchain Signed Transaction
public struct SignedTransaction: KeyProtocol, Equatable
Inheritance
Equatable, KeyProtocol
Initializers
init(transaction:authenticator:)
public init(transaction: RawTransaction, authenticator: Authenticator)
Properties
transaction
The transaction itself
public var transaction: RawTransaction
authenticator
The authenticator used to sign the transaction
public var authenticator: Authenticator
Methods
bytes()
Outputs the SignedTransaction object itself into a serialized Data object output
public func bytes() throws -> Data
Returns
A Data object
verify()
Verify a signed transaction using the associated authenticator.
public func verify() throws -> Bool
This function verifies the signed transaction using the associated authenticator.
Throws
An error of type AuthenticatorError indicating that the transaction cannot be verified.
Returns
A Boolean value indicating whether the transaction is valid or not.
deserialize(from:)
public static func deserialize(from deserializer: Deserializer) throws -> SignedTransaction
serialize(_:)
public func serialize(_ serializer: Serializer) throws