Option expiry price calculation

So, which closing price is taken into account to calculate settlement amount? Is it the weighted average of the last 30 minutes or the close of the last 1 minute candle?