0.7.6 • Published 1 year ago

stag-wallet v0.7.6

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year 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

1 year ago

0.7.5

1 year ago

0.7.2

1 year ago

0.7.4

1 year ago

0.7.3

1 year ago

0.5.0

1 year ago

0.4.1

1 year ago

0.6.0

1 year ago

0.5.1

1 year ago

0.4.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.12

1 year ago

0.0.13

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.7

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago