harvest_rewards: TxDescriptor<{ pool_id: number; staker?: SS58String }>

Harvest unclaimed pool rewards.

Parameters:

  • origin: must be the staker if the pool is still active. Otherwise, any account.
  • pool_id: the pool to harvest from.
  • staker: the account for which to harvest rewards. If None, the caller is used.