nervosnetwork / ckb-cli

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

[Bug] error decoding when executing `ckb-cli mock-tx template` #437

Closed fjchen7 closed 2 years ago

fjchen7 commented 2 years ago

I encounter the error below

> ckb-cli mock-tx template --lock-arg '76d13bb07451fcf3d439e75748840da8e4175042'
error decoding response body: EOF while parsing a value at line 1 column 0
> ckb-cli -V
ckb-cli 0.100.0

As far as I know, all commands about writing json file (like ckb-cli tx add-inputs and so on) will result in this kind of error.

TheWaWaR commented 2 years ago

This sub-command require connect ckb node to get system script dependency information (such as sighash/multisig cell out point), seems like you connect to a wrong ckb node?

You may try:

ckb-cli --url http://127.0.0.1:8114 mock-tx template --lock-arg '76d13bb07451fcf3d439e75748840da8e4175042'
# or 
ckb-cli
CKB> config --url http://127.0.0.1:8114
CKB> mock-tx template --lock-arg '76d13bb07451fcf3d439e75748840da8e4175042'
fjchen7 commented 2 years ago

It works. Thanks!