https://github.com/you21979/multisig-unsignedtx-builder
multisig transaction build from utxos
https://github.com/you21979/multisig-unsignedtx-builder
bitcoin multisig
Last synced: about 2 months ago
JSON representation
multisig transaction build from utxos
- Host: GitHub
- URL: https://github.com/you21979/multisig-unsignedtx-builder
- Owner: you21979
- License: apache-2.0
- Created: 2017-07-28T06:27:07.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-18T09:59:19.000Z (almost 9 years ago)
- Last Synced: 2025-01-06T16:16:00.016Z (over 1 year ago)
- Topics: bitcoin, multisig
- Language: JavaScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# multisig-unsignedtx-builder
## 用途
utxoのリストからマルチシグの未署名トランザクションを作成する
## インストール
```
npm i
```
## 設定
* config/xpub.json
* マルチシグの拡張公開鍵の設定
* redeem_scriptを作るために用意します
```
{
"keys": [{
"neededSignatures": 2,
"masterPubkeys": [
"xpub6...",
"xpub6...",
"xpub6..."
]
}]
}
```
## 使い方
```
./bin/rawtx_builder.js -f ./utxos.json -a bitcoin_address
```
## utxo フォーマット
* オブジェクトの配列
* tx_id
* tx_vout
* amount (satoshi単位)
* hdpath (xprvからスプリット後のパス)
```
[
{
"tx_id":"",
"tx_vout":0,
"amount":0,
"hdpath":"0/0/0/0"
}
]
```
## オプション
```
./bin/rawtx_builder.js -h
Usage: rawtx_builder [options]
Options:
-V, --version output the version number
-f, --file utxo json file
-a, --address spent address
-s, --spb transaction fees. satoshi per byte
-d, --divide transaction divide unit
-n, --network coin network[BTC,LTC,MONA]
-h, --help output usage information
```