Crate solana_sdk
source ·Re-exports
Modules
Account information.
useful extras for Account state
The definition of address lookup table accounts.
The latest BPF loader native program.
The original and now deprecated Solana BPF loader.
An upgradeable BPF loader native program.
Solana builtin helper macros
Defines traits for blocking (synchronous) and non-blocking (asynchronous)
communication with a Solana server as well a a trait that encompasses both.
Information about the network’s clock, ticks, slots, etc.
Debug-formatting of account data.
Converting custom error codes to enums.
Configuration for epochs and slots.
Methods for working with
Feature
accounts.Collection of all runtime features.
Calculation of transaction fees.
The
genesis_config
module is a library for generating the chain’s genesis config.The
hard_forks
module is used to maintain the list of slot boundaries for when a hard fork
should occur.A designated address for burning lamports.
configuration for network inflation
Types for directing the execution of Solana programs.
keyed_accountDeprecated
Defines the
LamportsError
type.Instructions for the non-upgradable BPF loader.
Instructions for the upgradable BPF loader.
Logging utilities for Rust-based Solana programs.
Sequences of
Instruction
s executed within a single transaction.Definitions for the native SOL token and its fractional lamports.
Durable transaction nonces.
Solana precompiled programs
Cross-program invocation.
The
ProgramError
type and related definitions.Basic low-level memory operations.
A C representation of Rust’s
Option
, used across the FFI
boundary for Solana program interfaces.The
Pack
serialization trait.Implementations of syscalls used when
solana-program
is built for non-BPF targets.A trait for sanitizing values and members of over the wire messages.
A vector of Solana SDK IDs
Instructions for the secp256k1 native program.
Public key recovery from secp256k1 ECDSA signatures.
Helpers for reading and writing bytes.
Compact serde-encoding of vectors with small length.
The
signature
module provides functionality for public, and private keys.A type to hold data for the
SlotHashes
sysvar.A type to hold data for the
SlotHistory
sysvar.A type to hold data for the
StakeHistory
sysvar.Instructions and constructors for the system program.
The
system_transaction
module provides functionality for creating system transactions.Access to special accounts with dynamically-updated data.
The
timing
module provides std::time utility functions.Atomically-committed sequences of instructions.
Successors of instruction_context_context::StackFrame, KeyedAccount and AccountInfo
Macros
Define the default global allocator.
Define the default global panic handler.
Convenience macro to declare a builtin
Same as
declare_id
except report that this id has been deprecatedSame as [
declare_sysvar_id
] except that it reports that this ID has been deprecated.Convenience macro to declare a static public key and functions to interact with it
Declares an ID that implements
SysvarId
.entrypointDeprecated
entrypoint_deprecatedDeprecated
Implements the
Sysvar::get
method for both BPF and host targets.infoDeprecated
Print a message to the log.
Print a message to the log.
program_stubsDeprecated
Convenience macro to define a static public key
A proc-macro which respans the tokens in its first argument (a
Path
)
to be resolved at the tokens of its second argument.
For internal use only.Convenience macro for
AddAssign
with saturating arithmetic.
Replace by std::num::Saturating
once stableConvenience macro for doing integer division where the operation’s safety
can be checked at compile-time.