Expose all rewards (fees, rent, voting and staking) in RPC getConfirmedBlock and the cli (bp #12768) (#12790)
* Expose all rewards (fees, rent, voting and staking) in RPC getConfirmedBlock and the cli (cherry picked from commitc5c8da1ac0) # Conflicts: # Cargo.lock # transaction-status/Cargo.toml * fix: surface full block rewards type (cherry picked from commit1b16790325) * resolve conflicts Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
		| @@ -502,6 +502,8 @@ type ConfirmedBlock = { | ||||
|   rewards: Array<{ | ||||
|     pubkey: string, | ||||
|     lamports: number, | ||||
|     postBalance: number | null, | ||||
|     rewardType: string | null, | ||||
|   }>, | ||||
| }; | ||||
|  | ||||
| @@ -1135,6 +1137,8 @@ export const GetConfirmedBlockRpcResult = jsonRpcResult( | ||||
|           struct({ | ||||
|             pubkey: 'string', | ||||
|             lamports: 'number', | ||||
|             postBalance: struct.union(['number', 'undefined']), | ||||
|             rewardType: struct.union(['string', 'undefined']), | ||||
|           }), | ||||
|         ]), | ||||
|       ]), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user