I'm writing a script using the polkadot.js API. I want to find the minimum active stake for a certain era. I.e. the minimum amount of DOTs staked by a nominator that also got a reward for that era. Where can I find this value or how can I calculate it? Any help appreciated!
EDIT1: I accidentally wrote epoch when I meant era.