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
}
}地址查找表
getLookupTablesByAccounts RPC 方法
查找包含所有指定地址的表,或通过 bestSet 选择覆盖这些地址的表组合。查看 getLookupTablesByAccounts 的参数、响应字段和代码示例。
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
}
}此页面对您有帮助吗?