Interface EscrowFinish

    • Method Detail

      • computeFee

        static XrpCurrencyAmount computeFee​(XrpCurrencyAmount currentLedgerFeeDrops,
                                            com.ripple.cryptoconditions.Fulfillment fulfillment)
        Compute the fee for the supplied fulfillment. 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 - The Fulfillment that is being presented to the ledger for computation purposes.
        Returns:
        An XrpCurrencyAmount representing the computed fee.
        See Also:
        "https://xrpl.org/escrowfinish.html"
      • 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()
        The Transaction.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 type Condition 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's condition.
        Returns:
        An Optional of type Fulfillment containing the fulfillment for the escrow's condition.
      • check

        @Check
        default void check()
        Validate fields.