---
title: "API Specs & Blocks"
description: "#### **API Specs & Blocks** This section covers the api specification and documentation for developing on Pecu Novus #### **Blocks** This section covers the APIs related to blocks in the Pecu Novus network, including fetching active blocks and block details.…"
url: "https://docs.pecunovus.com/info/api-specs-blocks/"
updated: "2025-03-09"
category: The Basics / Developer Docs
---

# API Specs & Blocks

#### **API Specs & Blocks**

This section covers the api specification and documentation for developing on Pecu Novus

#### **Blocks**

This section covers the APIs related to blocks in the Pecu Novus network, including fetching active blocks and block details.

#### **Get Blockchain Height**

Retrieves the current height of the blockchain

**Responses**

https://api.pecunovus.net/api/v2/block_height

**-- 200
 Blockchain height retrieved successfully.**

![](https://docs.pecunovus.com/wp-content/uploads/2024/12/blockheight200.png)

**-- 500
 Failed to retrieve blockchain height.**

![](https://docs.pecunovus.com/wp-content/uploads/2024/12/blockheight500.png)

##

#### **Retrieve Active Block**

Fetches the currently active open block in the blockchain

**Responses**

https://api.pecunovus.net/api/v2/get_active_block

**-- 200**
 **Active block retrieved successfully.**

![](https://docs.pecunovus.com/wp-content/uploads/2024/12/activeblock200.png)

**-- 404**
 **No active block found.**

![](https://docs.pecunovus.com/wp-content/uploads/2024/12/activeblock404.png)

##

#### **Retrieve Block Data**

Fetches all the information about the block with the specified ID

**path Parameters**

-- id                              string
 required                        The unique identifier of the block.

**Responses**

https://api.pecunovus.net/api/v2/get_block/{id}

**-- 200**
 **Block details retrieved successfully.**

![](https://docs.pecunovus.com/wp-content/uploads/2024/12/blockdata200.png)
 **-- 404**
 **Block not found.**

![](https://docs.pecunovus.com/wp-content/uploads/2024/12/blockdata404.png)

##

#### **Retrieve Latest Block**

Fetches the latest block in the blockchain

**Responses**

https://api.pecunovus.net/api/v2/latest_block

**-- 200**
 **Latest block retrieved successfully.**

![](https://docs.pecunovus.com/wp-content/uploads/2024/12/blockretrieve200.png)

**-- 404**
 **No blocks found.**

![](https://docs.pecunovus.com/wp-content/uploads/2024/12/retrieveblock404.png)

#### **Verify Blockchain Integrity**

Validates the entire blockchain to ensure its integrity and correctness

**Responses**

https://api.pecunovus.net/api/v2/verify_chain

**-- 200**
 **Blockchain verified successfully.**

![](https://docs.pecunovus.com/wp-content/uploads/2024/12/verifychain200.png)

**-- 500**
 **Blockchain integrity check failed.**

![](https://docs.pecunovus.com/wp-content/uploads/2024/12/verifychain500.png)
