0.1.3 • Published 1 year ago

marketplace-overlay-services v0.1.3

Weekly downloads
-
License
Open BSV License
Repository
-
Last release
1 year ago

marketplace-overlay-services

Overlay Services for BTMS Asset Exchange Marketplace

API

Table of Contents

MarketplaceLookupService

Implements a lookup service for marketplace

Parameters

  • $0 Object

    • $0.storageEngine
    • $0.topics (optional, default [])

TokenTopicManager

Implements a topic manager for marketplace management

Parameters

  • confederacyHost (optional, default 'https://confederacy.babbage.systems')
  • peerServHost (optional, default 'https://peerserv.babbage.systems')
  • messageBox (optional, default 'tokens-box')
  • protocolID (optional, default 'tokens')
  • basket (optional, default 'tokens')
  • topic (optional, default 'tokens')
  • satoshis (optional, default 1000)
  • privateKey (optional, default ANYONE)

identifyAdmissibleOutputs

Returns the outputs from the transaction that are admissible.

Parameters
  • $0 {previousUTXOs: Array\, parsedTransaction: Transaction}

    • $0.parsedTransaction
  • object all params given in an object

  • previousUTXOs any previous UTXOs
  • parsedTransaction transaction containing outputs to admit into the current topic

Returns Promise([Array](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array)<[number](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number) | AdmissableOutputs)>

License

The license for the code in this repository is the Open BSV License.

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago