Skip to content

Commit

Permalink
Add justfile with commands for moving ordinals around manually (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
casey authored Jul 18, 2022
1 parent 3418778 commit c17915f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions contrib/raw/justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
create INPUT_TXID INPUT_VOUT OUTPUT_DESTINATION OUTPUT_AMOUNT:
#!/usr/bin/env bash
set -euxo pipefail

bitcoin-cli createrawtransaction \
'[
{
"txid": "{{INPUT_TXID}}",
"vout": {{INPUT_VOUT}}
}
]' \
'[
{
"{{OUTPUT_DESTINATION}}": {{OUTPUT_AMOUNT}}
}
]' \
> raw.hex

sign WALLET_NAME:
bitcoin-cli -rpcwallet={{WALLET_NAME}} signrawtransactionwithwallet `cat raw.hex` > signed.json

send:
bitcoin-cli sendrawtransaction `cat signed.json | jq '.hex' --raw-output`

0 comments on commit c17915f

Please sign in to comment.