Everything you've learned, in one sandbox. Pick which UTxOs you spend. Define where the value goes. Set the script context. Choose a redeemer. Run the validator.
The capstone is complete once the validator accepts a transaction that spends at least one script-locked UTxO and sends value to two or more outputs.
1Inputs
2Outputs
3Context
4Redeemer
5Simulate
Step 1 · Pick your inputs
A wallet is a collection of UTxOs. Drag the ones you want to spend into the transaction tray, or click to toggle. Your own wallet UTxOs belong to alice and need her signature. Script-locked UTxOs require their validator to approve the spend.
Wallet UTxOs
⋮⋮
28 ada
a1b2…e3f4#0
⋮⋮
13.5 ada
c4d5…a6b7#0
⋮⋮
6 ada
d8e9…b1c2#1
⋮⋮
32 ada
f0a1…d2e3#0
🔒 vesting
⋮⋮
18 ada
a9b8…c7d6#0
🔒 sig-required
Selected inputs · 0
Drop UTxOs here. They become the inputs of your transaction.
Tips when the validator rejects
Inputs short. Inputs must cover outputs + fee. Add a bigger input or reduce an output.
Vesting not yet claimable. Set the validity interval to start at slot 1000 or later, or use the Cancel redeemer.
Required signer missing. Step 3 sets the signers list. Make sure the beneficiary or required signer is in there, and alice too whenever you spend one of her wallet UTxOs.
Wrong redeemer for the validator. Vesting expects Claim or Cancel. Signature-required validators only need Unit.