I (C) want to manage an escrow between A and B.

A deposits lumen into a new account and wants B to do something. If B does something - which I determine if B has done it, e.g. answer a questionaire - B should get the amount in the new account.

For financial reasons I don't want to touch the lumen, which would be easier (I take the lumen and when B has done it, I transfer the lumen to B).

So I think an escrow account would be great. I've read about escrow in Stellar and it seems to involve multi sig transactions. How would this work in this case? How can two people sign an transaction from two different wallets? Should A and B sign this instead of me?

All examples I've seen on escrow assume the private keys are shared by one entity e.g. [1]


which doesn't look like escrow to me at all.

[1] https://medium.com/wearetheledger/stellar-escrow-smart-contract-development-4c43ef32ac4b

1 Answer 1


What you can do is create a new account C(the escrow account where A deposits the lumens) and make A and B signers on C.

To release the funds, Both A and B have to authorize the payment.

Here is a demo that showcases this. https://github.com/poliha/escrow-demo

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.