Clas Transaction

  • NSObject

    • KeychainCore/LedgerTransaction

LedgerTransaction represents a digital asset transaction.

Instance Methods

Return type Method and Description

NSNumber

open func getAcceptanceState() throws → NSNumber

Get the acceptance state of the transaction

pending if [trans getAcceptanceState] == 0

accepted if [trans getAcceptanceState] == 1

rejected if [trans getAcceptanceState] < 0

NSNumber

open func getAmount() throws → NSNumber

Get transaction amount

Asset

open func getAsset() throws → Asset

Get the asset associated with the transaction

String

open func getReason() throws → String

Get reason description for the transaction

String

open func getReceiverUrl() throws → String

Get receiver URI

String

open func getSenderUrl() throws → String

Get sender URI

NSNumber

open func getTime() throws → NSNumber

Get transaction timestamp

[Verification]

open func getVerifications() throws → [Verification]

Get the verifications of the transaction