### Installing FireFly SDK npm package Bash Source: https://github.com/hyperledger/firefly-sdk-nodejs/blob/main/README.md Describes how to install the Hyperledger FireFly Node.js SDK using npm. Requires Node.js and npm installed. Installs the SDK as a project dependency. ```bash npm install @hyperledger/firefly-sdk ``` -------------------------------- ### Sending Broadcast Message FireFly SDK TypeScript Source: https://github.com/hyperledger/firefly-sdk-nodejs/blob/main/README.md Demonstrates basic usage of the FireFly Node.js SDK to connect to a FireFly node and send a broadcast message. Requires the @hyperledger/firefly-sdk package installed and a running FireFly node accessible at the specified host. Initializes the client and sends a simple data message. ```typescript import FireFly from '@hyperledger/firefly-sdk'; async function main() { const firefly = new FireFly({ host: 'http://localhost:5000' }); await firefly.sendBroadcast({ data: [ { value: 'test-message', }, ], }); } if (require.main === module) { main().catch((err) => console.error(`Error: ${err}`)); } ``` -------------------------------- ### Regenerating OpenAPI Schemas npm script Bash Source: https://github.com/hyperledger/firefly-sdk-nodejs/blob/main/README.md Provides the npm script command to regenerate TypeScript interfaces from the FireFly OpenAPI schema. Requires the 'firefly' repository to be cloned in a parallel directory and the npm script 'schema' to be configured in package.json. Updates the SDK's type definitions based on the latest FireFly API schema. ```bash npm run schema ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.