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

Show tx details in case verbose is enabled #35

Merged

Conversation

sandipndev
Copy link
Contributor

This adds in verbosity for transactions in list_transactions. If verbosity was enabled, it shows the raw transaction as a human readable json.

❯ ./target/debug/bdk-cli wallet -v -d "wpkh([ece99850/1]tprv8dK67BQwyn6i3gDamn3s5ENnEbAg7DM4FACGygM3wXui4JAWQjUNzuiuNcTh57uFjGQAPrQq22VAxYTyGVnoQt3s4PmBeUHJtt7oJC7wXNk/*)" list_transactions
[
  {
    "fees": 141,
    "height": null,
    "received": 8859,
    "sent": 10000,
    "timestamp": 0,
    "transaction": {
      "input": [
        {
          "previous_output": "6fafe559892e085419596670415826098d85a39f5c707eb5db8cb3e87cab5bbb:1",
          "script_sig": "",
          "sequence": 4294967295,
          "witness": [... redacted due to length ...]
        }
      ],
      "lock_time": 0,
      "output": [
        {
          "script_pubkey": "001471526a6e2a88df813db190190130fdf27bcd6bb9",
          "value": 8859
        },
        {
          "script_pubkey": "0014ff9da567e62f30ea8654fa1d5fbd47bef8e3be13",
          "value": 1000
        }
      ],
      "version": 1
    },
    "txid": "87c9d0cfc131c7582bf29767ccf8acd63da0f519139367dd22fb4e0fb7345ce6"
  }
]

@rajarshimaitra
Copy link
Contributor

tACK. Working as expected.

Should be able to merge once the CI tests passes.

@notmandatory notmandatory merged commit 21d8d9f into bitcoindevkit:master Aug 12, 2021
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.

3 participants