findAddressLookupTable static method

ProgramAddress findAddressLookupTable(
  1. Pubkey authority,
  2. BigInt recentSlot
)

Derives a lookup table address from the authority and recentSlot.

Implementation

static ProgramAddress findAddressLookupTable(
  final Pubkey authority,
  final BigInt recentSlot,
) => Pubkey.findProgramAddress(
  [
    authority.toBytes(),
    recentSlot.toUint64Buffer(),
  ],
  programId,
);