Docs.rs
  • solana-program-2.3.0
    • solana-program 2.3.0
    • Permalink
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Homepage
    • Repository
    • crates.io
    • Source
    • Owners
    • anza-team
    • Dependencies
      • bincode ^1.3.3 normal
      • blake3 ^1.5.5 normal
      • borsh ^1.5.5 normal optional
      • borsh ^0.10.3 normal optional
      • bs58 ^0.5.1 normal
      • bytemuck ^1.21.0 normal
      • lazy_static ^1.5.0 normal
      • log ^0.4.25 normal
      • memoffset ^0.9 normal
      • num-derive ^0.4 normal
      • num-traits ^0.2.18 normal
      • serde ^1.0.217 normal
      • serde_bytes ^0.11.15 normal
      • serde_derive ^1.0.217 normal
      • solana-account-info ^2.2.1 normal
      • solana-address-lookup-table-interface ^2.2.2 normal
      • solana-atomic-u64 ^2.2.1 normal
      • solana-big-mod-exp ^2.2.1 normal
      • solana-bincode ^2.2.1 normal
      • solana-blake3-hasher ^2.2.1 normal
      • solana-borsh ^2.2.1 normal optional
      • solana-clock ^2.2.1 normal
      • solana-cpi ^2.2.1 normal
      • solana-decode-error ^2.2.1 normal
      • solana-epoch-rewards ^2.2.1 normal
      • solana-epoch-schedule ^2.2.1 normal
      • solana-feature-gate-interface ^2.2.1 normal
      • solana-fee-calculator ^2.2.1 normal
      • solana-frozen-abi ^2.2.1 normal optional
      • solana-frozen-abi-macro ^2.2.1 normal optional
      • solana-hash ^2.2.1 normal
      • solana-instruction ^2.3.0 normal
      • solana-instructions-sysvar ^2.2.1 normal
      • solana-keccak-hasher ^2.2.1 normal
      • solana-last-restart-slot ^2.2.1 normal
      • solana-loader-v2-interface ^2.2.1 normal
      • solana-loader-v3-interface ^5.0.0 normal
      • solana-loader-v4-interface ^2.2.1 normal
      • solana-message ^2.2.1 normal
      • solana-msg ^2.2.1 normal
      • solana-native-token ^2.2.1 normal
      • solana-nonce ^2.2.1 normal
      • solana-program-entrypoint ^2.2.1 normal
      • solana-program-error ^2.2.1 normal
      • solana-program-memory ^2.2.1 normal
      • solana-program-option ^2.2.1 normal
      • solana-program-pack ^2.2.1 normal
      • solana-pubkey ^2.2.1 normal
      • solana-rent ^2.2.1 normal
      • solana-sanitize ^2.2.1 normal
      • solana-sdk-ids ^2.2.1 normal
      • solana-sdk-macro ^2.2.1 normal
      • solana-secp256k1-recover ^2.2.1 normal
      • solana-serde-varint ^2.2.1 normal
      • solana-serialize-utils ^2.2.1 normal
      • solana-sha256-hasher ^2.2.1 normal
      • solana-short-vec ^2.2.1 normal
      • solana-slot-hashes ^2.2.1 normal
      • solana-slot-history ^2.2.1 normal
      • solana-stable-layout ^2.2.1 normal
      • solana-stake-interface ^1.2.1 normal
      • solana-system-interface ^1.0 normal
      • solana-sysvar ^2.2.1 normal
      • solana-sysvar-id ^2.2.1 normal
      • solana-vote-interface ^2.2.1 normal
      • thiserror ^2.0.11 normal
      • array-bytes =1.4.1 dev
      • assert_matches ^1.5.0 dev
      • itertools ^0.12.1 dev
      • serde_json ^1.0.139 dev
      • solana-pubkey ^2.2.1 dev
      • solana-sysvar ^2.2.1 dev
      • num-bigint ^0.4.6 normal
      • rand ^0.8.5 normal
      • solana-example-mocks ^2.2.1 normal
      • arbitrary ^1.4.1 dev
      • solana-logger ^2.2.1 dev
      • console_error_panic_hook ^0.1.7 normal
      • console_log ^0.2.2 normal
      • getrandom ^0.2.10 normal
      • wasm-bindgen ^0.2.100 normal
      • getrandom ^0.2.10 normal
      • solana-define-syscall ^2.2.1 normal
    • Versions
    • 55.71% of the crate is documented
  • Platform
    • wasm32-unknown-unknown
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

solana_program2.3.0

Module program_error

Module Items

  • Enums
  • Constants
  • Traits

In crate solana_program

solana_program

Module program_error

Source

Enums§

ProgramError
Reasons the program may fail

Constants§

ACCOUNT_ALREADY_INITIALIZED
ACCOUNT_BORROW_FAILED
ACCOUNT_DATA_TOO_SMALL
ACCOUNT_NOT_RENT_EXEMPT
ARITHMETIC_OVERFLOW
BORSH_IO_ERROR
BUILTIN_PROGRAMS_MUST_CONSUME_COMPUTE_UNITS
CUSTOM_ZERO
ILLEGAL_OWNER
IMMUTABLE
INCORRECT_AUTHORITY
INCORRECT_PROGRAM_ID
INSUFFICIENT_FUNDS
INVALID_ACCOUNT_DATA
INVALID_ACCOUNT_DATA_REALLOC
INVALID_ACCOUNT_OWNER
INVALID_ARGUMENT
INVALID_INSTRUCTION_DATA
INVALID_SEEDS
MAX_ACCOUNTS_DATA_ALLOCATIONS_EXCEEDED
MAX_INSTRUCTION_TRACE_LENGTH_EXCEEDED
MAX_SEED_LENGTH_EXCEEDED
MISSING_REQUIRED_SIGNATURES
NOT_ENOUGH_ACCOUNT_KEYS
UNINITIALIZED_ACCOUNT
UNSUPPORTED_SYSVAR

Traits§

PrintProgramErrorDeprecated