orderlock

0.0.1 • Public • Published

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

/orderlock/

    Package Sidebar

    Install

    npm i orderlock

    Weekly Downloads

    0

    Version

    0.0.1

    License

    ISC

    Unpacked Size

    1.11 kB

    Total Files

    2

    Last publish

    Collaborators

    • stevenzeiler