Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add address lookup table usage #454

Closed
wants to merge 1 commit into from

Conversation

yihau
Copy link
Member

@yihau yihau commented Sep 23, 2022

basic usage for address lookup table.

@vercel
Copy link

vercel bot commented Sep 23, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
solana-cookbook ✅ Ready (Inspect) Visit Preview Sep 23, 2022 at 7:19PM (UTC)

AddressLookupTableProgram.createLookupTable({
authority: feePayer.publicKey,
payer: feePayer.publicKey,
recentSlot: await connection.getSlot(),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not quite sure at this part cuz sometimes I will get an error like
xxxx is not a recent slot

maybe get SlotHashs system var is the most stable way to avoid it 🤔

@yihau
Copy link
Member Author

yihau commented Sep 27, 2022

we have an excellent docs in our site solana-labs/solana#28060.

@yihau yihau closed this Sep 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant