0.1.3 • Published 2 years ago
marketplace-overlay-services v0.1.3
marketplace-overlay-services
Overlay Services for BTMS Asset Exchange Marketplace
API
Table of Contents
MarketplaceLookupService
Implements a lookup service for marketplace
Parameters
$0Object$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, default1000)privateKey(optional, defaultANYONE)
identifyAdmissibleOutputs
Returns the outputs from the transaction that are admissible.
Parameters
$0{previousUTXOs: Array\, parsedTransaction: Transaction}$0.parsedTransaction
objectall params given in an objectpreviousUTXOsany previous UTXOsparsedTransactiontransaction 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.