Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cli] Display bitcoin tx detail #2629

Merged
merged 2 commits into from
Sep 14, 2024
Merged

Conversation

vegetabledogdog
Copy link
Contributor

Print utxo address if network provided; else print script.

rooch bitcoin sign-tx -s rooch13jgu06vyaucyfa4ylac7270ayzs7ll303g7yejzsqpvrekm7dpkqa9rlyr /tmp/f41721630dae28d1.psbt -n regtest
Transaction details before signing:
  Version: 2
  Lock time: 0
  Network: regtest
  Inputs:
    Input 0:
      Previous output: 2d4acda35bc3c1a6610d452d08c7e233358fe1ac097c34540a4e7ff78b499dff:0
      Sequence: 4294967293
      Address: bcrt1pefq58pva5v34jj5hp7pw89nrc8k7w6lfg5776uyh5wjgtyt74rrs8hg6xv
  Outputs:
    Output 0:
      Value: 0.00010000 BTC
      Address: bcrt1p9tjl8a76mx9glle4krl35fvlns5ncggpxfsneajdme27gdgxpf2qrakmd0
    Output 1:
      Value: 6.24989060 BTC
      Address: bcrt1pefq58pva5v34jj5hp7pw89nrc8k7w6lfg5776uyh5wjgtyt74rrs8hg6xv

Do you want to sign this transaction? [yes/no] > 

rooch bitcoin sign-tx -s rooch13jgu06vyaucyfa4ylac7270ayzs7ll303g7yejzsqpvrekm7dpkqa9rlyr /tmp/f41721630dae28d1.psbt
Transaction details before signing:
  Version: 2
  Lock time: 0
  Inputs:
    Input 0:
      Previous output: 2d4acda35bc3c1a6610d452d08c7e233358fe1ac097c34540a4e7ff78b499dff:0
      Sequence: 4294967293
      Script pubkey: OP_PUSHNUM_1 OP_PUSHBYTES_32 ca4143859da323594a970f82e39663c1ede76be9453ded7097a3a485917ea8c7
  Outputs:
    Output 0:
      Value: 0.00010000 BTC
      Script pubkey: OP_PUSHNUM_1 OP_PUSHBYTES_32 2ae5f3f7dad98a8fff35b0ff1a259f9c293c210132613cf64dde55e435060a54
    Output 1:
      Value: 6.24989060 BTC
      Script pubkey: OP_PUSHNUM_1 OP_PUSHBYTES_32 ca4143859da323594a970f82e39663c1ede76be9453ded7097a3a485917ea8c7

Do you want to sign this transaction? [yes/no] >

Copy link

vercel bot commented Sep 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rooch-portal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 13, 2024 4:34pm
rooch-portal-v2.1 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 13, 2024 4:34pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
rooch ⬜️ Ignored (Inspect) Visit Preview Sep 13, 2024 4:34pm

@jolestar jolestar merged commit 06db356 into rooch-network:main Sep 14, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants