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

# Snark Workers

There is a dedicated collection for snark workers to easily extract the data only for purchased SNARKs. This is the same data that is embedded in the `blocks` collection and you may access the top level block data.

## Get the last 10 snark work for a public key

```json theme={null}
{
  snarks(
    limit: 10
    query: {prover: "B62..."}
    sortBy: DATETIME_DESC
  ) {
    fee
    dateTime
    block {
      stateHash
      protocolState {
        consensusState{
          blockHeight
        }
      }
    }
    canonical
  }
}
```

## Determine the most expensive snark work for a period

```json theme={null}
{
  snarks(
    limit: 10
    sortBy: FEE_DESC
    query: {
      AND: [
        { dateTime_gte: "2021-01-26T00:00:00Z" }
        { dateTime_lte: "2021-01-27T00:00:00Z" }
      ]
    }
  ) {
    prover
    fee
  }
}
```
