Transaction
public final class Transaction
Record containing transaction details.
Public Method Summary
Type | Method |
---|---|
boolean | equals(Object obj) |
String | getAccountId() Returns the unique account identifier that transaction belongs to. |
String | getCoin() Returns coin name in string format, e.g. Bitcoin, Ether. |
Long | getConfirmedAt() Transaction confirmed timestamp. |
String | getCost() Returns transaction cost in transaction currency. |
String | getData() Returns transaction data if available, otherwise returns null. |
HashMap<String,String> | getFiatCost() Returns map of transaction cost in available fiat values at the time of the transaction. |
HashMap<String,String> | getFiatValue() Returns map of transaction value in available fiat values at the time of the transaction. |
String | getFromAddress() Returns sender blockchain address. |
String | getFromUserId() Returns sender user id if available, otherwise null. |
String | getGasLimit() Returns the gas limit used to send the transaction. |
String | getGasPrice() Returns the gas price used to send the transaction. |
String | getId() Returns the unique transaction identifier. |
NetworkType | getNetwork() Returns transaction network type. |
Long | getNonce() Returns nonce for Ethereum account if greater than 0, otherwise returns null. |
TransactionStatus | getStatus() Returns TransactionStatus enum identifying pending, confirmed, failed, resubmitted and cancelled transaction statuses. |
Long | getSubmittedAt() Returns transaction submitted timestamp. |
String | getSymbol() Returns coin symbol in string format, e.g. BTC, ETH. |
long | getTimestamp() Returns transaction confirmed timestamp for confirmed transactions and transaction submitted timestamp for pending transactions. |
String | getToAddress() Returns recipient blockchain address. |
String | getToUserId() Returns recipient user id if available, otherwise null. |
String | getTxHash() Returns transaction blockchain hash. |
TransactionType | getType() Returns TransactionType enum identifying incoming and outgoing transaction type. |
String | getValue() Returns transaction value in transaction currency. |
int | hashCode() |
String | toString() |
Public Methods
equals
boolean equals(Object obj)
getAccountId
String getAccountId()
Returns the unique account identifier that transaction belongs to.
getCoin
String getCoin()
Returns coin name in string format, e.g. Bitcoin, Ether.
getConfirmedAt
Long getConfirmedAt()
Transaction confirmed timestamp.
getCost
String getCost()
Returns transaction cost in transaction currency.
getData
String getData()
Returns transaction data if available, otherwise returns null.
getFiatCost
HashMap<String,String> getFiatCost()
Returns map of transaction cost in available fiat values at the time of the transaction.
getFiatValue
HashMap<String,String> getFiatValue()
Returns map of transaction value in available fiat values at the time of the transaction.
getFromAddress
String getFromAddress()
Returns sender blockchain address.
getFromUserId
String getFromUserId()
Returns sender user id if available, otherwise null.
getGasLimit
String getGasLimit()
Returns the gas limit used to send the transaction. See Send Transaction for details.
getGasPrice
String getGasPrice()
Returns the gas price used to send the transaction. See Send Transaction for details.
getId
String getId()
Returns the unique transaction identifier.
getNetwork
NetworkType getNetwork()
Returns transaction network type.
getNonce
Long getNonce()
Returns nonce for Ethereum account if greater than 0, otherwise returns null.
getStatus
TransactionStatus getStatus()
Returns TransactionStatus enum identifying pending, confirmed, failed, resubmitted and cancelled transaction statuses.
getSubmittedAt
Long getSubmittedAt()
Returns transaction submitted timestamp.
getSymbol
String getSymbol()
Returns coin symbol in string format, e.g. BTC, ETH.
getTimestamp
long getTimestamp()
Returns transaction confirmed timestamp for confirmed transactions and transaction submitted timestamp for pending transactions.
getToAddress
String getToAddress()
Returns recipient blockchain address.
getToUserId
String getToUserId()
Returns recipient user id if available, otherwise null.
getTxHash
String getTxHash()
Returns transaction blockchain hash.
getType
TransactionType getType()
Returns TransactionType enum identifying incoming and outgoing transaction type.
getvalue
String getValue()
Returns transaction value in transaction currency.
hashCode
int hashCode()
toString
String toString()