curl --request POST \
--url 'https://rpc-data.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
}
}Address Lookup Tables
getLookupTablesByAccounts
Find tables containing all requested addresses or select a covering set with bestSet.
POST
/
curl --request POST \
--url 'https://rpc-data.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
}
}bestSet uses a greedy selection strategy. Inspect coveredAccounts and uncoveredAccounts; the result is not a guarantee of the mathematically smallest set.
Request setup and error handling: RPC quickstart. Billing: credits and limits.Authorizations
Body
application/json
The JSON-RPC protocol version.
Available options:
2.0 Example:
"2.0"
A unique identifier for the request.
Example:
"1"
The name of the RPC method to invoke.
Available options:
getLookupTablesByAccounts Example:
"getLookupTablesByAccounts"
Method parameters.
Required array length:
1 elementShow child attributes
Show child attributes
Was this page helpful?