Using Raydium locally - Address Lookup Table fails with "Transaction address table lookup uses an invalid index"
Using Raydium locally - Address Lookup Table fails with "Transaction address table lookup uses an invalid index"
Loading saved threads...
ChrisK · External communityPost link
External question — Solana Stack Exchange
Author: ChrisK
Original post: https://solana.stackexchange.com/questions/9852
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
I'm trying to use the Raydium SDK locally with solana-test-validator but transactions involving the LOOKUP_CACHE defined in the SDK fail with the message
SendTransactionError: failed to send transaction: invalid transaction: Transaction address table lookup uses an invalid index
I downloaded the Raydium Program (and other referenced programs from the Raydium SDK), and the referenced Address Lookup Table Account (2immgwYNHBbyVQKVGCEkgWpi53bLwWNRMB5G2nbgYV17) from mainnet and include all of them when launching the validator.
Generally, is it possible to run the Raydium Program locally and is it possible to fix the issue with the Lookup Address Table?
Quote
Report
sowntr · External communityPost link
External answer — Solana Stack Exchange
Author: sowntr
Original post: https://solana.stackexchange.com/a/18304
License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/
Adaptation: HTML converted to plain text; contact email addresses removed.
try to launch the local validator with warp-slot param >= lastExtendedSlot of the LUTs slot on the mainnet. For example:
COPYFILE_DISABLE=1 solana-test-validator
-w 209620855
--clone-upgradeable-program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s
--clone-upgradeable-program srmqPvymJeFKQ4zGQed1GFppgkRHL9kaELCbyksJtPX
--clone-upgradeable-program 675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8
--clone-upgradeable-program CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C
--clone 7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5
--clone 2immgwYNHBbyVQKVGCEkgWpi53bLwWNRMB5G2nbgYV17
--url mainnet-beta --reset
the raydium sdk LUTs on mainnet
{
lastExtendedSlot: 209620855,
lastExtendedSlotStartIndex: 0,
deactivationSlot: 18446744073709551615n,
isActive: true,
address: '2immgwYNHBbyVQKVGCEkgWpi53bLwWNRMB5G2nbgYV17',
addresses: '11111111111111111111111111111111
}
Quote
Report
Post Reply
Quoted from Forex.com.bd-Editorial External answer — Solana Stack Exchange Author: sowntr Source score (net votes, not local likes): 0 Original post: https://solana.stackexchange.com/a/18304 License: CC BY-SA 4.0 — https://creativecommons.org/licenses/by-sa/4.0/ Adaptation: HTML converted to plain text; contact email addresses removed. try to launch the local validator with warp-slot param >= lastExtendedSlot of the LUTs slot on the mainnet. For example: COPYFILE_DISABLE=1 solana-test-validator -w 209620855 --clone-upgradeable-program metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s --clone-upgradeable-program srmqPvymJeFKQ4zGQed1GFppgkRHL9kaELCbyksJtPX --clone-upgradeable-program 675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8 --clone-upgradeable-program CPMMoo8L3F4NbTegBCKVNunggL7H1ZpdTHKxQB5qKP1C --clone 7YttLkHDoNj9wyDur5pM1ejNaAvT9X4eqaYcHQqtj2G5 --clone 2immgwYNHBbyVQKVGCEkgWpi53bLwWNRMB5G2nbgYV17 --url mainnet-beta --reset the raydium sdk LUTs on mainnet { lastExtendedSlot: 209620855, lastExtendedSlotStartIndex: 0, deactivationSlot: 18446744073709551615n, isActive: true, address: '2immgwYNHBbyVQKVGCEkgWpi53bLwWNRMB5G2nbgYV17', addresses: '11111111111111111111111111111111 }
Checking account access…