Package money.zumo.zumokit
Class TransactionCryptoProperties
- java.lang.Object
-
- money.zumo.zumokit.TransactionCryptoProperties
-
public final class TransactionCryptoProperties extends java.lang.ObjectRecord containing transaction's crypto properties.- See Also:
Transaction
-
-
Constructor Summary
Constructors Constructor Description TransactionCryptoProperties(java.lang.String txHash, java.lang.Integer nonce, java.lang.String fromAddress, java.lang.String toAddress, java.lang.String data, java.math.BigDecimal gasPrice, java.lang.Integer gasLimit, java.util.HashMap<java.lang.String,java.lang.Double> fiatAmount, java.util.HashMap<java.lang.String,java.lang.Double> fiatFee)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetData()Transaction data or null.java.util.HashMap<java.lang.String,java.lang.Double>getFiatAmount()Value in fiat currencies at the time of the transaction submission.java.util.HashMap<java.lang.String,java.lang.Double>getFiatFee()Fee in fiat currencies at the time of the transaction submission.java.lang.StringgetFromAddress()Ethereum wallet address of sender.java.lang.IntegergetGasLimit()Ethereum gas limit if it is Ethereum transaction, otherwise null.java.math.BigDecimalgetGasPrice()Ethereum gas price if it is Ethereum transaction, otherwise null.java.lang.IntegergetNonce()Ethereum transaction nonce if greater than 0 and it is Ethereum transaction, otherwise returns null.java.lang.StringgetToAddress()Ethereum wallet address of recipient or null, if it is Ethereum contract deploy.java.lang.StringgetTxHash()Transaction hash or null.inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
TransactionCryptoProperties
public TransactionCryptoProperties(java.lang.String txHash, java.lang.Integer nonce, java.lang.String fromAddress, java.lang.String toAddress, java.lang.String data, java.math.BigDecimal gasPrice, java.lang.Integer gasLimit, java.util.HashMap<java.lang.String,java.lang.Double> fiatAmount, java.util.HashMap<java.lang.String,java.lang.Double> fiatFee)
-
-
Method Detail
-
getTxHash
public java.lang.String getTxHash()
Transaction hash or null.
-
getNonce
public java.lang.Integer getNonce()
Ethereum transaction nonce if greater than 0 and it is Ethereum transaction, otherwise returns null.
-
getFromAddress
public java.lang.String getFromAddress()
Ethereum wallet address of sender.
-
getToAddress
public java.lang.String getToAddress()
Ethereum wallet address of recipient or null, if it is Ethereum contract deploy.
-
getData
public java.lang.String getData()
Transaction data or null.
-
getGasPrice
public java.math.BigDecimal getGasPrice()
Ethereum gas price if it is Ethereum transaction, otherwise null.
-
getGasLimit
public java.lang.Integer getGasLimit()
Ethereum gas limit if it is Ethereum transaction, otherwise null.
-
getFiatAmount
public java.util.HashMap<java.lang.String,java.lang.Double> getFiatAmount()
Value in fiat currencies at the time of the transaction submission.- See Also:
CurrencyCode
-
getFiatFee
public java.util.HashMap<java.lang.String,java.lang.Double> getFiatFee()
Fee in fiat currencies at the time of the transaction submission.- See Also:
CurrencyCode
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-