Skip to content

pow-co/powco-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

powco

npm install --save powco

Broadcast Transaction

import { broadcast } from 'powco'

const txid = await broadcast(txhex)

Fetch Transaction

import { fetch } from 'powco'

const txhex = await fetch(txid)

Stream Boostpow Transactions

import { Job, BoostPowJobProof as 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)

})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published