---
agentTools:
  projectIndex: https://spacepool.readme.io/llms.txt
---

# Get blocks recently farmed by the pool

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Space Pool Developer API",
    "description": "Space Pool public developer REST APIs",
    "termsOfService": "https://pool.space/terms",
    "contact": {
      "name": "Space Pool",
      "url": "https://pool.space/about",
      "email": "info@pool.space"
    },
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://developer.pool.space",
      "description": "Space Pool Developer API"
    }
  ],
  "paths": {
    "/api/v1/pool/blocks": {
      "get": {
        "tags": [
          "Get Pool Blocks V1"
        ],
        "summary": "Get blocks recently farmed by the pool",
        "parameters": [
          {
            "name": "Developer-Key",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "User-Agent",
            "in": "header",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/BlockV1Model"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlockV1Model"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/BlockV1Model"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BlockConfirmationStatusV1": {
        "enum": [
          "Unknown",
          "Maturing",
          "Confirmed",
          "Reverted"
        ],
        "type": "string",
        "description": "Confirmation status of the block"
      },
      "BlockV1Model": {
        "type": "object",
        "properties": {
          "luckPercent": {
            "type": "number",
            "description": "Percent of how lucky this block reward was compared to expectation from size of the pool, normalized to 1. Less than 1 means the pool was lucky. More than 1 signifies the pool was unlucky.",
            "format": "double",
            "nullable": true
          },
          "blockNumber": {
            "type": "integer",
            "description": "Height of the farmed block on the blockchain",
            "format": "int64"
          },
          "rewardInXCH": {
            "type": "number",
            "description": "Amount of the block reward, in XCH",
            "format": "double"
          },
          "creationDateTimeUtc": {
            "type": "string",
            "description": "Date and time that the block reward was created on the blockchain",
            "nullable": true
          },
          "winnerLauncherId": {
            "type": "string",
            "description": "Launcher id of the winner of the block reward",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/BlockConfirmationStatusV1"
          }
        },
        "additionalProperties": false
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 97,
      "1": 78,
      "2": 113,
      "3": 40,
      "4": 150,
      "5": 240,
      "6": 111,
      "7": 0,
      "8": 87,
      "9": 153,
      "10": 98,
      "11": 83
    }
  }
}
```