Interface EscrowFinish
-
- All Superinterfaces:
Transaction
- All Known Implementing Classes:
ImmutableEscrowFinish
@Immutable public interface EscrowFinish extends Transaction
Deliver XRP from a held payment to the recipient.
-
-
Field Summary
-
Fields inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
RIPPLE_EPOCH, typeMap
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static ImmutableEscrowFinish.Builder
builder()
default void
check()
Validate fields.static XrpCurrencyAmount
computeFee(XrpCurrencyAmount currentLedgerFeeDrops, com.ripple.cryptoconditions.Fulfillment fulfillment)
Compute the fee for the suppliedfulfillment
.Optional<com.ripple.cryptoconditions.Condition>
condition()
Hex value matching the previously-supplied PREIMAGE-SHA-256 crypto-condition of the held payment.default Flags.TransactionFlags
flags()
Optional<com.ripple.cryptoconditions.Fulfillment<?>>
fulfillment()
Hex value of the PREIMAGE-SHA-256 crypto-condition fulfillment matching the held payment'scondition
.com.google.common.primitives.UnsignedInteger
offerSequence()
TheTransaction.sequence()
of the transaction that created the escrow to cancel.Address
owner()
Address
of the source account that funded the escrow payment.-
Methods inherited from interface org.xrpl.xrpl4j.model.transactions.Transaction
account, accountTransactionId, closeDate, closeDateHuman, fee, hash, lastLedgerSequence, ledgerIndex, memos, sequence, signers, signingPublicKey, sourceTag, transactionSignature, transactionType
-
-
-
-
Method Detail
-
builder
static ImmutableEscrowFinish.Builder builder()
-
computeFee
static XrpCurrencyAmount computeFee(XrpCurrencyAmount currentLedgerFeeDrops, com.ripple.cryptoconditions.Fulfillment fulfillment)
Compute the fee for the suppliedfulfillment
. The minimum transaction cost to submit an EscrowFinish transaction increases if it contains a fulfillment. If the transaction contains a fulfillment, the transaction cost is 330 drops of XRP plus another 10 drops for every 16 bytes in size of the preimage.- Parameters:
currentLedgerFeeDrops
- The number of drops that the ledger demands at present.fulfillment
- TheFulfillment
that is being presented to the ledger for computation purposes.- Returns:
- An
XrpCurrencyAmount
representing the computed fee. - See Also:
- "https://xrpl.org/escrowfinish.html"
-
flags
@Derived default Flags.TransactionFlags flags()
Set ofFlags.TransactionFlags
s for thisEscrowFinish
, which only allowstfFullyCanonicalSig
flag.The value of the flags cannot be set manually, but exists for JSON serialization/deserialization only and for proper signature computation in rippled.
- Returns:
- Always
Flags.TransactionFlags
withtfFullyCanonicalSig
set.
-
owner
Address owner()
Address
of the source account that funded the escrow payment.- Returns:
- The
Address
of the source account.
-
offerSequence
com.google.common.primitives.UnsignedInteger offerSequence()
TheTransaction.sequence()
of the transaction that created the escrow to cancel.- Returns:
- An
UnsignedInteger
representing the sequence number.
-
condition
Optional<com.ripple.cryptoconditions.Condition> condition()
Hex value matching the previously-supplied PREIMAGE-SHA-256 crypto-condition of the held payment.- Returns:
- An
Optional
of typeCondition
containing the escrow condition.
-
fulfillment
Optional<com.ripple.cryptoconditions.Fulfillment<?>> fulfillment()
Hex value of the PREIMAGE-SHA-256 crypto-condition fulfillment matching the held payment'scondition
.- Returns:
- An
Optional
of typeFulfillment
containing the fulfillment for the escrow's condition.
-
check
@Check default void check()
Validate fields.
-
-