Skip to content

pow-co/orderlock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

OrderLock

orderlock package on npmjs.com

Installation

npm install --save orderlock

Usage

!-- Proposed Interface --!


import orderlock from 'orderlock'

async function main() {

  const lock: orderlock.Lock = await orderlock.getLock({
    location: /* RUN Location of OrderLock Instance */
  })

  const transaction: orderlock.Transaction = await lock.unlock({
    privateKey: process.env.bsv_private_key,
    utxos: [/* optionally include the explicit coins to spent */],
    transmit: false /* when true broadcasts the transaction */
  })

}

Building

npm run build

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published