- LUTs owned by a wallet authority.
- LUTs that contain one account or token mint.
- LUTs that contain every account in a set.
- A best-effort LUT set for reducing transaction size.
Each Lookup Table RPC method costs 1 credit per call.
When to use these methods
Use the LUT methods when you are building, simulating, or optimizing Solana transactions and need to know whether accounts are already available through lookup tables.RPC endpoint
All examples use JSON-RPC 2.0 over HTTP:Find LUTs by authority
UsegetLookupTablesByAuthority to inspect lookup tables owned by a wallet authority. This is helpful for wallets, bots, and infrastructure that maintain their own LUTs.
deactivationSlot uses 18446744073709551615 to represent an active LUT.
Find LUTs containing one account
UsegetLookupTablesByAccount when you already know an account that will appear in a transaction and want to find LUTs that contain it.
Find LUTs containing a mint
getLookupTablesByMint is the same lookup pattern as getLookupTablesByAccount, but the parameter name is mint.
Find LUTs for a full account set
getLookupTablesByAccounts has two modes: intersection mode and best-set mode.
Intersection mode
Intersection mode returns LUTs that contain every account you provide. Use it when you need one table that covers the full set.Best-set mode
Best-set mode is the fastest way to answer: “Which LUTs should I attach to save the most transaction space?” SetbestSet: true and pass the full account list your transaction needs:
Best-set tuning
For most applications, keep the defaults and only tune after measuring transaction build time and response size.
Example: choose LUTs before building a transaction
The typical flow is:- Collect the accounts your transaction will reference.
- Call
getLookupTablesByAccountswithbestSet: true. - Attach returned LUTs to your transaction builder.
- Keep
uncoveredAccountsas normal account keys.
Practical tips
- Use
bestSet: truefor transaction-size optimization, not for exhaustive discovery. - Use
ownerwhen you only trust or care about LUTs controlled by a specific authority. - Use
mintsOnlyon authority lookups when you are building token-oriented UX and do not need every stored address. - Treat
estimatedBytesSavedas a planning signal, then still simulate the final transaction. - Keep pagination logic for authority, account, and mint searches. Popular accounts can appear in many LUTs.
getLookupTablesByAccounts
Find LUTs for multiple accounts or get a best-fit LUT set.
Credits and Rate Limits
Review credit costs and plan limits for RPC calls.