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
}
}地址查找表
getLookupTablesByAccounts
查找包含所有指定地址的表,或通过 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 使用贪心选择策略。检查 coveredAccounts 和 uncoveredAccounts;结果不保证是数学意义上的最小集合。
请求配置和错误处理见 RPC 快速入门。计费见积分与限制。授权
请求体
application/json
The JSON-RPC protocol version.
可用选项:
2.0 示例:
"2.0"
A unique identifier for the request.
示例:
"1"
The name of the RPC method to invoke.
可用选项:
getLookupTablesByAccounts 示例:
"getLookupTablesByAccounts"
Method parameters.
Required array length:
1 elementShow child attributes
Show child attributes
此页面对您有帮助吗?