> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.galleon8.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.galleon8.com/_mcp/server.

# eth_getLogs

POST https://node-api-docs-proxy.galleon8.workers.dev
Content-Type: application/json

Returns an array of all logs matching the specified filter.

Reference: https://docs.galleon8.com/api-reference/node-api/ethereum/api-endpoints/standard-api/eth-get-logs

## Request

### Body (application/json)

This endpoint expects an object.

- `filter` (LogFilter, required) — Filter object used to match logs.

## Response

### 200

Logs matching the filter.

- `list of Log`

## Types

### LogFilter

Filter object for matching EVM logs.

- `fromBlock` (BlockNumberOrTag, optional) — Block number encoded as a quantity, or a named block tag.
- `toBlock` (BlockNumberOrTag, optional) — Block number encoded as a quantity, or a named block tag.
- `address` (LogFilterAddress, optional)
- `topics` (list of LogFilterTopicsItems, optional) — Topic filters by indexed event fields.
- `blockHash` (string, optional) — 32-byte block hash.

### Log

EVM event log object.

- `removed` (boolean, required) — True when the log was removed due to a chain reorganization.
- `address` (string, required) — 20-byte EVM address.
- `data` (string, required) — Hex-encoded byte data.
- `topics` (list of string, required)
- `logIndex` (string, optional, nullable) — Hex-encoded integer quantity.
- `transactionIndex` (string, optional, nullable) — Hex-encoded integer quantity.
- `transactionHash` (string, optional, nullable) — 32-byte transaction hash.
- `blockHash` (string, optional, nullable) — 32-byte block hash.
- `blockNumber` (string, optional, nullable) — Hex-encoded integer quantity.

### BlockNumberOrTag

Block number encoded as a quantity, or a named block tag.

### LogFilterAddress

### LogFilterTopicsItems

## Examples

**Request**

```json
[
  {
    "fromBlock": "0x10d4f",
    "toBlock": "latest",
    "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    "topics": [
      "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
    ]
  }
]
```

**Response**

```json
{
  "jsonrpc": "2.0",
  "id": "1",
  "result": [
    {
      "removed": false,
      "logIndex": "0x0",
      "transactionIndex": "0x0",
      "transactionHash": "0x4e3b9f0d2f6e2c7b8a9d0e1f2a3b4c5d6e7f8091a2b3c4d5e6f708192a3b4c5d",
      "blockHash": "0x9f1409b7d65c3d4d9e2df8b4c6f52f8f91a4e1b9a6fdb0f1aa8e6d43f63c1f55",
      "blockNumber": "0x10d4f",
      "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
      "data": "0x0000000000000000000000000000000000000000000000000000000005f5e100",
      "topics": [
        "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",
        "0x000000000000000000000000742d35cc6634c0532925a3b844bc454e4438f44e"
      ]
    }
  ]
}
```

**SDK Code**

```python
import requests

url = "https://node-api-docs-proxy.galleon8.workers.dev/"

payload = [
    {
        "fromBlock": "0x10d4f",
        "toBlock": "latest",
        "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
        "topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]
    }
]
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://node-api-docs-proxy.galleon8.workers.dev/';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '[{"fromBlock":"0x10d4f","toBlock":"latest","address":"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]}]'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://node-api-docs-proxy.galleon8.workers.dev/"

	payload := strings.NewReader("[\n  {\n    \"fromBlock\": \"0x10d4f\",\n    \"toBlock\": \"latest\",\n    \"address\": \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n    \"topics\": [\n      \"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\"\n    ]\n  }\n]")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://node-api-docs-proxy.galleon8.workers.dev/")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "[\n  {\n    \"fromBlock\": \"0x10d4f\",\n    \"toBlock\": \"latest\",\n    \"address\": \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n    \"topics\": [\n      \"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\"\n    ]\n  }\n]"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://node-api-docs-proxy.galleon8.workers.dev/")
  .header("Content-Type", "application/json")
  .body("[\n  {\n    \"fromBlock\": \"0x10d4f\",\n    \"toBlock\": \"latest\",\n    \"address\": \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n    \"topics\": [\n      \"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\"\n    ]\n  }\n]")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://node-api-docs-proxy.galleon8.workers.dev/', [
  'body' => '[
  {
    "fromBlock": "0x10d4f",
    "toBlock": "latest",
    "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    "topics": [
      "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
    ]
  }
]',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://node-api-docs-proxy.galleon8.workers.dev/");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "[\n  {\n    \"fromBlock\": \"0x10d4f\",\n    \"toBlock\": \"latest\",\n    \"address\": \"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48\",\n    \"topics\": [\n      \"0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef\"\n    ]\n  }\n]", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = [
  [
    "fromBlock": "0x10d4f",
    "toBlock": "latest",
    "address": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    "topics": ["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"]
  ]
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://node-api-docs-proxy.galleon8.workers.dev/")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```