This forum is a read-only archive. Posting, replying and signing in are disabled.

Escrow stateless smart contract

isha

Can anyone please help to understand how to add conditions for Escrow account in stateless smart contracts.

danger_dave

Hey isha,

Could you be more specific?

Smart Contracts are written in TEAL (Transaction Execution Approval Language).

There are several examples of stateless smart contracts available to help you learn more here.

Some good ones for getting started in Python are:

  1. Hash Time Lock Contract
  2. Periodic Payment
isha

Okay so for example,
If I want to transfer ASA in exchange of algos using an escrow account.
So here my condition is once the receiver receives ASA only then algos from escrow account should be transferred(released) to the ASA sender.

isha

If you have any example of stateless smart contract related to escrow account please send me.