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
}
}Tablas de búsqueda de direcciones
getLookupTablesByAccounts
Busca tablas con todas las direcciones o selecciona un conjunto con bestSet.
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
}
}bestSet usa una selección voraz. Revisa coveredAccounts y uncoveredAccounts; no garantiza el conjunto mínimo matemático.
Configuración y errores: inicio rápido RPC. Facturación: créditos y límites.Autorizaciones
Cuerpo
application/json
The JSON-RPC protocol version.
Opciones disponibles:
2.0 Ejemplo:
"2.0"
A unique identifier for the request.
Ejemplo:
"1"
The name of the RPC method to invoke.
Opciones disponibles:
getLookupTablesByAccounts Ejemplo:
"getLookupTablesByAccounts"
Method parameters.
Required array length:
1 elementShow child attributes
Show child attributes
¿Esta página le ayudó?