0.7.6 • Published 2 years ago

stag-wallet v0.7.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Stag Wallet

Installation

npm install --save stag-wallet

Configure Wallet

To configure the wallet simply provide BSV_PRIVATE_KEY environment variable

export BSV_PRIVATE_KEY=KzuhQNi7gQJ3ThGi7C7YMQvjfScLWBCZ7PMb8RmpwJEYHv1JWd4G

Nodejs

Pay: Protocol

import { pay } from 'stag-wallet'

const url = 'https://api.anypayx.com/r/uh83lFFhE'

const { txid, txhex, txo } = await pay(url)

Boostpow

import { boostpow } from 'stag-wallet'

const job = await boostpow({
  content: '2b7371657d34652255a276331ac89e46a82cf58693a8e6aaafcbaacfce132cd0',
  difficulty: 0.1,
  tag: 'askbitcoin.question',
  category: 'ASK',
  satoshis: 52_000
})

Onchain.SV

import { onchain } from 'stag-wallet'

const { txid, txhex, txo } = await onchain.post({
  app: 'askbitcoin.ai,
  type: 'question',
  content: {
    content: 'Which midasvalley.net domain will be most valuable over the next month?'
  }
})

// or 

const { txid, txhex, txo } = await onchain.findOrCreate({

  where: {
    app: 'www',
    type: 'resource',
    content: {
      url: 'https://www.infowars.com/posts/dave-chappelle-tricked-snl-producers-by-giving-them-fake-monologue-during-dress-rehearsal/'
    }
  },
  defaults: {
    app: 'www',
    type: 'resource',
    content: {
      url: 'https://www.infowars.com/posts/dave-chappelle-tricked-snl-producers-by-giving-them-fake-monologue-during-dress-rehearsal/'
    }
  }

})

Powco.Dev

import { powcodev } from 'stag-wallet'

const satoshis = 100_000_000

const txid = await powcodev.deployDevIssueContract({

  platform: 'github',

  org: 'pow-co',

  repo: 'powco.dev',

  issue_id: 555555555,

  title: '',

  description: ''

}, satoshis)
0.7.6

2 years ago

0.7.5

2 years ago

0.7.2

2 years ago

0.7.4

2 years ago

0.7.3

2 years ago

0.5.0

2 years ago

0.4.1

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

3 years ago

0.1.0

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.12

3 years ago

0.0.13

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.7

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago