Skip to main content
POST
curl --request POST \
  --url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getLookupTablesByAccounts",
  "params": [
    {
      "accounts": [
        "AccountApubkey11111111111111111111111111111",
        "AccountBpubkey22222222222222222222222222222"
      ],
      "owner": null,
      "limit": 100,
      "cursor": null
    }
  ]
}
'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "lookupTables": [
      {
        "pubkey": "LUT1pubkey1111111111111111111111111111111111",
        "authority": "9aoUCn5J4sxhvYERCVwVnakPQxyXTHQVXe86CUJYxY8p",
        "deactivationSlot": 18446744073709552000,
        "addressCount": 200,
        "addresses": [
          "AccountApubkey11111111111111111111111111111",
          "AccountBpubkey22222222222222222222222222222"
        ],
        "mints": [],
        "slot": 423867852,
        "matchedAccounts": [
          "AccountApubkey11111111111111111111111111111",
          "AccountBpubkey22222222222222222222222222222"
        ],
        "matchedAddressIndices": [
          3,
          17
        ],
        "estimatedBytesSaved": 62
      }
    ],
    "coveredAccounts": [
      "AccountApubkey11111111111111111111111111111",
      "AccountBpubkey22222222222222222222222222222"
    ],
    "uncoveredAccounts": [
      "AccountCpubkey33333333333333333333333333333"
    ],
    "estimatedBytesSaved": 62,
    "count": 1
  }
}
⚡ Powered by Solana Ridge DBFind address lookup tables containing all listed accounts (intersection mode), or use bestSet: true to get a greedy minimal LUT set optimized for transaction size reduction.Intersection mode — returns LUTs where every account in your list appears.Best set mode — returns the smallest combination of LUTs that covers the most accounts, with coveredAccounts and uncoveredAccounts in the response. Tune with maxLookupTables (default 8), candidateLimit (default 5000), and perAccountLimit (default 500).
This method costs 1 credit per call.

Authorizations

api_key
string
query
required

Body

application/json
jsonrpc
enum<string>
default:2.0
required

The JSON-RPC protocol version.

Available options:
2.0
Example:

"2.0"

id
string
default:1
required

A unique identifier for the request.

Example:

"1"

method
enum<string>
default:getLookupTablesByAccounts
required

The name of the RPC method to invoke.

Available options:
getLookupTablesByAccounts
Example:

"getLookupTablesByAccounts"

params
object[]
required

Method parameters.

Required array length: 1 element

Response

Successful response.

jsonrpc
enum<string>
Available options:
2.0
id
string
result
object