跳转到主要内容
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
  }
}
⚡ 由 Solana Ridge DB 驱动查找包含列表中所有账户的地址查找表(交集模式),或使用 bestSet: true 获取针对交易大小优化的贪心最小 LUT 集合。交集模式 — 返回列表中每个账户都出现的 LUT。最佳集合模式 — 返回覆盖最多账户的最小 LUT 组合,响应包含 coveredAccountsuncoveredAccounts。可通过 maxLookupTables(默认 8)、candidateLimit(默认 5000)和 perAccountLimit(默认 500)调整。
此方法每次调用消耗 1 积分

授权

api_key
string
query
必填

请求体

application/json
jsonrpc
enum<string>
默认值:2.0
必填

The JSON-RPC protocol version.

可用选项:
2.0
示例:

"2.0"

id
string
默认值:1
必填

A unique identifier for the request.

示例:

"1"

method
enum<string>
默认值:getLookupTablesByAccounts
必填

The name of the RPC method to invoke.

可用选项:
getLookupTablesByAccounts
示例:

"getLookupTablesByAccounts"

params
object[]
必填

Method parameters.

Required array length: 1 element

响应

Successful response.

jsonrpc
enum<string>
可用选项:
2.0
id
string
result
object