Boost POW Publish Widget
Boost Proof of Work Protocol https://boostpow.com
Boost POW Publish is a simple way to Boost content on your website. The widget enables developers to interact with Boost POW implementation directly from their websites, making it easy to create Boost POW jobs attached to onchain contents, and allowing users to boost their energy in a few simple steps.
Currently supported wallets are Money Button and RelayX.
Installation
Put this script on your page.
<script src="https://publish.boostpow.com/publish.js"></script>
Usage
After page loads the boostPublish object will be available for access from your script.
// Opens the widget with a simple text content as example
const response = await boostPublish.open({
content: '2829b4df5152fb867128f0ea2cffdfe3b7134a98b356eb1a1813b68fd3b83519',
onPayment: (payment, boostJob) => {
console.log(payment, boostJob);
}
});
See our DOCS page for complete reference to the BoostPOW Publish widget configuration
See our DEMO page for more examples of the BoostPOW Publish widget configuration
More about Boost POW protocol and tools
Links:
- Boost POW Official Website
- Javascript SDK: boostpow-js
- Standalone API Server: boostpow-api
- BoostPOW Whitepaper markdown
Contributing
Clone this project and run:
npm install
Run the project in development mode
npm run dev
Build the project
npm run build
npm run export
npm run build-browser-partial
npm run build-browser-full