Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scrypt-inc/ordinal-lock-demo
https://github.com/scrypt-inc/ordinal-lock-demo
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/scrypt-inc/ordinal-lock-demo
- Owner: sCrypt-Inc
- Created: 2023-10-12T22:17:48.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-10-19T03:46:31.000Z (over 1 year ago)
- Last Synced: 2024-11-05T09:37:08.788Z (3 months ago)
- Language: TypeScript
- Size: 577 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ordinals-lock-demo
Install the dependencies
```bash
npm i
```then update line 1934 of file `node_mudules/scrypt-ts/dist/smart-contract/contract.js`
![](https://aaron67-public.oss-cn-beijing.aliyuncs.com/202310171255810.png)
to the following
```ts
const filteredUtxos = feeUtxos.filter(item => item.satoshis !== 1);
console.log(`filter out utxo: ${feeUtxos.length} => ${filteredUtxos.length}`);
tx.from(filteredUtxos);
```![](https://aaron67-public.oss-cn-beijing.aliyuncs.com/202310171256295.png)
Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.
```bash
$ npm start
```