ReceiveReward

This is the interface for storage miners to claim rewards.

// ReceiveReward to receive rewards
//
// Return:
//   - string: block hash
//   - error: error message
//
// Note:
//   - for storage miner only
//   - pass at least one idle and service challenge at the same time to get the reward
func (c *ChainClient) ReceiveReward() (string, error)

For example code, please refer to claim.go

Last updated