{"repo":"BitcoinSchema/js-1sat-ord","free":true,"listed":false,"github":"https://github.com/BitcoinSchema/js-1sat-ord","clone":"git clone https://github.com/BitcoinSchema/js-1sat-ord.git","description":"1Sat JS Library","language":"TypeScript","stars":25,"topics":["1sat","bitcoin","bitcoinsv","bsv","ordinals"],"license":null,"category":"blockchain-web3","readme_excerpt":"--- description: js-1sat-ord --- 1Sat Ordinals - JS Library A Javascript library for creating and managing 1Sat Ordinal inscriptions and transactions. Uses @bsv/sdk under the hood. It provides functions for listing, cancelling and purchasing Ordinal Lock transactions. It also privides helpers for fetching utxos for payments, nfts, and tokens. Install Install the library, and it's peer dependency. We recommend using Bun for the best performance, but you can also use Yarn or npm: Usage Example Prepare some utxos to use in the following format. Be sure to use base64 encoded scripts. We use this encoding because it makes large scripts smaller in size. You can use the helper fetchPayUtxos(address) to fetch unspent transaction outputs from the public 1Sat API and create the scripts with the correct encoding (base64). This should be a BSV address, not your ordinals address. Note: By default the script encoding will be base64, but you can provide a 2nd parameter and specify hex or asm encoding for the script property. Note: Utxo and NftUtxo and TokenUtxo have an optional pk field for specifying a Private Key for unlocking this utxo. This is helpful when multiple keys own the inputs and you need to spend them in a single transaction. For NFTUtxos: For Token Utxos: Prepare Inscription For a markdown inscription, you can create a string and convert it to base64: Prepare Keys Be sure to use different keys for ordinals and normal payments: Create Ordinals The createOrdinals function creat","default_branch":null,"files":null,"tree":[],"storefront":"/r/BitcoinSchema","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/BitcoinSchema/js-1sat-ord/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}