TokenTransferAction
public struct TokenTransferAction : Codable, Identifiable, Hashable, ContactProtocol, TokenContractProtocol
The TokenTransferAction object provide information about a transfer action
-
This is used as the primary key for storing the account
Declaration
Swift
public var id: String { get } -
The chainId associated with the TokenTransferAction
Declaration
Swift
public let chainId: String -
accountId is used to link Account. It is the chainId + “:” + name.stringValue.
Declaration
Swift
public let accountId: String -
tokenBalanceId is used to link TokenBalance. It is the accoutId + “:” + contract.stringValue + “:” + symbol
Declaration
Swift
public let tokenBalanceId: String -
tokenContractId is used to link TokenContract. It is the chainId + “:” + contract.stringValue + “:” + symbol
Declaration
Swift
public let tokenContractId: String -
The action name performed on the contract
Declaration
Swift
public let name: String -
The Name of the contract. You can get the string value via contract.stringValue
Declaration
Swift
public let contract: Name -
The transaction Id from the chain
Declaration
Swift
public let trxId: String -
The date in which the action was executed on chain
Declaration
Swift
public let date: Date -
Whether or not the action was sent based on the current account
Declaration
Swift
public let sent: Bool -
The Name of the receiving Account. You can get the string value via from.stringValue
Declaration
Swift
public let from: Name -
The Name of the sending Account. You can get the string value via from.stringValue
Declaration
Swift
public let to: Name -
The Asset quantity of the transfer. See EOSIO type Asset for more info
Declaration
Swift
public let quantity: Asset -
The memo string associated with the transfer
Declaration
Swift
public let memo: String -
TokenContracts associated with this TokenBalance
Declaration
Swift
public var tokenContract: TokenContract? { get } -
Returns the other Account Name whether it be sender or receiver
Declaration
Swift
public var other: Name { get } -
Returns the other Account as a Contact whether it be sender or receiver
Declaration
Swift
public var contact: Contact? { get } -
Returns exchange rate
Declaration
Swift
public func getRate(forCurrencyCode currencyCode: String) -> Double -
Formatted currency balance
Declaration
Swift
public func currencyQuantityFormatted(forLocale locale: Locale = Locale(identifier: "en_US")) -> String -
Formatted balance without symbol and precision
Declaration
Swift
public func quantityFormatted(forLocale locale: Locale = Locale(identifier: "en_US"), withSymbol symbol: Bool = false, andPrecision precision: Bool = false) -> String
TokenTransferAction Structure Reference