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

The Storage System

Managing state within NxtFi

PreviousSmart ContractsNextUpload Media Files

Last updated 1 year ago

A key feature of the NxtFi blockchain framework, in addition to its computational power, is its ability to store data content and state. In this article, we will provide an overview of its architecture.

The NxtFi framework supports various types of data storage, but different functions are available for implementing CRUD operations. We can distinguish two major paths. First, for data content that can be serialized as a JSON object, no additional considerations are required. It can simply be placed within the block body content using the embedded functions. Read, update, and delete actions can also be performed on this data.

On the other hand, other files are also accepted and can be stored within the framework. However, they follow a different path and require additional validation and configuration. In the following section, we will outline the necessary considerations and explain how file uploads work.

As of this version of the documentation, the NxtFi framework accepts files of any type up to a size limit of 10MB.

Regardless of the data type, every interaction with the storage system must be done through an HTTPS call. For syntax information, please refer to the section. To understand how to retrieve a file from storage, refer to the endpoint usage in the '' section. Additionally, the '' section provides information on tracing connections between the storage system and the blockchain.

API-listing
get file from storage
storage tracking