TXN 0 |
ESCROW TO ORDERBOOK |
algosdk.makeApplicationCloseOutTxn |
Transaction must be a call to a stateful contract |
Wallet |
TXN 1 |
BUYER TO SELLER |
algosdk.makePaymentTxnWithSuggestedParams |
Pay transaction (from buyer/executor to escrow owner) |
Wallet |
TXN 2 |
BUYER TO BUYER |
algosdk.makeAssetTransferTxn |
(Optional) asset opt-in transaction (for buyer/executor) |
Wallet |
TXN 2/3 |
ESCROW TO BUYER |
algosdk.makeAssetTransferTxn |
Asset transfer (from escrow to buyer/executor) - closes out any remaining ASA to seller (escrow owner) as well |
Wallet |
TXN 3/4 |
ESCROW TO SELLER |
algosdk.makePaymentTxn |
Pay transaction to close out to escrow owner |
Wallet |