How To Use Address Lookup Tables in Solana

Problem Statement

Web3 Instruction Bindings

  • CreateLookupTable
  • FreezeLookupTable
  • ExtendLookupTable
  • DeactivateLookupTable
  • CloseLookupTable
export type AccountMeta = {
/** An account’s public key */
pubkey: PublicKey;
/** True if an instruction requires a transaction signature matching `pubkey` */
isSigner: boolean;
/** True if the `pubkey` can be loaded as a read-write account. */
isWritable: boolean;
};

Usage

  • Create a Transaction instance.
  • Use AddressLookupTableProgram.CreateLookupTable or other static functions to create instances of TransactionInstruction.
  • Use the Transaction.add method to add instructions to the transaction instance.
  • Set the feePayer property on the transaction instance.
  • Use the sendAndConfirmTransaction method to submit the transaction.

Credits

References

--

--

Antematter is a software development company specializing in Blockchain, DeFi & SaaS.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Antematter

Antematter is a software development company specializing in Blockchain, DeFi & SaaS.