This library implements 1Sat Ordinals and Global Order Ordinal Lock Book functions such as inscribing with Magic Attribute Protocol (MAP) support, sending Ordinals as well as Listing, Canceling and Purchasing Inscriptions.
This code is designed to simply be included as a script tag, for Web Browser use only.
To include, simply setup script tags IN ORDER, BEFORE writing any JavaScript as per the example index.html file:
<script src="./scripts/bsv.browser.min.js"></script>
<script src="./scripts/helpers.js"></script>
<script src="./scripts/oneSatOrdinals.js"></script>
This library depends on the bsv-legacy 1.5.6 library.
A helpers.js file is included with useful functions such as fetching UTXOs, broadcasting transactions, data conversion and paying for arbitrary Bitcoin transactions.
Use as you see fit, feel free to leave any feedback on the Issues tab.