> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_getFilterLogs | Robinhood

> Robinhood Chain API method that returns an array of all logs matching the filter with the given ID. eth_getFilterLogs on Robinhood Chain via Chainstack.

Robinhood Chain API method that returns an array of all logs matching the filter with the given ID. Unlike `eth_getFilterChanges`, this returns all matching logs, not just new ones since the last poll.

## Parameters

* `filterId` — the filter ID returned from `eth_newFilter`

## Response

* `result` — array of log objects matching the filter:
  * `address` — contract address that emitted the log
  * `topics` — array of indexed log parameters
  * `data` — non-indexed log parameters
  * `blockNumber` — block number containing the log
  * `blockHash` — hash of the block
  * `transactionHash` — hash of the transaction that emitted the log
  * `transactionIndex` — index of the transaction in the block
  * `logIndex` — position of the log in the block
  * `removed` — `true` if the log was removed due to a chain reorganization

## `eth_getFilterLogs` code examples

<CodeGroup>
  ```javascript ethers.js theme={"system"}
  const { JsonRpcProvider } = require("ethers");

  const provider = new JsonRpcProvider("CHAINSTACK_NODE_URL");

  async function call() {
    const result = await provider.send("eth_getFilterLogs", ["0x1"]);
    console.log(result);
  }

  call();
  ```

  ```python web3.py theme={"system"}
  from web3 import Web3

  node_url = "CHAINSTACK_NODE_URL"
  web3 = Web3(Web3.HTTPProvider(node_url))

  result = web3.provider.make_request("eth_getFilterLogs", ["0x1"])
  print(result)
  ```

  ```shell cURL theme={"system"}
  curl -X POST "CHAINSTACK_NODE_URL" \
    -H "Content-Type: application/json" \
    --data '{
      "jsonrpc": "2.0",
      "method": "eth_getFilterLogs",
      "params": ["0x1"],
      "id": 1
    }'
  ```
</CodeGroup>


## OpenAPI

````yaml openapi/robinhood_node_api/filter_handling/eth_getFilterLogs.json POST /
openapi: 3.0.0
info:
  title: Chainstack Node API
  version: 1.0.0
  description: This is an API for interacting with a Chainstack node.
servers:
  - url: >-
      https://robinhood-mainnet.core.chainstack.com/23cf4479b299ab4835d76c05c468ca6e
security: []
paths:
  /:
    post:
      tags:
        - Logs and events
      summary: eth_getFilterLogs
      operationId: eth_getFilterLogs
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getFilterLogs
                params:
                  type: array
                  items: {}
                  default:
                    - '0x1'
                  description: Filter ID
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: Array of log objects
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: array
                    items:
                      type: object
                    description: Array of log objects matching the filter

````