Clas LedgerTransaction

  • NSObject

    • KeychainCore/LedgerTransaction

LedgerTransaction represents a digital asset transaction.

Instance Methods

Return type Method and Description

NSNumber *

(NSNumber ) getAcceptanceState :(NSError *) error

Get the acceptance state of the transaction

pending if [trans getAcceptanceState] == 0

accepted if [trans getAcceptanceState] == 1

rejected if [trans getAcceptanceState] < 0

NSNumber *

getAmount :(NSError **) error

Get transaction amount

Asset *

getAsset :(NSError **) error

Get the asset associated with the transaction

NSString *

getReason :(NSError **) error

Get reason description for the transaction

NSString *

getReceiverUrl :(NSError **) error

Get receiver URI

NSString *

getSenderUrl :(NSError **) error

Get sender URI

NSNumber *

getTransactionTime :(NSError **) error

Get transaction timestamp

NSArray<Verification *> *

getVerifications :(NSError **) error

Get the verifications of the transaction