pow-co / askbitcoin

Ask Bitcoin a Question - Bitcoin AI Ranks the Top Answers
7 stars 5 forks source link

use stag-relayx to buy boostpow #57

Closed owenkellogg closed 1 year ago

owenkellogg commented 1 year ago

A new abstraction over buying boostpow with relayx dramatically simplifies buying boostpow using react typescript applications.

https://www.npmjs.com/package/stag-relayx

import { wrapRelayx } from 'stag-relayx'

const stag = wrapRelayx(window.relayone)

const { txid, txhex, job } = await stag.boost.buy({ content, value, difficulty })

Try it out in your react apps using relayx today!

owenkellogg commented 1 year ago

Thanks!