Package org.stellar.sdk
Class TransactionPreconditions.TransactionPreconditionsBuilder
java.lang.Object
org.stellar.sdk.TransactionPreconditions.TransactionPreconditionsBuilder
- Enclosing class:
TransactionPreconditions
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
extraSigners
(@NonNull List<SignerKey> extraSigners) Required extra signers.ledgerBounds
(LedgerBounds ledgerBounds) The ledger bounds for the transaction.minSeqAge
(@NonNull BigInteger minSeqAge) The minimum amount of time between source account sequence time and the ledger time when this transaction will become valid.minSeqLedgerGap
(long minSeqLedgerGap) The minimum number of ledgers between source account sequence and the ledger number when this transaction will become valid.minSeqNumber
(Long minSeqNumber) The minimum source account sequence number this transaction is valid for.timeBounds
(TimeBounds timeBounds) The time bounds for the transaction.toString()
-
Method Details
-
timeBounds
The time bounds for the transaction.- Returns:
this
.
-
ledgerBounds
public TransactionPreconditions.TransactionPreconditionsBuilder ledgerBounds(@Nullable LedgerBounds ledgerBounds) The ledger bounds for the transaction.- Returns:
this
.
-
minSeqNumber
public TransactionPreconditions.TransactionPreconditionsBuilder minSeqNumber(@Nullable Long minSeqNumber) The minimum source account sequence number this transaction is valid for. ifnull
, the transaction is valid when **source account's sequence number == tx.sequence - 1**.- Returns:
this
.
-
minSeqAge
public TransactionPreconditions.TransactionPreconditionsBuilder minSeqAge(@NonNull @NonNull BigInteger minSeqAge) The minimum amount of time between source account sequence time and the ledger time when this transaction will become valid. If the value is0
, the transaction is unrestricted by the account sequence age. Cannot be negative.- Returns:
this
.
-
minSeqLedgerGap
public TransactionPreconditions.TransactionPreconditionsBuilder minSeqLedgerGap(long minSeqLedgerGap) The minimum number of ledgers between source account sequence and the ledger number when this transaction will become valid. If the value is0
, the transaction is unrestricted by the account sequence ledger. Cannot be negative.- Returns:
this
.
-
extraSigners
public TransactionPreconditions.TransactionPreconditionsBuilder extraSigners(@NonNull @NonNull List<SignerKey> extraSigners) Required extra signers.- Returns:
this
.
-
build
-
toString
-