NxtFi
  • NxtFi Blockchain
  • Testing Network
  • Block Viewer
  • Playground
  • Authentication
  • Create New Block
  • Blockchain Libraries
    • NxtFi Tools
    • Javascript - CreateBlock
  • Smart Contracts
  • The Storage System
  • Upload Media Files
  • Blockchain API Interactions
  • Access Control Layer
    • How it Works
    • Syntax & Smart Contract requirements
    • Example
  • API - Listing Files
  • API Reference
    • Get node health
    • Get the last block
    • Get block information by hash
    • Get block information by timestamp
    • Get block information by height
    • Get files from storage by scope
    • Storage tracking interactions
    • Storage tracking timestamp block info
    • Submit new block
    • Presign media file upload
Powered by GitBook
On this page
  1. API Reference

Get the last block

Query the last block of a scope

/_head/<scope>

GET https://test-001-node.cloud.nxtfi.org/v2/_head/<scope>

Path Parameters

Name
Type
Description

<scope>*

string

Get information of the last block registered in the scope

{
    "head": "e1beda10fee6405448a84e06cb8ff7fe43dbf509a807094398297ffb24b82125",
    "height": 10,
    "timestamp": 1667134954981
}
curl --location --request GET 'https://test-001-node.cloud.nxtfi.org/v2/_head/JCOAKS'
PreviousGet node healthNextGet block information by hash

Last updated 2 years ago