Package monero.wallet.model
Class MoneroTxWallet
java.lang.Object
monero.daemon.model.MoneroTx
monero.wallet.model.MoneroTxWallet
- Direct Known Subclasses:
MoneroTxQuery
Models a Monero transaction with wallet extensions.
-
Field Summary
Fields inherited from class monero.daemon.model.MoneroTx
DEFAULT_PAYMENT_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
boolean
Returns a copy of this model's inputs as a list of type MoneroOutputWallet.getInputsWallet
(MoneroOutputQuery query) getNote()
Returns a copy of this model's outputs as a list of type MoneroOutputWallet.getTransfers
(MoneroTransferQuery query) getTxSet()
int
hashCode()
isLocked()
merge
(MoneroTxWallet tx) Updates this transaction by merging the latest information from the given transaction.setBlock
(MoneroBlock block) setChangeAddress
(String changeAddress) setChangeAmount
(BigInteger changeAmount) setExtra
(byte[] extra) setExtraHex
(String extraHex) setFee
(BigInteger fee) setFullHex
(String hex) setIncomingTransfers
(List<MoneroIncomingTransfer> incomingTransfers) setInputs
(List<MoneroOutput> inputs) Set the tx's inputs (MoneroOutputWallet) which contain information relative to a wallet.setInputSum
(BigInteger inputSum) setInputsWallet
(List<MoneroOutputWallet> inputs) Set inputs with compile-time binding to MoneroOutputWallet for deserialization.setInTxPool
(Boolean inTxPool) setIsConfirmed
(Boolean isConfirmed) setIsDoubleSpendSeen
(Boolean isDoubleSpend) setIsFailed
(Boolean isFailed) setIsIncoming
(Boolean isIncoming) setIsKeptByBlock
(Boolean isKeptByBlock) setIsLocked
(Boolean isLocked) setIsMinerTx
(Boolean isMinerTx) setIsOutgoing
(Boolean isOutgoing) setIsRelayed
(Boolean isRelayed) setLastFailedHash
(String lastFailedId) setLastFailedHeight
(Long lastFailedHeight) setLastRelayedTimestamp
(Long lastRelayedTimestamp) setMaxUsedBlockHash
(String maxUsedBlockId) setMaxUsedBlockHeight
(Long maxUsedBlockHeight) setMetadata
(String metadata) setNumConfirmations
(Long numConfirmations) setNumDummyOutputs
(Integer numDummyOutputs) setOutgoingTransfer
(MoneroOutgoingTransfer outgoingTransfer) setOutputIndices
(List<Long> outputIndices) setOutputs
(List<MoneroOutput> outputs) Set the tx's outputs (MoneroOutputWallet) which contain information relative to a wallet.setOutputSum
(BigInteger outputSum) setOutputsWallet
(List<MoneroOutputWallet> outputs) Set outputs with compile-time binding to MoneroOutputWallet for deserialization.setPaymentId
(String paymentId) setPrunableHash
(String prunableHash) setPrunableHex
(String prunableHex) setPrunedHex
(String prunedHex) setRctSignatures
(Object rctSignatures) setRctSigPrunable
(Object rctSigPrunable) setReceivedTimestamp
(Long receivedTimestamp) setRingSize
(Integer ringSize) setSignatures
(List<String> signatures) setTxSet
(MoneroTxSet txSet) setUnlockTime
(BigInteger unlockTime) setVersion
(Integer version) toString()
toString
(int indent) toString
(int indent, boolean oneLine) Methods inherited from class monero.daemon.model.MoneroTx
getBlock, getExtra, getFee, getFullHex, getHash, getHeight, getInputs, getKey, getLastFailedHash, getLastFailedHeight, getLastRelayedTimestamp, getMaxUsedBlockHash, getMaxUsedBlockHeight, getMetadata, getNumConfirmations, getOutputIndices, getOutputs, getPaymentId, getPrunableHash, getPrunableHex, getPrunedHex, getRctSignatures, getRctSigPrunable, getReceivedTimestamp, getRelay, getRingSize, getSignatures, getSize, getUnlockTime, getVersion, getWeight, inTxPool, isConfirmed, isDoubleSpendSeen, isFailed, isKeptByBlock, isMinerTx, isRelayed
-
Constructor Details
-
MoneroTxWallet
public MoneroTxWallet() -
MoneroTxWallet
-
-
Method Details
-
copy
-
getTxSet
-
setTxSet
-
isIncoming
-
setIsIncoming
-
isOutgoing
-
setIsOutgoing
-
getIncomingAmount
-
getOutgoingAmount
-
getTransfers
-
getTransfers
-
filterTransfers
-
getIncomingTransfers
-
setIncomingTransfers
-
getOutgoingTransfer
-
setOutgoingTransfer
-
setInputs
Set the tx's inputs (MoneroOutputWallet) which contain information relative to a wallet. Callers must cast to extended type (MoneroOutput) because Java paramaterized types do not recognize inheritance. -
setInputsWallet
Set inputs with compile-time binding to MoneroOutputWallet for deserialization.- Parameters:
inputs
- are the tx's inputs- Returns:
- MoneroTxWallet is a reference to this tx for chaining
-
getInputsWallet
Returns a copy of this model's inputs as a list of type MoneroOutputWallet.- Returns:
- inputs of type MoneroOutputWallet
-
getInputsWallet
-
setOutputs
Set the tx's outputs (MoneroOutputWallet) which contain information relative to a wallet. Callers must cast to extended type (MoneroOutput) because Java paramaterized types do not recognize inheritance.- Overrides:
setOutputs
in classMoneroTx
- Parameters:
outputs
- are MoneroOutputWallets to set for the wallet tx- Returns:
- MoneroTxWallet is a reference to this tx for chaining
-
setOutputsWallet
Set outputs with compile-time binding to MoneroOutputWallet for deserialization.- Parameters:
outputs
- are the tx's outputs- Returns:
- MoneroTxWallet is a reference to this tx for chaining
-
getOutputsWallet
Returns a copy of this model's outputs as a list of type MoneroOutputWallet.- Returns:
- outputs of type MoneroOutputWallet
-
getOutputsWallet
-
filterOutputsWallet
-
getNote
-
setNote
-
isLocked
-
setIsLocked
-
getInputSum
-
setInputSum
-
getOutputSum
-
setOutputSum
-
getChangeAddress
-
setChangeAddress
-
getChangeAmount
-
setChangeAmount
-
getNumDummyOutputs
-
setNumDummyOutputs
-
getExtraHex
-
setExtraHex
-
merge
-
merge
Updates this transaction by merging the latest information from the given transaction. Merging can modify or build references to the transaction given so it should not be re-used or it should be copied before calling this method.- Parameters:
tx
- is the transaction to merge into this transaction- Returns:
- this tx for chaining
-
toString
-
toString
-
toString
-
hashCode
public int hashCode() -
equals
-
setBlock
-
setHash
-
setVersion
- Overrides:
setVersion
in classMoneroTx
-
setIsMinerTx
- Overrides:
setIsMinerTx
in classMoneroTx
-
setPaymentId
- Overrides:
setPaymentId
in classMoneroTx
-
setFee
-
setRingSize
- Overrides:
setRingSize
in classMoneroTx
-
setRelay
-
setIsRelayed
- Overrides:
setIsRelayed
in classMoneroTx
-
setIsConfirmed
- Overrides:
setIsConfirmed
in classMoneroTx
-
setInTxPool
- Overrides:
setInTxPool
in classMoneroTx
-
setNumConfirmations
- Overrides:
setNumConfirmations
in classMoneroTx
-
setUnlockTime
- Overrides:
setUnlockTime
in classMoneroTx
-
setLastRelayedTimestamp
- Overrides:
setLastRelayedTimestamp
in classMoneroTx
-
setReceivedTimestamp
- Overrides:
setReceivedTimestamp
in classMoneroTx
-
setIsDoubleSpendSeen
- Overrides:
setIsDoubleSpendSeen
in classMoneroTx
-
setKey
-
setFullHex
- Overrides:
setFullHex
in classMoneroTx
-
setPrunedHex
- Overrides:
setPrunedHex
in classMoneroTx
-
setPrunableHex
- Overrides:
setPrunableHex
in classMoneroTx
-
setPrunableHash
- Overrides:
setPrunableHash
in classMoneroTx
-
setSize
-
setWeight
-
setOutputIndices
- Overrides:
setOutputIndices
in classMoneroTx
-
setMetadata
- Overrides:
setMetadata
in classMoneroTx
-
setExtra
-
setRctSignatures
- Overrides:
setRctSignatures
in classMoneroTx
-
setRctSigPrunable
- Overrides:
setRctSigPrunable
in classMoneroTx
-
setIsKeptByBlock
- Overrides:
setIsKeptByBlock
in classMoneroTx
-
setIsFailed
- Overrides:
setIsFailed
in classMoneroTx
-
setLastFailedHeight
- Overrides:
setLastFailedHeight
in classMoneroTx
-
setLastFailedHash
- Overrides:
setLastFailedHash
in classMoneroTx
-
setMaxUsedBlockHeight
- Overrides:
setMaxUsedBlockHeight
in classMoneroTx
-
setMaxUsedBlockHash
- Overrides:
setMaxUsedBlockHash
in classMoneroTx
-
setSignatures
- Overrides:
setSignatures
in classMoneroTx
-