1

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?

2
  • Did you manage to find what was causing the issue?
    – arseneoaa
    Commented Jun 10 at 16:04
  • Unfortunately not :(
    – ChrisK
    Commented Jun 24 at 11:00

1 Answer 1

0

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 }

New contributor
sowntr is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.