solana_program

Module syscalls

Source
Expand description

Declarations of Solana program syscalls.

This module is mostly empty when not compiling for BPF targets.

Constantsยง

MAX_CPI_ACCOUNT_INFOS
Maximum number of account info structs that can be used in a single CPI invocation. A limit on account info structs is effectively the same as limiting the number of unique accounts. 128 was chosen to match the max number of locked accounts per transaction (MAX_TX_ACCOUNT_LOCKS).
MAX_CPI_INSTRUCTION_ACCOUNTS
Maximum CPI instruction accounts. 255 was chosen to ensure that instruction accounts are always within the maximum instruction account limit for SBF program instructions.
MAX_CPI_INSTRUCTION_DATA_LEN
Maximum CPI instruction data size. 10 KiB was chosen to ensure that CPI instructions are not more limited than transaction instructions if the size of transactions is doubled in the future.