@Generated(value="software.amazon.awssdk:codegen") public final class TransactionEvent extends Object implements SdkPojo, Serializable, ToCopyableBuilder<TransactionEvent.Builder,TransactionEvent>
The container for the properties of a transaction event.
| Modifier and Type | Class and Description |
|---|---|
static interface |
TransactionEvent.Builder |
| Modifier and Type | Method and Description |
|---|---|
static TransactionEvent.Builder |
builder() |
String |
contractAddress()
The blockchain address.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
QueryTransactionEventType |
eventType()
The type of transaction event.
|
String |
eventTypeAsString()
The type of transaction event.
|
String |
from()
The wallet address initiating the transaction.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
QueryNetwork |
network()
The blockchain network where the transaction occurred.
|
String |
networkAsString()
The blockchain network where the transaction occurred.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends TransactionEvent.Builder> |
serializableBuilderClass() |
String |
to()
The wallet address receiving the transaction.
|
TransactionEvent.Builder |
toBuilder() |
String |
tokenId()
The unique identifier for the token involved in the transaction.
|
String |
toString()
Returns a string representation of this object.
|
String |
transactionHash()
The hash of the transaction.
|
String |
transactionId()
The unique identifier of the transaction.
|
String |
value()
The value that was transacted.
|
Integer |
voutIndex()
The position of the vout in the transaction output list.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final QueryNetwork network()
The blockchain network where the transaction occurred.
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 occurred.
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 transactionHash()
The hash of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
public final QueryTransactionEventType eventType()
The type of transaction event.
If the service returns an enum value that is not available in the current SDK version, eventType will
return QueryTransactionEventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from eventTypeAsString().
QueryTransactionEventTypepublic final String eventTypeAsString()
The type of transaction event.
If the service returns an enum value that is not available in the current SDK version, eventType will
return QueryTransactionEventType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from eventTypeAsString().
QueryTransactionEventTypepublic final String from()
The wallet address initiating the transaction. It can either be a public key or a contract.
public final String to()
The wallet address receiving the transaction. It can either be a public key or a contract.
public final String value()
The value that was transacted.
public final String contractAddress()
The blockchain address. for the contract
public final String tokenId()
The unique identifier for the token involved in the transaction.
public final String transactionId()
The unique identifier of the transaction. It is generated whenever a transaction is verified and added to the blockchain.
public final Integer voutIndex()
The position of the vout in the transaction output list.
public TransactionEvent.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<TransactionEvent.Builder,TransactionEvent>public static TransactionEvent.Builder builder()
public static Class<? extends TransactionEvent.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.