powco
TypeScript icon, indicating that this package has built-in type declarations

1.2.2 • Public • Published

powco

npm install --save powco

Stream Boostpow Transactions

import { Job, Proof } from 'boostpow'

import { stream } from 'powco'

stream.on('boostpow.job', (job: Job) => {

  console.log('boostpow.job', job)

})

stream.on('boostpow.proof', (proof: Proof) => {

  console.log('boostpow.proof', proof)

})

Broadcast Transaction

import { broadcast } from 'powco'

const txid = await broadcast(txhex)

Fetch Transaction

import { fetch } from 'powco'

const txhex = await fetch(txid)

Readme

Keywords

none

Package Sidebar

Install

npm i powco

Weekly Downloads

0

Version

1.2.2

License

ISC

Unpacked Size

11.5 kB

Total Files

11

Last publish

Collaborators

  • stevenzeiler