@Generated(value="software.amazon.awssdk:codegen") public final class Transaction extends Object implements SdkPojo, Serializable, 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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Transaction.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
blockHash()
The block hash is a unique identifier for a block.
|
String |
blockNumber()
The block number in which the transaction is recorded.
|
static Transaction.Builder |
builder() |
String |
contractAddress()
The blockchain address for the contract.
|
String |
cumulativeGasUsed()
The amount of gas used up to the specified point in the block.
|
String |
effectiveGasPrice()
The effective gas price.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
from()
The initiator of the transaction.
|
String |
gasUsed()
The amount of gas used for the transaction.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
QueryNetwork |
network()
The blockchain network where the transaction occured.
|
String |
networkAsString()
The blockchain network where the transaction occured.
|
Long |
numberOfTransactions()
The number of transactions in the block.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Transaction.Builder> |
serializableBuilderClass() |
String |
signatureR()
The signature of the transaction.
|
String |
signatureS()
The signature of the transaction.
|
Integer |
signatureV()
The signature of the transaction.
|
QueryTransactionStatus |
status()
The status of the transaction.
|
String |
statusAsString()
The status of the transaction.
|
String |
to()
The identifier of the transaction.
|
Transaction.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
transactionFee()
The transaction fee.
|
String |
transactionHash()
The hash of the transaction.
|
String |
transactionId()
The unique identifier of the transaction.
|
Long |
transactionIndex()
The index of the transaction within a blockchain.
|
Instant |
transactionTimestamp()
The
Timestamp of the transaction. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final QueryNetwork network()
The blockchain network where the transaction occured.
If the service returns an enum value that is not available in the current SDK version, network will
return QueryNetwork.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
networkAsString().
QueryNetworkpublic final String networkAsString()
The blockchain network where the transaction occured.
If the service returns an enum value that is not available in the current SDK version, network will
return QueryNetwork.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
networkAsString().
QueryNetworkpublic final 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.
public final String transactionHash()
The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
public final String blockNumber()
The block number in which the transaction is recorded.
public final Instant transactionTimestamp()
The Timestamp of the transaction.
Timestamp of the transaction.public final Long transactionIndex()
The index of the transaction within a blockchain.
public final Long numberOfTransactions()
The number of transactions in the block.
public final QueryTransactionStatus status()
The status of the transaction.
If the service returns an enum value that is not available in the current SDK version, status will
return QueryTransactionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
QueryTransactionStatuspublic final String statusAsString()
The status of the transaction.
If the service returns an enum value that is not available in the current SDK version, status will
return QueryTransactionStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from statusAsString().
QueryTransactionStatuspublic final String to()
The identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
public final String from()
The initiator of the transaction. It is either in the form a public key or a contract address.
public final String contractAddress()
The blockchain address for the contract.
public final String gasUsed()
The amount of gas used for the transaction.
public final String cumulativeGasUsed()
The amount of gas used up to the specified point in the block.
public final String effectiveGasPrice()
The effective gas price.
public final Integer signatureV()
The signature of the transaction. The Z coordinate of a point V.
public final String signatureR()
The signature of the transaction. The X coordinate of a point R.
public final String signatureS()
The signature of the transaction. The Y coordinate of a point S.
public final String transactionFee()
The transaction fee.
public final String transactionId()
The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
public Transaction.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Transaction.Builder,Transaction>public static Transaction.Builder builder()
public static Class<? extends Transaction.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.