跳转到主要内容
POST
getLookupTablesByAccount
curl --request POST \
  --url 'https://rpc-mainnet.solanatracker.io/?api_key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "getLookupTablesByAccount",
  "params": [
    {
      "account": "SomeAccountPubkey111111111111111111111111111",
      "owner": null,
      "limit": 100,
      "cursor": null
    }
  ]
}
'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "lookupTables": [
      {
        "pubkey": "LUTPubkey1111111111111111111111111111111",
        "authority": "9aoUCn5J4sxhvYERCVwVnakPQxyXTHQVXe86CUJYxY8p",
        "deactivationSlot": 18446744073709552000,
        "addressCount": 256,
        "addresses": [
          "SomeAccountPubkey111111111111111111111111111"
        ],
        "mints": [
          "MintPubkey111111111111111111111111111111111"
        ],
        "slot": 423867852,
        "addressIndex": 42,
        "matchedAccounts": [
          "SomeAccountPubkey111111111111111111111111111"
        ],
        "matchedAddressIndices": [
          42
        ],
        "estimatedBytesSaved": 31
      }
    ],
    "nextCursor": null,
    "hasMore": false,
    "count": 1
  }
}
⚡ 由 Solana Ridge DB 驱动查找包含指定账户的地址查找表。适用于构建引用 LUT 中已有账户的交易——响应包含地址索引和预估节省的字节数。可使用 owner 参数按 LUT 权限地址过滤。
此方法每次调用消耗 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>
默认值:getLookupTablesByAccount
必填

The name of the RPC method to invoke.

可用选项:
getLookupTablesByAccount
示例:

"getLookupTablesByAccount"

params
object[]
必填

Method parameters.

Required array length: 1 element

响应

Successful response.

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