0.0.3 • Published 4 months ago

@sparsity/abci v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

Sparsity ABCI SDK

A JavaScript/TypeScript SDK for interacting with the ABCI (Application Blockchain Interface) protocol of Sparsity platform. This SDK provides a simple interface to build powerful decentralized applications communicating with Sparsity consensus engine.

Installation

npm install @sparsity/abci
# or
yarn add @sparsity/abci

Usage

Import Required Interfaces

import { BatchState, Message, MessageType } from '@sparsity/abci';

Implement Your Application

Create your own application by extending the BaseApplication class:

import { BaseApplication, StepEvent } from '@sparsity/abci';

class MyApplication extends BaseApplication {
    // Implement your application logic here
}

Start the ABCI Server

Initialize and start your ABCI server:

import { startServer } from '@sparsity/abci';

// Create and start your application
startServer(new MyApplication());
0.0.3

4 months ago

0.0.2

5 months ago

0.0.1

5 months ago