Skip to main content
Version: Next

On-Chain & Off-Chain Development

The Blockchain Development tool is intended to speed up the development process of creating topic parsers for users.

Requirements:

  • Install Docker
  • VS Code is Recommended
  • CLI supported on Mac OSX / Ubuntu Terminal

    for Windows, paste the startup command into WSL

Using the Blockchain Development CLI

You'll Find The CLI Command Here

Alert Topics

Edit Parser Modal

Important parameters:
  • NOTIFI_AUTH_TOKEN: This token refers to a unique identity for your DAPP and JWT authentication to interact with Notifi Services
  • FUSION_SOURCE_ID: This ID relates to the topic's respective parser ID. This is particularly useful in CLI commands.

Paste Command Into Terminal

Copy and Paste Into Terminal

Terminal Image

Expected Result

CLI Command Successful

Common Commands

Authentication Commands

Creating Authentication

$fusion auth (Creating Authentication for a user to run any Parser Commands)

Parser Commands

Finding what commands are available in the CLI

$fusion parser --help

Run this command if you forget what commands are available.

Alt text


Creating Parser Environment

$fusion parser init 'fusionSourceId'

Run this command if you need initialize a parser source development environment

Note: This is automatically generated upon completion of the CLI Script.


Creating A New Parser Directory

$fusion parser create

Run this command if you want to a new parser directory


Activating A Fusion Source

$fusion parser activate 'cursor' 'fusionSourceId'

The Fusion Activate Command must be called at least once. This command requires the fusion source to be uploaded

Run this command if you want to activate a parser


Uploading A Fusion Source

$fusion parser upload 'fusionSourceId'

Run this command if you would like to upload the respective Fusion Source


Generating a list of your parsers

$fusion parser list

Run this command if you would like to see the state of your parsers

Example Response: Example of Fusion Parser List Command


Deactivating A Fusion Source

$fusion parser deactivate 'fusionSourceId'

Run this command if you would like to deactivate a Fusion Source


Parser Development States

Templated parsers are available in the following directory:

**~/fusion-sources/{YOUR_PARSER_NAME}**

When developing a parser, expected states are to be seen in the following page:

The Fusion Activate Command must be called at least once

Alt text

Alt text

When Parser Hasn't Been Activated

Alt text

When Parser Has Been Activated

Alt text

Here, parsers can be activated and deactivated outside of the CLI.

  1. Copy and Paste the Command into your terminal
  2. Run The CLI Command
  3. Run npm i
  4. Modify Your Parser Code
  5. Upload Your Parser
  6. Activate Your Parser