logindex namespace
logIndex_blockNumbers
Retrieves log index block number for the given filter.
- Parameters
- Request
- Response
filter: objectaddress: array of string (address)fromBlock: string (block number or hash or either ofearliest,finalized,latest,pending, orsafe)toBlock: string (block number or hash or either ofearliest,finalized,latest,pending, orsafe)topics: array of array of string (hash)useIndex: boolean
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "logIndex_blockNumbers",
"params": [filter]
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: array of string (hex integer)
logIndex_status
Retrieves log index status.
- Request
- Response
curl localhost:8545 \
-X POST \
-H "Content-Type: application/json" \
--data '{
"jsonrpc": "2.0",
"id": 0,
"method": "logIndex_status",
"params": []
}'
{
"jsonrpc": "2.0",
"id": 0,
"result": result
}
result: object
current: objectfromBlock: string (hex integer)toBlock: string (hex integer)
dbSize: stringisRunning: booleanlastError: stringlastUpdate: string (date-time)target: objectfromBlock: string (hex integer)toBlock: string (hex integer)