BPF.WTF
An archive of Richard Patel's essential reference material on Solana BPF assembly. These articles remain some of the most valuable low-level documentation for Solana developers working with the virtual machine.
0x03: SBF Instruction Set
Solana BPF SeriesA comprehensive reference of all Solana Bytecode Format (SBF) opcodes, including load/store operations, 32-bit and 64-bit ALU instructions, endian conversions, jump/branch instructions, and the call class. Covers rbpf, Capstone, and LLVM disassembly flavors.
0x04: Sealevel Syscalls
Solana BPF SeriesComplete documentation of all syscalls available in Solana's Sealevel VM, including logging, cryptographic hashes (SHA-256, Keccak-256, BLAKE3), elliptic curve operations, PDA derivation, cross-program invocation (CPI), memory operations, and sysvar access. Includes C function signatures and calling conventions.
About this archive
The original bpf.wtf domain lapsed and was at risk of being repurposed. Blueshift acquired the domain to preserve these valuable resources for the Solana community. The content is republished here with Richard Patel's permission.
Note that the technical content may be outdated or conflict with current on-chain behavior, as it was originally written in mid-2022. As such, Blueshift and other open source contributors will periodically update and maintain this content to ensure it remains accurate. You can see what has been updated from our open source Github repository here.