EscrowFinish
Deliver XAH or IOU from a held payment to the recipient.
[Source]
Added by the [Escrow amendment][].
Finish with OfferSequence
Finish with EscrowID
Fields
Owner
String
AccountID
Address of the source account that funded the held payment.
OfferSequence
Number
UInt32
(Optional) Transaction sequence of [EscrowCreate transaction][] that created the held payment to finish.
Condition
String
Blob
Fulfillment
String
Blob
EscrowID
String
Hash256
(Optional) The ID of the Escrow ledger object to finish, as a 64-character hexadecimal string.
Any account may submit an EscrowFinish transaction.
If the held payment has a
FinishAfter
time, you cannot execute it before this time. Specifically, if the corresponding [EscrowCreate transaction][] specified aFinishAfter
time that is after the close time of the most recently-closed ledger, the EscrowFinish transaction fails.If the held payment has a
Condition
, you cannot execute it unless you provide a matchingFulfillment
for the condition.You cannot execute a held payment after it has expired. Specifically, if the corresponding [EscrowCreate transaction][] specified a
CancelAfter
time that is before the close time of the most recently-closed ledger, the EscrowFinish transaction fails.
Note: The minimum transaction cost to submit an EscrowFinish transaction increases if it contains a fulfillment. If the transaction has no fulfillment, the transaction cost is the standard 10 drops. If the transaction contains a fulfillment, the transaction cost is 330 [drops of XAH][] plus another 10 drops for every 16 bytes in size of the preimage.
In non-production networks, it may be possible to delete the destination account of a pending escrow. In this case, an attempt to finish the escrow fails with the result tecNO_TARGET
, but the escrow object remains unless it has expired normally. If another payment re-creates the destination account, the escrow can be finished successfully. The destination account of an escrow can only be deleted if the escrow was created before the fix1523 amendment became enabled. No such escrows exist in the production Xahau, so this edge case is not possible on the production Xahau. This edge case is also not possible in test networks that enable both fix1523 and Escrow amendments at the same time, which is the default when you start a new genesis ledger.
Last updated