Skip to main content

based_try_find_program_address

Function based_try_find_program_address 

Source
pub fn based_try_find_program_address(
    seeds: &[&[u8]],
    program_id: &Address,
) -> Result<(Address, u8), ProgramError>
Expand description

Find a valid PDA by hashing seeds directly and checking curve validity.

This avoids the sol_try_find_program_address syscall and substantially reduces the per-attempt CU cost on SBF.