Redeemer.

Data supplied by the spender of an eUTxO. The “action” passed into the validator.

Think of it as

The intent or instruction you bring with the key. The box already knows what it is (datum); you tell it what you want to do with it.

In depth

A Redeemer is the input the spending transaction provides to the validator script: claim, swap, vote, cancel, whatever the contract expects. Together with the Datum and Script Context, it determines whether the validator returns true and the spend is allowed.

Example

To withdraw from a vesting contract, the spending transaction supplies a Redeemer like { action: "Claim" }.

Next on this path

  1. Script Context The full transaction visible to a validator: inputs, outputs, fees, signatories, time range.
  2. Validator A pure script that gates a UTxO. Returns pass or fail given Datum, Redeemer and Script Context.