---
title: "Get the latest block"
method: GET
path: "/coin-gecko/terminal/latest-block"
tags: ["coin-gecko"]
---

# Get the latest block

`GET /coin-gecko/terminal/latest-block`

## Request

- Base URL: `https://swap-backend.stage.defi.ovh.gala.com`
- URL: `https://swap-backend.stage.defi.ovh.gala.com/coin-gecko/terminal/latest-block`
- Auth: none declared
- TypeScript: <https://skmtc.dev/gala/apis/gala-defi-backend-api/docs/coin-gecko/terminal/latest-block/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the latest block number from the Gala blockchain.

## Response `200`

- LatestBlockResponseDto
  - `block` BlockDto, required
    - `blockNumber` number, required
    - `blockTimestamp` number, required

## Other responses

- `default`: An error response using the shared backend error envelope.

---

[API](https://skmtc.dev/gala/apis/gala-defi-backend-api.md) - [All operations](https://skmtc.dev/gala/apis/gala-defi-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gala/apis/gala-defi-backend-api/revisions/84f8184e2828?raw)
