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 block information by height

Obtain information of a specific block by its height.

/_height/<scope>/<height>

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

Query Parameters

Name
Type
Description

scope*

String

height

Number

{
  "prevHash": "3ca944db13730d25e880922012ad357358ff169173facc909391e17c6233d1f2",
  "height": 49,
  "version": 2,
  "data": "// HOLA",
  "timestamp": 1676471794193,
  "scope": "DATA",
  "signature": "JYMhtSOJdqxXJHi0C0EqhfRu7mFnsUmqxICVNgRZrOgj391Z0K98SzqvWKCx7GC63ms/8nzC3BklUqBpcbQGPY7UJt5x+qLFidow7s1/THb/gZw/Ukpg4zDxqa9YikmJu9HTkWPVJC8y7PwoxRkgWqTnsCgyfkJf6kuiusUMq0TGBxNEZcxkkLDvM2UFLL/PqKFQy+WqEz712QDwtY80H9s92jAbCa/frFF7hR60rCy7lLBtzLOTB14tNLeHCj5e+2931Gy6bvHlXPNowJdL7lmWXrDLYdwjMoQH7GrlizTgJXTQzK4xm6RiRrDdJnOlXICQxqE1iVC59yFLy700Ig==",
  "by": "DATA",
  "hash": "c4575a343793dde67655cfaf3b1be4dcbbf5e8a6f59d33e525a0b5004becde12",
  "": "}\n\n",
  "__cache": {}
}
curl --location --request GET 'https://test-001-node.cloud.nxtfi.org/v2/_height/data/2'
PreviousGet block information by timestampNextGet files from storage by scope

Last updated 2 years ago