Address Lookup Tables
Address Lookup Table queries through getProgramAccounts and getProgramAccountsV2, answered from an in-memory index, with plan rates, account layout and filters.
Address Lookup Tables are found and read in bulk with getProgramAccounts or getProgramAccountsV2 on the Address Lookup Table program.
Access
Queries go through getProgramAccounts or getProgramAccountsV2 with AddressLookupTab1e1111111111111111111111111 as the first parameter. The endpoint and the API key are the same as every other Solana RPC call. There is no separate method, hostname or add-on.
| Plan | Availability |
|---|---|
| Blade Runner, Nexus | Served |
| Free, Operator | HTTP 403, code -32600, message getProgramAccounts requires higher tier. The getProgramAccountsV2 message names getProgramAccountsV2 |
Answers come from the in-memory account index, not a disk scan, while the index is current; see Result size and freshness. No filter is required.
Rate limits
| Plan | Calls per second per API key |
|---|---|
| Blade Runner | 25/s |
| Nexus | 75/s |
| Free, Operator | None |
The budget is shared per API key. Address Lookup Table queries count together with every other getProgramAccounts and getProgramAccountsV2 call on that key, whichever program they address. With a budget of 75 calls per second, a key sending 50 calls per second against other programs has 25 calls per second left for table queries.
There is no cap on open requests; only the rate is counted. The plan's total requests-per-second limit also applies. See Plans & Limits.
Over the rate, the response is HTTP 429 with code -32005 and the message Rate limit exceeded (gpa: <limit>/sec), with the plan's limit: 25 for the Blade Runner plan, 75 for the Nexus plan. It carries no Retry-After header and no rate-limit headers. The window is one whole second. See Gateway errors.
One known table
A table whose address is already known is read with getAccountInfo or getMultipleAccounts with encoding: "jsonParsed". That is a plain account read: it is not an index query and does not count against the getProgramAccounts budget.
getProgramAccounts on the Address Lookup Table program is for finding tables by content (authority, size, addresses, status) or for walking all tables.
Account layout
| Offset | Size | Field | Notes |
|---|---|---|---|
| 0 | 4 | type | u32 little-endian; 1 = lookup table |
| 4 | 8 | deactivationSlot | u64 little-endian; 18446744073709551615 (all bytes 0xFF) while the table is active |
| 12 | 8 | lastExtendedSlot | u64 little-endian |
| 20 | 1 | lastExtendedSlotStartIndex | u8 |
| 21 | 1 | authority present | 1 = has an authority, 0 = frozen |
| 22 | 32 | authority | public key |
| 54 | 2 | padding | |
| 56 | 32 × N | addresses | N stored addresses, at most 256 |
Account size is 56 + 32 × N bytes. A table with 4 addresses is 184 bytes.
Filters
| Goal | Filter |
|---|---|
| Tables controlled by an authority | memcmp at offset 22, bytes = the authority public key (base58) |
| Tables with an authority set (not frozen) | memcmp at offset 21, bytes: "2" (base58 of the single byte 0x01) |
| Active tables only | memcmp at offset 4, bytes: "jpXCZedGfVQ" (base58 of eight 0xFF bytes) |
| Tables holding exactly N addresses | dataSize: 56 + 32 × N |
| Tables whose address at index i is X | memcmp at offset 56 + 32 × i, bytes = X |
memcmp compares at one fixed offset, so a table that holds an address at an unknown position matches only a filter for that position. There is no "contains" filter.
Filters combine with AND. memcmp bytes may be base58 (default) or base64 via memcmp.encoding.
Examples
getProgramAccounts on the tables controlled by one authority, with no account data returned:
curl "https://rpc-newyork.constant-k.com/?api-key=YOUR_API_KEY" \
-X POST -H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getProgramAccounts",
"params": [
"AddressLookupTab1e1111111111111111111111111",
{
"filters": [
{ "memcmp": { "offset": 22, "bytes": "DStdNqtygUnfNwkHNrEhsPWwN7hqXrYrMJ8JMkLvidjT" } }
],
"dataSlice": { "offset": 0, "length": 0 }
}
]
}'dataSlice with length: 0 returns no data, so the answer carries only the table addresses and account metadata. The response is trimmed to one account:
[
{
"account": {
"data": ["", "base64"],
"executable": false,
"lamports": 2171520,
"owner": "AddressLookupTab1e1111111111111111111111111",
"rentEpoch": 18446744073709551615,
"space": 184
},
"pubkey": "1AjuJovi8byYxtUPyFna86jaRipDgVeX4TCXbkWNZxg"
}
]getProgramAccountsV2 returns one page of tables with the layout decoded:
curl "https://rpc-newyork.constant-k.com/?api-key=YOUR_API_KEY" \
-X POST -H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "getProgramAccountsV2",
"params": [
"AddressLookupTab1e1111111111111111111111111",
{
"encoding": "jsonParsed",
"filters": [{ "dataSize": 184 }],
"limit": 1,
"withContext": true
}
]
}'{
"jsonrpc": "2.0",
"id": 1,
"result": {
"context": { "slot": 457692691 },
"value": {
"accounts": [
{
"account": {
"data": {
"parsed": {
"info": {
"addresses": [
"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"SysvarRent111111111111111111111111111111111",
"Ce6TQqeHC9p8KetsN6JsjHK7UTZk7nasjjnr7XxXp9F1",
"6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P"
],
"authority": "DStdNqtygUnfNwkHNrEhsPWwN7hqXrYrMJ8JMkLvidjT",
"deactivationSlot": "18446744073709551615",
"lastExtendedSlot": "306248204",
"lastExtendedSlotStartIndex": 0
},
"type": "lookupTable"
},
"program": "address-lookup-table",
"space": 184
},
"executable": false,
"lamports": 2171520,
"owner": "AddressLookupTab1e1111111111111111111111111",
"rentEpoch": 18446744073709551615,
"space": 184
},
"pubkey": "1AjuJovi8byYxtUPyFna86jaRipDgVeX4TCXbkWNZxg"
}
],
"paginationKey": "1AjuJovi8byYxtUPyFna86jaRipDgVeX4TCXbkWNZxg"
}
}
}paginationKey is the cursor for the next page. It is passed back as paginationKey on the next call, and is null on the last page.
Parameters
| Parameter | Values | Notes |
|---|---|---|
encoding | base64 (default), base64+zstd, base58, jsonParsed | base58 covers data up to 128 bytes after dataSlice; larger data returns -32602 with base58 encoding is only supported for data under 129 bytes; use base64 |
dataSlice | { offset, length } | length: 0 returns no data, only addresses and account metadata |
filters | dataSize, memcmp | Optional; every filter must match |
withContext | true, false | Adds context.slot |
minContextSlot | slot number | If the index has not reached it, -32016 with Minimum context slot has not been reached |
commitment | any level | Accepted, no effect. See the note below |
limit | 1 to 10,000, default 1,000 | getProgramAccountsV2 only. Outside the range: -32602 with limit must be between 1 and 10000 |
paginationKey | account address | getProgramAccountsV2 only; the cursor from the previous page |
changedSinceSlot | slot number | getProgramAccountsV2 only; returns only tables last written at or after that slot (inclusive), for incremental sync |
commitment is accepted and ignored
Answers are at confirmed commitment. A finalized request gets confirmed data.
Result size and freshness
getProgramAccountsV2 pages through any size, so walking every table uses it with limit up to 10,000 and paginationKey. Results are narrowed with filters and dataSlice.
ALT queries are answered from the in-memory account index. While the index is behind the chain, a disk scan answers instead. Every answer carries an X-CK-Source header that names the path:
| Limit | index: in-memory account index | disk-scan: disk scan |
|---|---|---|
| Answers | The thirteen indexed programs | Every other program, and an indexed program while its index is behind the chain |
| Size limit | 1 GB of matched account data, then -32012 | 256 MB of matched account data, then -32012 |
| Filter | Not required | At least one selective filter (memcmp or dataSize) |
| Calls at once | No cap, only the rate limit | 2 per API key, 6 in total, then -32005 (concurrency limit reached) |
changedSinceSlot (V2) | Supported | Not supported (-32602); -32005 with data.numSlotsBehind while the index is behind |
getProgramAccountsV2 paging | Pages through any size | One scan, then pages served for 90 s |
| Typical time | 0.1 to 0.4 s | Seconds |
The in-memory account index is not related to historical lookups. The per-key rate limit (Blade Runner plan 25/s, Nexus plan 75/s) applies to both paths.
Errors
| HTTP | Code | Message | Cause |
|---|---|---|---|
403 | -32600 | getProgramAccounts requires higher tier | Free or Operator plan. The getProgramAccountsV2 message names getProgramAccountsV2 |
429 | -32005 | Rate limit exceeded (gpa: 25/sec), Rate limit exceeded (gpa: 75/sec) | Over the plan's calls per second |
200 | -32602 | base58 encoding is only supported for data under 129 bytes; use base64, limit must be between 1 and 10000 | An invalid parameter |
200 | -32012 | scan aborted: The accumulated scan results exceeded the limit | Matched account data over 1 GB (index) or 256 MB (disk-scan). getProgramAccounts only |
200 | -32005 | getProgramAccounts concurrency limit reached (per-key) or (global); retry shortly | disk-scan only: more than 2 calls at once per API key, or 6 in total |
200 | -32016 | Minimum context slot has not been reached | minContextSlot is above the slot the index has reached |
200 | -32005 | Error data carries numSlotsBehind | The index is behind the chain. Only with changedSinceSlot |
See Errors for every code and its fix.