Class Transaction
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Transaction.Builder,Transaction>
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.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal StringThe block hash is a unique identifier for a block.final StringThe block number in which the transaction is recorded.static Transaction.Builderbuilder()final ConfirmationStatusSpecifies whether the transaction has reached Finality.final StringSpecifies whether the transaction has reached Finality.final StringThe blockchain address for the contract.final StringThe amount of gas used up to the specified point in the block.final StringThe effective gas price.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final ExecutionStatusIdentifies whether the transaction has succeeded or failed.final StringIdentifies whether the transaction has succeeded or failed.final Stringfrom()The initiator of the transaction.final StringgasUsed()The amount of gas used for the transaction.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final QueryNetworknetwork()The blockchain network where the transaction occurred.final StringThe blockchain network where the transaction occurred.final LongThe number of transactions in the block.static Class<? extends Transaction.Builder> final StringThe signature of the transaction.final StringThe signature of the transaction.final IntegerThe signature of the transaction.final Stringto()The identifier of the transaction.Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final StringThe transaction fee.final StringThe hash of a transaction.final StringThe identifier of a Bitcoin transaction.final LongThe index of the transaction within a blockchain.final InstantTheTimestampof the transaction.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
network
The blockchain network where the transaction occurred.
If the service returns an enum value that is not available in the current SDK version,
networkwill returnQueryNetwork.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnetworkAsString().- Returns:
- The blockchain network where the transaction occurred.
- See Also:
-
networkAsString
The blockchain network where the transaction occurred.
If the service returns an enum value that is not available in the current SDK version,
networkwill returnQueryNetwork.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromnetworkAsString().- Returns:
- The blockchain network where the transaction occurred.
- See Also:
-
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.
- Returns:
- 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.
-
transactionHash
The hash of a transaction. It is generated when a transaction is created.
- Returns:
- The hash of a transaction. It is generated when a transaction is created.
-
blockNumber
The block number in which the transaction is recorded.
- Returns:
- The block number in which the transaction is recorded.
-
transactionTimestamp
The
Timestampof the transaction.- Returns:
- The
Timestampof the transaction.
-
transactionIndex
The index of the transaction within a blockchain.
- Returns:
- The index of the transaction within a blockchain.
-
numberOfTransactions
The number of transactions in the block.
- Returns:
- The number of transactions in the block.
-
to
The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
- Returns:
- The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
-
from
The initiator of the transaction. It is either in the form a public key or a contract address.
- Returns:
- The initiator of the transaction. It is either in the form a public key or a contract address.
-
contractAddress
The blockchain address for the contract.
- Returns:
- The blockchain address for the contract.
-
gasUsed
The amount of gas used for the transaction.
- Returns:
- The amount of gas used for the transaction.
-
cumulativeGasUsed
The amount of gas used up to the specified point in the block.
- Returns:
- The amount of gas used up to the specified point in the block.
-
effectiveGasPrice
-
signatureV
The signature of the transaction. The Z coordinate of a point V.
- Returns:
- The signature of the transaction. The Z coordinate of a point V.
-
signatureR
The signature of the transaction. The X coordinate of a point R.
- Returns:
- The signature of the transaction. The X coordinate of a point R.
-
signatureS
The signature of the transaction. The Y coordinate of a point S.
- Returns:
- The signature of the transaction. The Y coordinate of a point S.
-
transactionFee
-
transactionId
The identifier of a Bitcoin transaction. It is generated when a transaction is created.
- Returns:
- The identifier of a Bitcoin transaction. It is generated when a transaction is created.
-
confirmationStatus
Specifies whether the transaction has reached Finality.
If the service returns an enum value that is not available in the current SDK version,
confirmationStatuswill returnConfirmationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconfirmationStatusAsString().- Returns:
- Specifies whether the transaction has reached Finality.
- See Also:
-
confirmationStatusAsString
Specifies whether the transaction has reached Finality.
If the service returns an enum value that is not available in the current SDK version,
confirmationStatuswill returnConfirmationStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromconfirmationStatusAsString().- Returns:
- Specifies whether the transaction has reached Finality.
- See Also:
-
executionStatus
Identifies whether the transaction has succeeded or failed.
If the service returns an enum value that is not available in the current SDK version,
executionStatuswill returnExecutionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromexecutionStatusAsString().- Returns:
- Identifies whether the transaction has succeeded or failed.
- See Also:
-
executionStatusAsString
Identifies whether the transaction has succeeded or failed.
If the service returns an enum value that is not available in the current SDK version,
executionStatuswill returnExecutionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromexecutionStatusAsString().- Returns:
- Identifies whether the transaction has succeeded or failed.
- See Also:
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<Transaction.Builder,Transaction> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-