onchainengineer / firefly-sdk-nodejs

FireFly SDK for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FireFly Node.js SDK

version FireFly Documentation

Hyperledger FireFly

This is the client SDK for Node.js, allowing you to build your own applications on top of Hyperledger FireFly.

Installation

npm install @hyperledger/firefly-sdk

Usage

import FireFly from '@hyperledger/firefly-sdk';

const firefly = new FireFly({ host: 'http://localhost:5000' });
await firefly.sendBroadcast({
  data: [{ value: 'test-message' }],
});

Generated schemas

The types for FireFly requests and responses are generated from the OpenAPI schema for FireFly. If you have the firefly repository cloned in a folder parallel to this one, you can run the following to re-generate the TypeScript interfaces from the latest FireFly definitions:

npm run schema

Git repositories

There are multiple Git repos making up the Hyperledger FireFly project. Some others that may be helpful to reference:

Contributing

Interested in contributing to the community?

Check out our Contributor Guide, and welcome!

Please adhere to this project's Code of Conduct.

License

Hyperledger Project source code files are made available under the Apache License, Version 2.0 (Apache-2.0), located in the LICENSE file.

About

FireFly SDK for Node.js

License:Apache License 2.0


Languages

Language:TypeScript 100.0%Language:JavaScript 0.0%