Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scrypt-inc/smartcontract-btc
https://github.com/scrypt-inc/smartcontract-btc
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/scrypt-inc/smartcontract-btc
- Owner: sCrypt-Inc
- Created: 2023-05-12T11:27:35.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-05-13T09:11:27.000Z (over 1 year ago)
- Last Synced: 2024-11-05T09:37:31.502Z (2 months ago)
- Language: TypeScript
- Size: 94.7 KB
- Stars: 4
- Watchers: 0
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Read [article]() for more details.
## Requirements:
Run:
```sh
npm i && pip3 install bitcoin-utils
```## Deployment:
Produce redeem script:
```sh
npx ts-node src/contracts/demo.ts
```Next, adjust values (marked with "TODO") in deployment scripts under `deployment/`. After that you can construct the serialized transactions which may be broadcast.
This will construct that pays the redeem script using a P2WSH output:
```sh
python3 deployment/p2wpkh_p2wsh_mainnet.py
```And this will construct a transaction to spend it:
```sh
python3 deployment/p2wsh_p2wpkh_mainnet.py
```