Delivery versus Payment on Stellar Mainnet
Escrow what you are selling in an immutable contract and let a counterparty pay for it in the same transaction — either both legs land or neither does
Atomic settlement, no counterparty risk
…
Projects launched with Token Tool4.8
Average token creation time in minutes13,000+
Community membersDelivery versus payment, enforced on-chain
Terms you set, fills you control
Trusted by Institutions and Web3 builders alike
Reto Grässli
Senior Project Manager at VP Bank
"Art, collectibles and other real assets can be a great addition to any diverse portfolio. We use Token Tool in combination with our bank-grade custody solution to tokenize valuable assets for our private clients."
Anya Sharma
AI Founder
"As a founder building AI agents, speed and security are crucial. The Token Tool smart contract generator was instrumental for our token and IDO launch. Highly recommend!"
DAO Dave
Web3 Builder
"Hi DAO friends! Dave here. This no-code token generator? Game changer. Launched our governance token in minutes, no dev headaches. Join us!"
Delivery versus Payment on Stellar FAQ
What is a Swap?
What is a Swap?
A Swap is a delivery-versus-payment escrow on Stellar. You — the maker — escrow the asset you are selling in an immutable contract and name what you want paid for it. A counterparty — the taker — settles it, and the two legs move in the same transaction: they pay you and receive the escrowed asset, or nothing happens at all. Nobody holds both sides at once, and no custodian is involved.
A Swap that names a permitted counterparty is an OTC Trade: only that address can settle it. A Swap that names none is an Open Offer: anyone holding the link can settle it. That is the only difference between the two shapes — the same contract, the same escrow, the same settlement.
What does the escrow guarantee, and what does it not?
What does the escrow guarantee, and what does it not?
The escrow guarantees atomicity and availability of your side. Once the Swap exists, the asset you are selling has left your account and sits in the contract, so a taker cannot pay and be left without delivery, and you cannot sell the same tokens twice. Settlement is one transaction: the payment reaches you and the escrow reaches the taker together, or the whole transaction fails.
It does not guarantee that anyone will ever settle it. A Swap is an offer, not a commitment from the other side — if no taker appears, the escrow simply sits there until you Cancel it or its expiry passes and it is Reclaimed. It also does not guarantee a price: the rate is what you wrote into the terms, and it does not move with the market. And it does not neutralise the powers an asset's issuer holds over that asset — see below.
Which assets can I swap?
Which assets can I swap?
Do I need to be able to receive the asset I am buying?
Do I need to be able to receive the asset I am buying?
Yes, and this is the one that surprises people. Set up your side before you create the Swap. If you are buying a Classic asset you must be able to receive it before the Swap can exist: the create wizard checks this and will not let you continue until you can. Where the only thing missing is your own trustline, the wizard adds a trustline step you must sign before the escrow is approved; where the issuer has not authorized you, or the account cannot hold the asset at all, the wizard blocks and explains what is missing.
The contract cannot fix this for you at settlement. It does open a trustline for the taker on the asset being delivered, so a taker who has never held your asset can still settle in one signed transaction. It cannot do the same for you on the asset being paid: opening a trustline requires that account's own authorization, and the taker is the only signer in a settle. A maker who cannot receive the buy asset has an unfillable Swap — every settle attempt fails on the payment leg — and its only exit is Cancel, which returns the whole remaining escrow.
What happens if an asset has AUTH_REQUIRED set?
What happens if an asset has AUTH_REQUIRED set?
Two separate things, and neither one is solved by a trustline alone.
On the sell side, the Swap contract itself has to be an authorized holder of the asset, otherwise the escrow cannot be funded. Only the issuer can grant that, and it happens out of band: the issuer calls
POST /v1/soroban/swaps/authorizefor the asset once, before anyone creates a Swap selling it. The wizard does not offer this as a step — it names the issuer and refuses to continue until the authorization exists.
On the buy side, an Open Offer of an
AUTH_REQUIREDasset can only be filled by a wallet the issuer has already authorized. The trustline the contract opens for the taker inside settle creates the trustline but cannot authorize it — only the issuer can — so the Swap stays unfillable for anyone the issuer has not cleared. For a restricted asset, an OTC Trade naming an already-authorized counterparty is the shape that works.
What issuer powers survive settlement?
What issuer powers survive settlement?
All of them. Escrow and atomic settlement change who holds an asset; they do not change what its issuer can do to it.
AUTH_CLAWBACK_ENABLED, its issuer can claw the asset out of any balance — the escrow's included, and the taker's after settlement. Token Tool discloses the flag wherever the Swap renders.
AUTH_REVOCABLE, the issuer can revoke a holder's authorization at any moment, including yours or the taker's, which is enough to make a pending Swap unsettleable.
A Swap protects you against your counterparty, not against the issuer of what you are trading. Read the asset's flags before you escrow anything, and treat a clawback-enabled asset as an asset you hold at the issuer's pleasure.
Can a Swap be settled partially?
Can a Swap be settled partially?
How do I get my tokens back?
How do I get my tokens back?
Two ways, and both can only ever pay the maker.
Cancel is yours: you sign it, at any time, for any reason, and the whole remaining escrow returns to your account. Reclaim is permissionless but only after expiry: once a Swap has expired anyone can trigger the return, and the funds still go only to you, so a third party can pay the network fee for it without ever being able to divert anything. What has already been settled stays settled — neither action unwinds a fill.
An expiry is required and can be at most 90 days ahead.
Can I take a commission on a Swap?
Can I take a commission on a Swap?
Yes. A Swap can carry your own brokerage: a recipient plus a maker-side and a taker-side rate, each at most 10% of the payment, collected in the buy asset on every settlement. The maker-side rate comes out of what you receive; the taker-side rate is added to what the taker pays. The recipient must be able to receive the buy asset — a recipient that cannot would make every settlement fail, so this is checked before the Swap is created.
Bitbond's service fee is a separate thing entirely, charged once to you at creation.
How much does a Swap cost?
How much does a Swap cost?
How is this different from Delivery vs Payment in the EVM Token Tool?
How is this different from Delivery vs Payment in the EVM Token Tool?
The name is shared; the mechanism is not. On the EVM side, Delivery vs Payment is a one-sided open sale: the owner funds a delivery token and anyone buys at a fixed ratio, with no bilateral settlement to speak of.
On Stellar the entity is a Swap, and it does both shapes. It can name a single permitted counterparty for a genuine bilateral OTC Trade, or name none and behave like an open sale. It settles partially and repeatably, it carries an expiry with a permissionless return afterwards, and it can pay a commission out of the payment leg. Nothing about a contract, an address or an audit carries across from the EVM feature — they are separate deployments on separate chains.
Can I prove a Swap exists before anyone settles it?
Can I prove a Swap exists before anyone settles it?
Which wallets can I use?
Which wallets can I use?
Freighter, LOBSTR and any wallet that supports WalletConnect, including LOBSTR vault multisig accounts.