Registry / crypto / solana-vote-api

solana-vote-api

JSON →
library0.20.5rscratesunverified

Provides the program API for Solana's vote program, including vote state and instruction types.

# Cargo.toml [dependencies] solana-vote-api = "0.20.5"
INSTALL
IMPORT
SIG · SOLANA-VOTE-API
S
solana-vote-api
cryptorustv0.20.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

VoteState
use solana_vote_api::vote_state::VoteState;

Initialize a default VoteState

use solana_vote_api::vote_state::VoteState; fn main() { let vote_state = VoteState::default(); println!("Vote state initialized"); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.20.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
14 hits · last 30 days
node
12
Amazon
1
Resources
solana-vote-api — cargo add solana-vote-api · libregistry