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
  • Https calls have this structure:
  • General knowledge specification:

Blockchain API Interactions

"Communication protocol, each API interaction must adhere to the syntax described below."

PreviousUpload Media FilesNextAccess Control Layer

Last updated 1 year ago

Https calls have this structure:

https://<cluster>-<node>.cloud.nxtfi.org/v2/<ENDPOINT>

Description:

cluster : Available public option test

node : Node number i.g: 001-node

Endpoint : Available public options described in the section.

General knowledge specification:

As a general rule, on the NxtFi API, each HTTPS call that points towards a directory folder in the storage system must end with a forward slash /, otherwise the response will prompt:

{"error": "notFound"}

On the other hand, HTTPS calls pointing to files won't admit a forward slash at the end or the file extension. If that is the case, they will also prompt the same error message.

For example SUCCESS:

https://test-001-node.cloud.nxtfi.org/v2/_storage/<scope>/<directory>/

https://test-001-node.cloud.nxtfi.org/v2/_storage/<scope>/<filename>

For example {"error": "notFound"}:

https://test-001-node.cloud.nxtfi.org/v2/_storage/<scope>/<directory>

https://test-001-node.cloud.nxtfi.org/v2/_storage/<scope>/<filename>/

https://test-001-node.cloud.nxtfi.org/v2/_storage/<scope>/<filename>.json

API reference