npm

Need private packages and team management tools?Check out npm Orgs. »

@bpanel/publish-data

0.1.0 • Public • Published

Publish Data

A simple plugin for publishing arbitrary data to the blockchain using OP_RETURN. This plugin will automatically split up the scripts to abide by the OP_RETURN data size limits. Raw scripts are printed below the input to display what is added to your transactions output. Set the fee and choose the wallet to send and fund the tx with. TX hash of published transaction will be printed on the screen if successful.

To learn about how to publish data to the blockchain with bcoin using OP_RETURN checkout the guide on bcoin.io: Store Data on the Blockchain.

Installation

Install the Publish Data plugin the same way you would with any other bPanel plugin: add the name of the npm package to the plugins array in the pluginsConfig.js file:

// webapp/config/pluginsConfig.js
export const localPlugins = [];
 
export const plugins = ['@bpanel/publish-data'];
 
export default { localPlugins, plugins };

More on installing bPanel plugins here.

Planned Features

  • Support wallets protected with passphrases
  • Return entire raw transaction
  • notification when tx gets mined

screenshot

install

npm i @bpanel/publish-data

Downloadsweekly downloads

4

version

0.1.0

license

MIT

last publish

collaborators

  • avatar
  • avatar
  • avatar
  • avatar
Report a vulnerability