public final class TransactionPreconditions
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TransactionPreconditions.TransactionPreconditionsBuilder |
| Modifier and Type | Field and Description |
|---|---|
static long |
MAX_EXTRA_SIGNERS_COUNT |
static java.math.BigInteger |
TIMEOUT_INFINITE |
| Modifier and Type | Method and Description |
|---|---|
static TransactionPreconditions.TransactionPreconditionsBuilder |
builder() |
boolean |
equals(java.lang.Object o) |
static TransactionPreconditions |
fromXdr(Preconditions preconditions)
Creates a new
TransactionPreconditions object from a Preconditions XDR object. |
@NonNull java.util.List<SignerKey> |
getExtraSigners()
Required extra signers.
|
LedgerBounds |
getLedgerBounds()
The ledger bounds for the transaction.
|
@NonNull java.math.BigInteger |
getMinSeqAge()
The minimum amount of time between source account sequence time and the ledger time when this
transaction will become valid.
|
long |
getMinSeqLedgerGap()
The minimum number of ledgers between source account sequence and the ledger number when this
transaction will become valid.
|
java.lang.Long |
getMinSeqNumber()
The minimum source account sequence number this transaction is valid for.
|
TimeBounds |
getTimeBounds()
The time bounds for the transaction.
|
int |
hashCode() |
boolean |
hasV2() |
TransactionPreconditions.TransactionPreconditionsBuilder |
toBuilder() |
java.lang.String |
toString() |
Preconditions |
toXdr() |
void |
validate()
Validates the preconditions.
|
public static final long MAX_EXTRA_SIGNERS_COUNT
public static final java.math.BigInteger TIMEOUT_INFINITE
public void validate()
java.lang.IllegalStateException - if the preconditions are invalidpublic boolean hasV2()
true if the preconditions are v2.public static TransactionPreconditions fromXdr(Preconditions preconditions)
TransactionPreconditions object from a Preconditions XDR object.preconditions - the Preconditions object to convertTransactionPreconditions object from the given XDR objectpublic Preconditions toXdr()
TransactionPreconditionspublic static TransactionPreconditions.TransactionPreconditionsBuilder builder()
public TransactionPreconditions.TransactionPreconditionsBuilder toBuilder()
public TimeBounds getTimeBounds()
@Nullable public LedgerBounds getLedgerBounds()
@Nullable public java.lang.Long getMinSeqNumber()
null,
the transaction is valid when **source account's sequence number == tx.sequence - 1**.@NonNull public @NonNull java.math.BigInteger getMinSeqAge()
0, the transaction is unrestricted
by the account sequence age. Cannot be negative.public long getMinSeqLedgerGap()
0, the transaction is unrestricted
by the account sequence ledger. Cannot be negative.@NonNull public @NonNull java.util.List<SignerKey> getExtraSigners()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object