I wanted to use this sysvar to get a recent block hash, but I didn't know whether the first or the last entry contains the most recent block hash. By calling it for mainnet, printing the results, and comparing that to the recent blocks on solanabeach.io/blocks, I discovered that the entries are ordered from most recent to least recent. Document this to save future readers the trouble. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md | ||
Xargo.toml | ||
build.rs |
README.md
Solana Program
Use the Solana Program Crate to write on-chain programs in Rust. If writing client-side applications, use the Solana SDK Crate instead.
More information about Solana is available in the Solana documentation.
Helloworld and the Solana Program Library provide examples of how to use this crate.
Still have questions? Ask us on Discord