Expand description
Program overrides: swap a program’s binary for your own ELF in a running session.
modify_program_via_rpc reads the deploy slot, the existing upgrade authority and the
rent-exempt minimum from the session’s RPC endpoint, then returns an account override to send
in a Continue. It retries failed RPC calls up to 10 times with jittered
exponential backoff, at most 10 s apart. build_program_injection builds the same
override offline when you already know those values.
Enums§
- Program
ModError - Error returned by
modify_program_via_rpc.
Functions§
- build_
program_ injection - Build a BPF Loader Upgradeable
ProgramDataaccount override from raw ELF bytes. - build_
programdata_ bytes - Serialize ELF bytes into a
ProgramDataaccount data blob. - modify_
program_ via_ rpc - Build a program-data account override, fetching the deploy slot and rent exemption from the given RPC client.