ProgramDerivedAddress.find constructor

ProgramDerivedAddress.find({
  1. required List<List<int>> seedBytes,
  2. required SolAddress programId,
})

Implementation

factory ProgramDerivedAddress.find(
    {required List<List<int>> seedBytes, required SolAddress programId}) {
  final derive =
      SolanaUtils.findProgramAddress(seeds: seedBytes, programId: programId);
  return ProgramDerivedAddress(address: derive.item1, bump: derive.item2);
}