| 
									
										
										
										
											2020-07-10 23:11:07 -06:00
										 |  |  | --- | 
					
						
							|  |  |  | title: Monitoring a Validator | 
					
						
							|  |  |  | --- | 
					
						
							| 
									
										
										
										
											2019-08-08 11:42:17 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## Check Gossip
 | 
					
						
							| 
									
										
										
										
											2019-09-23 03:38:34 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-12-02 10:53:07 -07:00
										 |  |  | Confirm the IP address and **identity pubkey** of your validator is visible in | 
					
						
							|  |  |  | the gossip network by running: | 
					
						
							| 
									
										
										
										
											2019-09-23 03:38:34 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-08 11:42:17 -06:00
										 |  |  | ```bash | 
					
						
							| 
									
										
										
										
											2020-02-19 14:04:34 -07:00
										 |  |  | solana-gossip spy --entrypoint devnet.solana.com:8001 | 
					
						
							| 
									
										
										
										
											2019-08-08 11:42:17 -06:00
										 |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Check Your Balance
 | 
					
						
							| 
									
										
										
										
											2019-09-23 03:38:34 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-11-13 15:58:14 -07:00
										 |  |  | Your account balance should decrease by the transaction fee amount as your | 
					
						
							|  |  |  | validator submits votes, and increase after serving as the leader. Pass the | 
					
						
							|  |  |  | `--lamports` are to observe in finer detail: | 
					
						
							| 
									
										
										
										
											2019-09-23 03:38:34 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-08 11:42:17 -06:00
										 |  |  | ```bash | 
					
						
							| 
									
										
										
										
											2019-10-29 17:13:20 -06:00
										 |  |  | solana balance --lamports | 
					
						
							| 
									
										
										
										
											2019-08-08 11:42:17 -06:00
										 |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-11-13 15:58:14 -07:00
										 |  |  | ## Check Vote Activity
 | 
					
						
							| 
									
										
										
										
											2019-08-08 11:42:17 -06:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-01-20 23:06:47 -07:00
										 |  |  | The `solana vote-account` command displays the recent voting activity from | 
					
						
							| 
									
										
										
										
											2019-12-02 10:53:07 -07:00
										 |  |  | your validator: | 
					
						
							| 
									
										
										
										
											2019-09-23 03:38:34 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-08-08 11:42:17 -06:00
										 |  |  | ```bash | 
					
						
							| 
									
										
										
										
											2020-04-09 17:53:56 -07:00
										 |  |  | solana vote-account ~/vote-account-keypair.json | 
					
						
							| 
									
										
										
										
											2019-08-08 11:42:17 -06:00
										 |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## Get Cluster Info
 | 
					
						
							| 
									
										
										
										
											2019-09-23 03:38:34 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-12-02 10:53:07 -07:00
										 |  |  | There are several useful JSON-RPC endpoints for monitoring your validator on the | 
					
						
							|  |  |  | cluster, as well as the health of the cluster: | 
					
						
							| 
									
										
										
										
											2019-08-08 11:42:17 -06:00
										 |  |  | 
 | 
					
						
							|  |  |  | ```bash | 
					
						
							|  |  |  | # Similar to solana-gossip, you should see your validator in the list of cluster nodes
 | 
					
						
							| 
									
										
										
										
											2021-05-14 09:45:34 -07:00
										 |  |  | curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1, "method":"getClusterNodes"}' http://api.devnet.solana.com | 
					
						
							| 
									
										
										
										
											2019-08-16 17:02:19 -06:00
										 |  |  | # If your validator is properly voting, it should appear in the list of `current` vote accounts. If staked, `stake` should be > 0
 | 
					
						
							| 
									
										
										
										
											2021-05-14 09:45:34 -07:00
										 |  |  | curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1, "method":"getVoteAccounts"}' http://api.devnet.solana.com | 
					
						
							| 
									
										
										
										
											2019-08-08 11:42:17 -06:00
										 |  |  | # Returns the current leader schedule
 | 
					
						
							| 
									
										
										
										
											2021-05-14 09:45:34 -07:00
										 |  |  | curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1, "method":"getLeaderSchedule"}' http://api.devnet.solana.com | 
					
						
							| 
									
										
										
										
											2019-08-08 11:42:17 -06:00
										 |  |  | # Returns info about the current epoch. slotIndex should progress on subsequent calls.
 | 
					
						
							| 
									
										
										
										
											2021-05-14 09:45:34 -07:00
										 |  |  | curl -X POST -H "Content-Type: application/json" -d '{"jsonrpc":"2.0","id":1, "method":"getEpochInfo"}' http://api.devnet.solana.com | 
					
						
							| 
									
										
										
										
											2019-08-08 11:42:17 -06:00
										 |  |  | ``` |