Class VoteProgram

Factory class for transactions to interact with the Vote program


  • VoteProgram


programId: PublicKey = ...

Public key that identifies the Vote program

space: number = 3731

Max space of a Vote account

This is generated from the solana-vote-program VoteState struct as VoteState::size_of():

KEEP IN SYNC WITH VoteState::size_of() in


  • Generate a transaction to withdraw safely from a Vote account.

    This function was created as a safeguard for vote accounts running validators, safeWithdraw checks that the withdraw amount will not exceed the specified balance while leaving enough left to cover rent. If you wish to close the vote account by withdrawing the full amount, call the withdraw method directly.


    Returns Transaction

Generated using TypeDoc