• Wrapper function for Solana web3 getProgramAccounts with slightly better call interface

    Parameters

    • connection: Connection

      Solana web3 connection object.

    • wallet: PublicKey

      PublicKey to compare against.

    • offset: number

      Offset of bits of the PublicKey in the account binary.

    • programId: PublicKey

      Solana program ID.

    Returns Promise<Account[]>

    • Array of resulting accounts.