Skip to content

Automatically looks for delinquent stake accounts and de-activates if possible

Notifications You must be signed in to change notification settings

glitchful-dev/solana-deactivate-delinquent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,177 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solana deactivate delinquent

Stake of Solana validators inactivate for multiple epochs can be de-activated in a permissionless way. This repo is a simple automation of this process.

Analytics

The following query can be run on flipside to check how the de-activations done by this code are going:

select
  tx_id as "Transaction",
  block_timestamp as "Block timestamp",
  post_balances[account.index] / 1e9 as "Unstaked balance",
  instruction.value:parsed.info.voteAccount as "Delinquent validator",
  account.value:pubkey as "Stake account"
from
  solana.core.fact_transactions txs,
  lateral flatten(input => txs.instructions) as instruction,
  lateral flatten(input => txs.account_keys) as account
where
  date_trunc('day', block_timestamp) between '2024-01-01' and '2024-01-31'
  and array_contains('ByeByeS4EhEhAPmqE2nULzwzx9yK1Ee47We3TCQ5Bwys'::variant, signers)
  and succeeded = TRUE
  and account.value:pubkey = instruction.value:parsed.info.stakeAccount
order by
  date_trunc('day', block_timestamp) desc
limit 10000

About

Automatically looks for delinquent stake accounts and de-activates if possible

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •