nervosnetwork / ckb-cli

CKB command line interface
MIT License
55 stars 35 forks source link

Add a command to download a tx into tx.json file that can be used by `ckb-cli mock-tx dump` #576

Open doitian opened 5 months ago

doitian commented 5 months ago

The command ckb-cli mock-tx dump requires an input tx file, but there's no corresponding sub command to download a tx.json from the CKB node.

Another option is let ckb-cli mock-tx dump accepts an alternative option to dump a tx from CKB node via tx hash.

Once this is available, it can be used as a transaction dumper for ckb-debugger.

doitian commented 5 months ago

May related: https://github.com/nervosnetwork/ckb-cli/issues/577