@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Transaction extends Object implements Serializable, Cloneable, StructuredPojo
There are two possible types of transactions used for this data type:
A Bitcoin transaction is a movement of BTC from one address to another.
An Ethereum transaction refers to an action initiated by an externally owned account, which is an account managed by a human, not a contract. For example, if Bob sends Alice 1 ETH, Bob's account must be debited and Alice's must be credited. This state-changing action occurs within a transaction.
Constructor and Description |
---|
Transaction() |
Modifier and Type | Method and Description |
---|---|
Transaction |
clone() |
boolean |
equals(Object obj) |
String |
getBlockHash()
The block hash is a unique identifier for a block.
|
String |
getBlockNumber()
The block number in which the transaction is recorded.
|
String |
getConfirmationStatus()
Specifies whether the transaction has reached Finality.
|
String |
getContractAddress()
The blockchain address for the contract.
|
String |
getCumulativeGasUsed()
The amount of gas used up to the specified point in the block.
|
String |
getEffectiveGasPrice()
The effective gas price.
|
String |
getExecutionStatus()
Identifies whether the transaction has succeeded or failed.
|
String |
getFrom()
The initiator of the transaction.
|
String |
getGasUsed()
The amount of gas used for the transaction.
|
String |
getNetwork()
The blockchain network where the transaction occurred.
|
Long |
getNumberOfTransactions()
The number of transactions in the block.
|
String |
getSignatureR()
The signature of the transaction.
|
String |
getSignatureS()
The signature of the transaction.
|
Integer |
getSignatureV()
The signature of the transaction.
|
String |
getStatus()
Deprecated.
|
String |
getTo()
The identifier of the transaction.
|
String |
getTransactionFee()
The transaction fee.
|
String |
getTransactionHash()
The hash of the transaction.
|
String |
getTransactionId()
The unique identifier of the transaction.
|
Long |
getTransactionIndex()
The index of the transaction within a blockchain.
|
Date |
getTransactionTimestamp()
The
Timestamp of the transaction. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBlockHash(String blockHash)
The block hash is a unique identifier for a block.
|
void |
setBlockNumber(String blockNumber)
The block number in which the transaction is recorded.
|
void |
setConfirmationStatus(String confirmationStatus)
Specifies whether the transaction has reached Finality.
|
void |
setContractAddress(String contractAddress)
The blockchain address for the contract.
|
void |
setCumulativeGasUsed(String cumulativeGasUsed)
The amount of gas used up to the specified point in the block.
|
void |
setEffectiveGasPrice(String effectiveGasPrice)
The effective gas price.
|
void |
setExecutionStatus(String executionStatus)
Identifies whether the transaction has succeeded or failed.
|
void |
setFrom(String from)
The initiator of the transaction.
|
void |
setGasUsed(String gasUsed)
The amount of gas used for the transaction.
|
void |
setNetwork(String network)
The blockchain network where the transaction occurred.
|
void |
setNumberOfTransactions(Long numberOfTransactions)
The number of transactions in the block.
|
void |
setSignatureR(String signatureR)
The signature of the transaction.
|
void |
setSignatureS(String signatureS)
The signature of the transaction.
|
void |
setSignatureV(Integer signatureV)
The signature of the transaction.
|
void |
setStatus(String status)
Deprecated.
|
void |
setTo(String to)
The identifier of the transaction.
|
void |
setTransactionFee(String transactionFee)
The transaction fee.
|
void |
setTransactionHash(String transactionHash)
The hash of the transaction.
|
void |
setTransactionId(String transactionId)
The unique identifier of the transaction.
|
void |
setTransactionIndex(Long transactionIndex)
The index of the transaction within a blockchain.
|
void |
setTransactionTimestamp(Date transactionTimestamp)
The
Timestamp of the transaction. |
String |
toString()
Returns a string representation of this object.
|
Transaction |
withBlockHash(String blockHash)
The block hash is a unique identifier for a block.
|
Transaction |
withBlockNumber(String blockNumber)
The block number in which the transaction is recorded.
|
Transaction |
withConfirmationStatus(ConfirmationStatus confirmationStatus)
Specifies whether the transaction has reached Finality.
|
Transaction |
withConfirmationStatus(String confirmationStatus)
Specifies whether the transaction has reached Finality.
|
Transaction |
withContractAddress(String contractAddress)
The blockchain address for the contract.
|
Transaction |
withCumulativeGasUsed(String cumulativeGasUsed)
The amount of gas used up to the specified point in the block.
|
Transaction |
withEffectiveGasPrice(String effectiveGasPrice)
The effective gas price.
|
Transaction |
withExecutionStatus(ExecutionStatus executionStatus)
Identifies whether the transaction has succeeded or failed.
|
Transaction |
withExecutionStatus(String executionStatus)
Identifies whether the transaction has succeeded or failed.
|
Transaction |
withFrom(String from)
The initiator of the transaction.
|
Transaction |
withGasUsed(String gasUsed)
The amount of gas used for the transaction.
|
Transaction |
withNetwork(QueryNetwork network)
The blockchain network where the transaction occurred.
|
Transaction |
withNetwork(String network)
The blockchain network where the transaction occurred.
|
Transaction |
withNumberOfTransactions(Long numberOfTransactions)
The number of transactions in the block.
|
Transaction |
withSignatureR(String signatureR)
The signature of the transaction.
|
Transaction |
withSignatureS(String signatureS)
The signature of the transaction.
|
Transaction |
withSignatureV(Integer signatureV)
The signature of the transaction.
|
Transaction |
withStatus(QueryTransactionStatus status)
Deprecated.
|
Transaction |
withStatus(String status)
Deprecated.
|
Transaction |
withTo(String to)
The identifier of the transaction.
|
Transaction |
withTransactionFee(String transactionFee)
The transaction fee.
|
Transaction |
withTransactionHash(String transactionHash)
The hash of the transaction.
|
Transaction |
withTransactionId(String transactionId)
The unique identifier of the transaction.
|
Transaction |
withTransactionIndex(Long transactionIndex)
The index of the transaction within a blockchain.
|
Transaction |
withTransactionTimestamp(Date transactionTimestamp)
The
Timestamp of the transaction. |
public void setNetwork(String network)
The blockchain network where the transaction occurred.
network
- The blockchain network where the transaction occurred.QueryNetwork
public String getNetwork()
The blockchain network where the transaction occurred.
QueryNetwork
public Transaction withNetwork(String network)
The blockchain network where the transaction occurred.
network
- The blockchain network where the transaction occurred.QueryNetwork
public Transaction withNetwork(QueryNetwork network)
The blockchain network where the transaction occurred.
network
- The blockchain network where the transaction occurred.QueryNetwork
public void setBlockHash(String blockHash)
The block hash is a unique identifier for a block. It is a fixed-size string that is calculated by using the information in the block. The block hash is used to verify the integrity of the data in the block.
blockHash
- The block hash is a unique identifier for a block. It is a fixed-size string that is calculated by using
the information in the block. The block hash is used to verify the integrity of the data in the block.public String getBlockHash()
The block hash is a unique identifier for a block. It is a fixed-size string that is calculated by using the information in the block. The block hash is used to verify the integrity of the data in the block.
public Transaction withBlockHash(String blockHash)
The block hash is a unique identifier for a block. It is a fixed-size string that is calculated by using the information in the block. The block hash is used to verify the integrity of the data in the block.
blockHash
- The block hash is a unique identifier for a block. It is a fixed-size string that is calculated by using
the information in the block. The block hash is used to verify the integrity of the data in the block.public void setTransactionHash(String transactionHash)
The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
transactionHash
- The hash of the transaction. It is generated whenever a transaction is verified and added to the
blockchain.public String getTransactionHash()
The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
public Transaction withTransactionHash(String transactionHash)
The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
transactionHash
- The hash of the transaction. It is generated whenever a transaction is verified and added to the
blockchain.public void setBlockNumber(String blockNumber)
The block number in which the transaction is recorded.
blockNumber
- The block number in which the transaction is recorded.public String getBlockNumber()
The block number in which the transaction is recorded.
public Transaction withBlockNumber(String blockNumber)
The block number in which the transaction is recorded.
blockNumber
- The block number in which the transaction is recorded.public void setTransactionTimestamp(Date transactionTimestamp)
The Timestamp
of the transaction.
transactionTimestamp
- The Timestamp
of the transaction.public Date getTransactionTimestamp()
The Timestamp
of the transaction.
Timestamp
of the transaction.public Transaction withTransactionTimestamp(Date transactionTimestamp)
The Timestamp
of the transaction.
transactionTimestamp
- The Timestamp
of the transaction.public void setTransactionIndex(Long transactionIndex)
The index of the transaction within a blockchain.
transactionIndex
- The index of the transaction within a blockchain.public Long getTransactionIndex()
The index of the transaction within a blockchain.
public Transaction withTransactionIndex(Long transactionIndex)
The index of the transaction within a blockchain.
transactionIndex
- The index of the transaction within a blockchain.public void setNumberOfTransactions(Long numberOfTransactions)
The number of transactions in the block.
numberOfTransactions
- The number of transactions in the block.public Long getNumberOfTransactions()
The number of transactions in the block.
public Transaction withNumberOfTransactions(Long numberOfTransactions)
The number of transactions in the block.
numberOfTransactions
- The number of transactions in the block.@Deprecated public void setStatus(String status)
The status of the transaction.
This property is deprecated. You must use the confirmationStatus
and the
executionStatus
properties to determine if the status
of the transaction is
FINAL
or FAILED
.
Transactions with a status
of FINAL
will now have the confirmationStatus
set to FINAL
and the executionStatus
set to SUCCEEDED
.
Transactions with a status
of FAILED
will now have the confirmationStatus
set to FINAL
and the executionStatus
set to FAILED
.
status
- The status of the transaction.
This property is deprecated. You must use the confirmationStatus
and the
executionStatus
properties to determine if the status
of the transaction is
FINAL
or FAILED
.
Transactions with a status
of FINAL
will now have the
confirmationStatus
set to FINAL
and the executionStatus
set to
SUCCEEDED
.
Transactions with a status
of FAILED
will now have the
confirmationStatus
set to FINAL
and the executionStatus
set to
FAILED
.
QueryTransactionStatus
@Deprecated public String getStatus()
The status of the transaction.
This property is deprecated. You must use the confirmationStatus
and the
executionStatus
properties to determine if the status
of the transaction is
FINAL
or FAILED
.
Transactions with a status
of FINAL
will now have the confirmationStatus
set to FINAL
and the executionStatus
set to SUCCEEDED
.
Transactions with a status
of FAILED
will now have the confirmationStatus
set to FINAL
and the executionStatus
set to FAILED
.
This property is deprecated. You must use the confirmationStatus
and the
executionStatus
properties to determine if the status
of the transaction is
FINAL
or FAILED
.
Transactions with a status
of FINAL
will now have the
confirmationStatus
set to FINAL
and the executionStatus
set to
SUCCEEDED
.
Transactions with a status
of FAILED
will now have the
confirmationStatus
set to FINAL
and the executionStatus
set to
FAILED
.
QueryTransactionStatus
@Deprecated public Transaction withStatus(String status)
The status of the transaction.
This property is deprecated. You must use the confirmationStatus
and the
executionStatus
properties to determine if the status
of the transaction is
FINAL
or FAILED
.
Transactions with a status
of FINAL
will now have the confirmationStatus
set to FINAL
and the executionStatus
set to SUCCEEDED
.
Transactions with a status
of FAILED
will now have the confirmationStatus
set to FINAL
and the executionStatus
set to FAILED
.
status
- The status of the transaction.
This property is deprecated. You must use the confirmationStatus
and the
executionStatus
properties to determine if the status
of the transaction is
FINAL
or FAILED
.
Transactions with a status
of FINAL
will now have the
confirmationStatus
set to FINAL
and the executionStatus
set to
SUCCEEDED
.
Transactions with a status
of FAILED
will now have the
confirmationStatus
set to FINAL
and the executionStatus
set to
FAILED
.
QueryTransactionStatus
@Deprecated public Transaction withStatus(QueryTransactionStatus status)
The status of the transaction.
This property is deprecated. You must use the confirmationStatus
and the
executionStatus
properties to determine if the status
of the transaction is
FINAL
or FAILED
.
Transactions with a status
of FINAL
will now have the confirmationStatus
set to FINAL
and the executionStatus
set to SUCCEEDED
.
Transactions with a status
of FAILED
will now have the confirmationStatus
set to FINAL
and the executionStatus
set to FAILED
.
status
- The status of the transaction.
This property is deprecated. You must use the confirmationStatus
and the
executionStatus
properties to determine if the status
of the transaction is
FINAL
or FAILED
.
Transactions with a status
of FINAL
will now have the
confirmationStatus
set to FINAL
and the executionStatus
set to
SUCCEEDED
.
Transactions with a status
of FAILED
will now have the
confirmationStatus
set to FINAL
and the executionStatus
set to
FAILED
.
QueryTransactionStatus
public void setTo(String to)
The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
to
- The identifier of the transaction. It is generated whenever a transaction is verified and added to the
blockchain.public String getTo()
The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
public Transaction withTo(String to)
The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
to
- The identifier of the transaction. It is generated whenever a transaction is verified and added to the
blockchain.public void setFrom(String from)
The initiator of the transaction. It is either in the form a public key or a contract address.
from
- The initiator of the transaction. It is either in the form a public key or a contract address.public String getFrom()
The initiator of the transaction. It is either in the form a public key or a contract address.
public Transaction withFrom(String from)
The initiator of the transaction. It is either in the form a public key or a contract address.
from
- The initiator of the transaction. It is either in the form a public key or a contract address.public void setContractAddress(String contractAddress)
The blockchain address for the contract.
contractAddress
- The blockchain address for the contract.public String getContractAddress()
The blockchain address for the contract.
public Transaction withContractAddress(String contractAddress)
The blockchain address for the contract.
contractAddress
- The blockchain address for the contract.public void setGasUsed(String gasUsed)
The amount of gas used for the transaction.
gasUsed
- The amount of gas used for the transaction.public String getGasUsed()
The amount of gas used for the transaction.
public Transaction withGasUsed(String gasUsed)
The amount of gas used for the transaction.
gasUsed
- The amount of gas used for the transaction.public void setCumulativeGasUsed(String cumulativeGasUsed)
The amount of gas used up to the specified point in the block.
cumulativeGasUsed
- The amount of gas used up to the specified point in the block.public String getCumulativeGasUsed()
The amount of gas used up to the specified point in the block.
public Transaction withCumulativeGasUsed(String cumulativeGasUsed)
The amount of gas used up to the specified point in the block.
cumulativeGasUsed
- The amount of gas used up to the specified point in the block.public void setEffectiveGasPrice(String effectiveGasPrice)
The effective gas price.
effectiveGasPrice
- The effective gas price.public String getEffectiveGasPrice()
The effective gas price.
public Transaction withEffectiveGasPrice(String effectiveGasPrice)
The effective gas price.
effectiveGasPrice
- The effective gas price.public void setSignatureV(Integer signatureV)
The signature of the transaction. The Z coordinate of a point V.
signatureV
- The signature of the transaction. The Z coordinate of a point V.public Integer getSignatureV()
The signature of the transaction. The Z coordinate of a point V.
public Transaction withSignatureV(Integer signatureV)
The signature of the transaction. The Z coordinate of a point V.
signatureV
- The signature of the transaction. The Z coordinate of a point V.public void setSignatureR(String signatureR)
The signature of the transaction. The X coordinate of a point R.
signatureR
- The signature of the transaction. The X coordinate of a point R.public String getSignatureR()
The signature of the transaction. The X coordinate of a point R.
public Transaction withSignatureR(String signatureR)
The signature of the transaction. The X coordinate of a point R.
signatureR
- The signature of the transaction. The X coordinate of a point R.public void setSignatureS(String signatureS)
The signature of the transaction. The Y coordinate of a point S.
signatureS
- The signature of the transaction. The Y coordinate of a point S.public String getSignatureS()
The signature of the transaction. The Y coordinate of a point S.
public Transaction withSignatureS(String signatureS)
The signature of the transaction. The Y coordinate of a point S.
signatureS
- The signature of the transaction. The Y coordinate of a point S.public void setTransactionFee(String transactionFee)
The transaction fee.
transactionFee
- The transaction fee.public String getTransactionFee()
The transaction fee.
public Transaction withTransactionFee(String transactionFee)
The transaction fee.
transactionFee
- The transaction fee.public void setTransactionId(String transactionId)
The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
transactionId
- The unique identifier of the transaction. It is generated whenever a transaction is verified and added to
the blockchain.public String getTransactionId()
The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
public Transaction withTransactionId(String transactionId)
The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
transactionId
- The unique identifier of the transaction. It is generated whenever a transaction is verified and added to
the blockchain.public void setConfirmationStatus(String confirmationStatus)
Specifies whether the transaction has reached Finality.
confirmationStatus
- Specifies whether the transaction has reached Finality.ConfirmationStatus
public String getConfirmationStatus()
Specifies whether the transaction has reached Finality.
ConfirmationStatus
public Transaction withConfirmationStatus(String confirmationStatus)
Specifies whether the transaction has reached Finality.
confirmationStatus
- Specifies whether the transaction has reached Finality.ConfirmationStatus
public Transaction withConfirmationStatus(ConfirmationStatus confirmationStatus)
Specifies whether the transaction has reached Finality.
confirmationStatus
- Specifies whether the transaction has reached Finality.ConfirmationStatus
public void setExecutionStatus(String executionStatus)
Identifies whether the transaction has succeeded or failed.
executionStatus
- Identifies whether the transaction has succeeded or failed.ExecutionStatus
public String getExecutionStatus()
Identifies whether the transaction has succeeded or failed.
ExecutionStatus
public Transaction withExecutionStatus(String executionStatus)
Identifies whether the transaction has succeeded or failed.
executionStatus
- Identifies whether the transaction has succeeded or failed.ExecutionStatus
public Transaction withExecutionStatus(ExecutionStatus executionStatus)
Identifies whether the transaction has succeeded or failed.
executionStatus
- Identifies whether the transaction has succeeded or failed.ExecutionStatus
public String toString()
toString
in class Object
Object.toString()
public Transaction clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.