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.
— 500
Failed to retrieve blockchain height.
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.
— 404
No active block found.
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.
— 404
Block not found.
Retrieve Latest Block
Fetches the latest block in the blockchain
Responses
https://api.pecunovus.net/api/v2/latest_block
— 200
Latest block retrieved successfully.
— 404
No blocks found.