Questions tagged [lookup-tables]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
11 views

LookUpTables in Rust

In typescript I can fetch a lookup table account as so : const lookupTableAccount = ( await connection.getAddressLookupTable(lookupTableAddress) ).value; then I can use it in my V0 message const ...
qubitz's user avatar
  • 153
0 votes
0 answers
35 views

Using Look up tables with Raydium swap

I'm currently trying to write a multiple swap transaction (10 swaps) using lookup tables using Liquidity.makeSwapInstructionSimple. When writing standard v0 transactions, you simply pass the LUT to ...
hhoogg's user avatar
  • 1
1 vote
1 answer
51 views

What is the maximum number of addresses I can put into a LUT/ALT?

Address of Lookup Tables allow us to store account addresses on-chain for "compressed" access inside transactions, but is there a limit to how many addresses can be stored in one?
Ahri's user avatar
  • 3,299
1 vote
1 answer
33 views

- Design Pattern (Discussion) Address Lookuptables to compress on chain storage of `PubKeys`

Reading up on ALT's, A certain usecase came to mind, where in a program if for some arbitary reason i want to store a list of pubkeys(32bytes) say in the 10,000 on chain, wdnt using ALT allow me to ...
Nabeel Naveed's user avatar
1 vote
1 answer
25 views

How to refer address look up tables in a transaction's instruction

I'm confused about look up tables. Suppose I want to call a function from a program which requires to pass in a list of transactions. Usually I would pass in a list of accounts as my keys: [{pubkey:......
qubitz's user avatar
  • 153
3 votes
2 answers
143 views

Creating Address Lookup Table in localnet fails with "invalid instruction data" error

As the title says, I'm unable to create an Address Lookup Table in localnet. I'm trying to create it in an anchor test and using the following code (which works in devnet/mainnet): const slot = await ...
meditatingsloth's user avatar
1 vote
2 answers
212 views

Transaction simulation failed: Error processing Instruction 0: Invalid account owner

I'm trying to create and extend an address lookup table. The program successfully creates the lookup table but when it comes to extending the table, I get this error: SendTransactionError: failed to ...
brknarsy's user avatar
0 votes
0 answers
42 views

Versioned txes and LUTs on localnet

Attempting to build a LUT fails with 33 is not a recent slot when running on localnet: const slot = await provider.connection.getSlot(); const [createLookupIx, lookupTableKey] = ...
Whiteseal's user avatar
  • 2,893
1 vote
1 answer
139 views

How to get Address Lookup Tables owned by given Pubkey via filtering the LookupTableProgramAccounts?

I want to retrieve the LookupTables of a certain Pubkey by filtering the LookupTableProgram accounts. Which filter do I need to set to filter for a given authority? let accounts = rpc_client ....
bamboofighter's user avatar
3 votes
1 answer
443 views

What does `Failed to get account keys because address table lookups were not resolved` mean? [closed]

I have a transaction that works once building it using VersionedTransaction as well as legacy one. const messageV0 = new TransactionMessage({ payerKey: payer, recentBlockhash: blockhash, ...
guru-del-von's user avatar
2 votes
2 answers
543 views

Can we create Address Look Up Tables from a Solana on-chain program?

We've been stumped for a few days regarding the creation of LUTs from within a program (Anchor based). Ideally we'd like to do this inside the program if possible to keep things cleaner. Dependeices ...
Tony Boyle's user avatar
6 votes
1 answer
329 views

Versioned txs: 157405384 is not a recent slot

Following the example in the docs here. When I try to send a tx that would create a LUT I get: logs: [ 'Program AddressLookupTab1e1111111111111111111111111 invoke [1]', '157405384 is not a ...
ilmoi's user avatar
  • 211