Writing an Option
You sign once. The bot does the rest. Three transactions happen in sequence — but you only touch the first one. Your collateral is locked in the smart contract within about a minute.
What You See
You fill in the option parameters — asset, strike price, expiry date, and how much collateral to lock. You sign one transaction in Nautilus. The progress tracker shows three stages: Create Definition, Mint Tokens, Deliver to Wallet. About a minute later, your tradeable option tokens are sitting in your wallet, ready to list for sale.
Three Transactions, One Signature
TX 1 — CREATE (you sign this)
Your collateral leaves your wallet and goes into a “definition box” at the contract address. This box holds your collateral plus a small ERG deposit (~0.013 ERG) that covers miner fees for the next two automated steps.
TX 2 — MINT (bot does this automatically)
The bot detects your definition box and creates the option tokens. In Ergo, a new token's ID always equals the ID of the first input box — so the option token ID is guaranteed to be unique and unforgeable. The bot takes the 0.01 ERG mint fee from your deposit and sends it to the platform fee address.
INPUTS.size == 1 (just the definition box) and OUTPUTS.size == 3 (reserve, fee, miner). The contract validates the token count formula, checks the Token Registry to confirm the collateral matches the oracle feed, and verifies the fee output goes to the address stored in R9[1].TX 3 — DELIVER (bot does this automatically)
The bot splits the reserve: it keeps the singleton in the contract and sends the tradeable tokens to your wallet. Now you hold N option tokens, ready to sell.
isMinted && !isOptionDelivered, verifies the singleton stays in OUTPUT[0] with tokens(0)._2 == 1, and sends N tokens to the issuer address from R9[0]. All registers are preserved in the successor box.How Many Tokens?
The number of tradeable tokens depends on how much collateral you lock. The contract divides your total collateral by the per-contract amount, then adds one extra token — the singleton — that stays locked in the reserve forever as a receipt proving the contract exists.
You sign once. The bot handles mint and deliver automatically. Your collateral is locked in the contract — only the smart contract decides where it goes.